8template<
typename TChar>
10 struct lconv * lc=localeconv();
12 DecimalPointChar=
static_cast<TChar
>( *(lc->decimal_point) );
13 ThousandsGroupChar=
static_cast<TChar
>( *(lc->thousands_sep) );
16template<
typename TChar>
18 if ( other ==
nullptr )
26 template<
typename TChar>
27void setComputational( TNumberFormat<TChar>& nf ) {
28 nf.Flags = NumberFormatFlags::ForceDecimalPoint;
29 nf.DecimalPointChar =
'.';
30 nf.Whitespaces = CStringConstantsTraits<TChar>::DefaultWhitespaces();
34 nf.DecMinimumFieldWidth=
38 nf.IntegralPartMinimumWidth=
39 nf.FractionalPartWidth= -1;
42 nf.LeadingGroupCharReplacement=
' ';
44 nf.ThousandsGroupChar=
',';
46 nf.BinNibbleGroupChar=
48 nf.HexWord32GroupChar=
49 nf.OctGroupChar=
'\'';
51 nf.HexByteGroupChar=
'\0';
52 nf.BinByteGroupChar=
'-';
53 nf.BinWordGroupChar=
'=';
54 nf.BinWord32GroupChar=
'#';
61 setComputational( *
this );
63 ExponentSeparator =
"E" ;
66 BinLiteralPrefix =
"0b" ;
67 HexLiteralPrefix =
"0x" ;
68 OctLiteralPrefix =
"0o" ;
73 setComputational( *
this );
75 ExponentSeparator =
A_WCHAR(
"E" ) ;
78 BinLiteralPrefix =
A_WCHAR(
"0b" ) ;
79 HexLiteralPrefix =
A_WCHAR(
"0x" ) ;
80 OctLiteralPrefix =
A_WCHAR(
"0o" ) ;
85 setComputational( *
this );
87 ExponentSeparator =
A_XCHAR(
"E" ) ;
90 BinLiteralPrefix =
A_XCHAR(
"0b" ) ;
91 HexLiteralPrefix =
A_XCHAR(
"0x" ) ;
92 OctLiteralPrefix =
A_XCHAR(
"0o" ) ;
@ Global
Denotes the global (singleton) scope.