lcl: redo UTF8LowerCase and UTF8UpperCase by redirecting calls to LazUTF8

git-svn-id: trunk@35390 -
This commit is contained in:
paul 2012-02-16 02:30:41 +00:00
parent ab9046d536
commit 5abf39a0c8

View File

@ -2899,12 +2899,12 @@ end;
function UTF8LowerCase(const s: String): String;
begin
Result := UTF8Encode(WideLowerCase(UTF8Decode(s)));
Result := LazUTF8.UTF16ToUTF8(UnicodeLowerCase(LazUTF8.UTF8ToUTF16(s)));
end;
function UTF8UpperCase(const s: String): String;
begin
Result := UTF8Encode(WideUpperCase(UTF8Decode(s)));
Result := LazUTF8.UTF16ToUTF8(UnicodeUpperCase(LazUTF8.UTF8ToUTF16(s)));
end;
function FindInvalidUTF8Character(p: PChar; Count: PtrInt;