Replacement for snprintf

berni44 dlang at
Thu Nov 7 09:44:32 UTC 2019

On Wednesday, 6 November 2019 at 18:21:43 UTC, Rumbu wrote:
> For %f, the decimal separator is not the only locale specific 
> info. Full list:
> -decimal separator
> -negative pattern
> -positive pattern
> -infinity symbol
> -nan symbol
> -digit shapes, especially for Arabic and Thai
> For %d and %g there are more like digit grouping/group 
> separator.

snprintf only uses the decimal separator (and grouping but that's 
not used inside format, the grouping is done separately there). 
All else is ignored by snprintf.

More information about the Digitalmars-d mailing list