mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-04-21 23:19:29 +02:00
LazUtf8: honour CaseSensitive in TStringListUTF8Fast.DoCompareText.
This commit is contained in:
parent
86c08fcb3a
commit
c67c745669
@ -4159,7 +4159,10 @@ end;
|
|||||||
|
|
||||||
function TStringListUTF8Fast.DoCompareText(const s1, s2: string): PtrInt;
|
function TStringListUTF8Fast.DoCompareText(const s1, s2: string): PtrInt;
|
||||||
begin
|
begin
|
||||||
Result:=UTF8CompareLatinTextFast(s1, s2);
|
if CaseSensitive then
|
||||||
|
Result := Utf8CompareStr(s1, s2)
|
||||||
|
else
|
||||||
|
Result:=UTF8CompareLatinTextFast(s1, s2);
|
||||||
end;
|
end;
|
||||||
|
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user