mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-08-13 19:09:36 +02:00
LCL: clean up
git-svn-id: trunk@27105 -
This commit is contained in:
parent
8d715a791f
commit
3c18a7f2dd
@ -5625,7 +5625,7 @@ var
|
|||||||
|
|
||||||
function UTF8CharToCP936(const AChar: string): string;
|
function UTF8CharToCP936(const AChar: string): string;
|
||||||
begin
|
begin
|
||||||
|
Result:=AChar;
|
||||||
end;
|
end;
|
||||||
|
|
||||||
begin
|
begin
|
||||||
@ -5640,6 +5640,7 @@ begin
|
|||||||
if c<#128 then
|
if c<#128 then
|
||||||
begin
|
begin
|
||||||
CharStr := c;
|
CharStr := c;
|
||||||
|
// ToDo: do not use slow string operations, (see for example UTF8ToUCS2BE)
|
||||||
Result := Result + UTF8CharToCP936(CharStr);
|
Result := Result + UTF8CharToCP936(CharStr);
|
||||||
inc(Src);
|
inc(Src);
|
||||||
dec(len);
|
dec(len);
|
||||||
@ -5649,6 +5650,7 @@ begin
|
|||||||
CharStr := c;
|
CharStr := c;
|
||||||
Inc(Src);
|
Inc(Src);
|
||||||
CharStr := CharStr + Src^;
|
CharStr := CharStr + Src^;
|
||||||
|
// ToDo: do not use slow string operations
|
||||||
Result := Result + UTF8CharToCP936(CharStr);
|
Result := Result + UTF8CharToCP936(CharStr);
|
||||||
inc(Src);
|
inc(Src);
|
||||||
dec(len, 2);
|
dec(len, 2);
|
||||||
|
Loading…
Reference in New Issue
Block a user