mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-04-23 04:39:36 +02:00
lcl: redo UTF8LowerCase and UTF8UpperCase by redirecting calls to LazUTF8
git-svn-id: trunk@35390 -
This commit is contained in:
parent
ab9046d536
commit
5abf39a0c8
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user