mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-09-26 20:50:07 +02:00
LazUtils: Call the optimized function Utf8StringOfChar from StringOfCodePoint when using UTF-8.
git-svn-id: trunk@55729 -
This commit is contained in:
parent
a7ab43767c
commit
bbd38e2474
@ -226,12 +226,18 @@ end;
|
||||
|
||||
function StringOfCodePoint(ACodePoint: String; N: Integer): String;
|
||||
// Like StringOfChar
|
||||
{$IFDEF ReallyUseUTF16}
|
||||
var
|
||||
i: Integer;
|
||||
{$ENDIF}
|
||||
begin
|
||||
{$IFDEF ReallyUseUTF16}
|
||||
Result := '';
|
||||
for i := 1 to N do
|
||||
Result := Result + ACodePoint;
|
||||
{$ELSE}
|
||||
Result := Utf8StringOfChar(ACodePoint, N);
|
||||
{$ENDIF}
|
||||
end;
|
||||
|
||||
{ TUnicodeEnumeratorBase }
|
||||
|
Loading…
Reference in New Issue
Block a user