mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-08-14 08:51:10 +02:00
* Select proper stringbuilder depending on size of char
This commit is contained in:
parent
0790b98277
commit
6f25cccda9
@ -346,7 +346,11 @@ Type
|
|||||||
{$undef SBUNICODE}
|
{$undef SBUNICODE}
|
||||||
|
|
||||||
Type
|
Type
|
||||||
|
{$IF SIZEOF(CHAR)=1}
|
||||||
TStringBuilder = TAnsiStringBuilder;
|
TStringBuilder = TAnsiStringBuilder;
|
||||||
|
{$ELSE}
|
||||||
|
TStringBuilder = TUnicodeStringBuilder;
|
||||||
|
{$ENDIF}
|
||||||
|
|
||||||
function SafeFormat (const Fmt: AnsiString; Args: array of const; const FormatSettings: TFormatSettings): UTF8String; overload;
|
function SafeFormat (const Fmt: AnsiString; Args: array of const; const FormatSettings: TFormatSettings): UTF8String; overload;
|
||||||
function SafeFormat (const Fmt: AnsiString; Args: array of const): UTF8String; overload;
|
function SafeFormat (const Fmt: AnsiString; Args: array of const): UTF8String; overload;
|
||||||
|
Loading…
Reference in New Issue
Block a user