mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-07-16 08:56:04 +02:00
LazUtf8: fix 2nd loop
git-svn-id: trunk@32863 -
This commit is contained in:
parent
50f1667209
commit
524c46d2cc
@ -1492,31 +1492,26 @@ begin
|
||||
inc(OutStr);
|
||||
end;
|
||||
end;
|
||||
#$c3..#$E1:
|
||||
begin
|
||||
case c of
|
||||
#$c3..#$D2:
|
||||
begin
|
||||
OutStr^ := c;
|
||||
d := InStr[1]; // 2nd char in 2 byte utf8
|
||||
OutStr[1] := d;
|
||||
inc(InStr, 2);
|
||||
inc(OutStr, 2);
|
||||
HandleDualByte;
|
||||
if CounterDiff = 0 then break;
|
||||
end; // c3..d2
|
||||
#$e1:
|
||||
begin
|
||||
OutStr^ := c;
|
||||
d := InStr[1]; // 2nd char in 2 byte utf8
|
||||
OutStr[1] := d;
|
||||
OutStr[2] := InStr[2];
|
||||
inc(InStr, 3);
|
||||
inc(OutStr, 3);
|
||||
HandleTripplByte;
|
||||
end;
|
||||
#$c3..#$D2:
|
||||
begin
|
||||
OutStr^ := c;
|
||||
d := InStr[1]; // 2nd char in 2 byte utf8
|
||||
OutStr[1] := d;
|
||||
inc(InStr, 2);
|
||||
inc(OutStr, 2);
|
||||
HandleDualByte;
|
||||
if CounterDiff = 0 then break;
|
||||
end; // c3..d2
|
||||
#$e1:
|
||||
begin
|
||||
OutStr^ := c;
|
||||
d := InStr[1]; // 2nd char in 2 byte utf8
|
||||
OutStr[1] := d;
|
||||
OutStr[2] := InStr[2];
|
||||
inc(InStr, 3);
|
||||
inc(OutStr, 3);
|
||||
HandleTripplByte;
|
||||
end;
|
||||
end;
|
||||
else
|
||||
begin
|
||||
// Copy the character if the string was disaligned by previous changes
|
||||
|
Loading…
Reference in New Issue
Block a user