mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-08-11 20:55:59 +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;
|
||||
begin
|
||||
|
||||
Result:=AChar;
|
||||
end;
|
||||
|
||||
begin
|
||||
@ -5640,6 +5640,7 @@ begin
|
||||
if c<#128 then
|
||||
begin
|
||||
CharStr := c;
|
||||
// ToDo: do not use slow string operations, (see for example UTF8ToUCS2BE)
|
||||
Result := Result + UTF8CharToCP936(CharStr);
|
||||
inc(Src);
|
||||
dec(len);
|
||||
@ -5649,6 +5650,7 @@ begin
|
||||
CharStr := c;
|
||||
Inc(Src);
|
||||
CharStr := CharStr + Src^;
|
||||
// ToDo: do not use slow string operations
|
||||
Result := Result + UTF8CharToCP936(CharStr);
|
||||
inc(Src);
|
||||
dec(len, 2);
|
||||
|
Loading…
Reference in New Issue
Block a user