* Select proper stringbuilder depending on size of char

This commit is contained in:
Michaël Van Canneyt 2024-02-20 10:46:44 +01:00
parent 0790b98277
commit 6f25cccda9

View File

@ -346,7 +346,11 @@ Type
{$undef SBUNICODE}
Type
{$IF SIZEOF(CHAR)=1}
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): UTF8String; overload;