LazUtf8: honour CaseSensitive in TStringListUTF8Fast.DoCompareText.

This commit is contained in:
Bart 2022-11-23 14:23:03 +01:00
parent 86c08fcb3a
commit c67c745669

View File

@ -4159,7 +4159,10 @@ end;
function TStringListUTF8Fast.DoCompareText(const s1, s2: string): PtrInt;
begin
Result:=UTF8CompareLatinTextFast(s1, s2);
if CaseSensitive then
Result := Utf8CompareStr(s1, s2)
else
Result:=UTF8CompareLatinTextFast(s1, s2);
end;