34 #ifndef _LOCALE_FACETS_NONIO_H
35 #define _LOCALE_FACETS_NONIO_H 1
37 #pragma GCC system_header
41 _GLIBCXX_BEGIN_NAMESPACE(std)
52 enum dateorder { no_order, dmy, mdy, ymd, ydm };
55 template<
typename _CharT>
59 static const _CharT* _S_timezones[14];
61 const _CharT* _M_date_format;
62 const _CharT* _M_date_era_format;
63 const _CharT* _M_time_format;
64 const _CharT* _M_time_era_format;
65 const _CharT* _M_date_time_format;
66 const _CharT* _M_date_time_era_format;
69 const _CharT* _M_am_pm_format;
72 const _CharT* _M_day1;
73 const _CharT* _M_day2;
74 const _CharT* _M_day3;
75 const _CharT* _M_day4;
76 const _CharT* _M_day5;
77 const _CharT* _M_day6;
78 const _CharT* _M_day7;
81 const _CharT* _M_aday1;
82 const _CharT* _M_aday2;
83 const _CharT* _M_aday3;
84 const _CharT* _M_aday4;
85 const _CharT* _M_aday5;
86 const _CharT* _M_aday6;
87 const _CharT* _M_aday7;
90 const _CharT* _M_month01;
91 const _CharT* _M_month02;
92 const _CharT* _M_month03;
93 const _CharT* _M_month04;
94 const _CharT* _M_month05;
95 const _CharT* _M_month06;
96 const _CharT* _M_month07;
97 const _CharT* _M_month08;
98 const _CharT* _M_month09;
99 const _CharT* _M_month10;
100 const _CharT* _M_month11;
101 const _CharT* _M_month12;
104 const _CharT* _M_amonth01;
105 const _CharT* _M_amonth02;
106 const _CharT* _M_amonth03;
107 const _CharT* _M_amonth04;
108 const _CharT* _M_amonth05;
109 const _CharT* _M_amonth06;
110 const _CharT* _M_amonth07;
111 const _CharT* _M_amonth08;
112 const _CharT* _M_amonth09;
113 const _CharT* _M_amonth10;
114 const _CharT* _M_amonth11;
115 const _CharT* _M_amonth12;
119 __timepunct_cache(
size_t __refs = 0) : facet(__refs),
120 _M_date_format(NULL), _M_date_era_format(NULL), _M_time_format(NULL),
121 _M_time_era_format(NULL), _M_date_time_format(NULL),
122 _M_date_time_era_format(NULL), _M_am(NULL), _M_pm(NULL),
123 _M_am_pm_format(NULL), _M_day1(NULL), _M_day2(NULL), _M_day3(NULL),
124 _M_day4(NULL), _M_day5(NULL), _M_day6(NULL), _M_day7(NULL),
125 _M_aday1(NULL), _M_aday2(NULL), _M_aday3(NULL), _M_aday4(NULL),
126 _M_aday5(NULL), _M_aday6(NULL), _M_aday7(NULL), _M_month01(NULL),
127 _M_month02(NULL), _M_month03(NULL), _M_month04(NULL), _M_month05(NULL),
128 _M_month06(NULL), _M_month07(NULL), _M_month08(NULL), _M_month09(NULL),
129 _M_month10(NULL), _M_month11(NULL), _M_month12(NULL), _M_amonth01(NULL),
130 _M_amonth02(NULL), _M_amonth03(NULL), _M_amonth04(NULL),
131 _M_amonth05(NULL), _M_amonth06(NULL), _M_amonth07(NULL),
132 _M_amonth08(NULL), _M_amonth09(NULL), _M_amonth10(NULL),
133 _M_amonth11(NULL), _M_amonth12(NULL), _M_allocated(false)
136 ~__timepunct_cache();
139 _M_cache(
const locale& __loc);
143 operator=(
const __timepunct_cache&);
146 __timepunct_cache(
const __timepunct_cache&);
149 template<
typename _CharT>
150 __timepunct_cache<_CharT>::~__timepunct_cache()
161 __timepunct_cache<char>::_S_timezones[14];
163 #ifdef _GLIBCXX_USE_WCHAR_T
166 __timepunct_cache<wchar_t>::_S_timezones[14];
170 template<
typename _CharT>
171 const _CharT* __timepunct_cache<_CharT>::_S_timezones[14];
173 template<
typename _CharT>
174 class __timepunct :
public locale::facet
178 typedef _CharT __char_type;
179 typedef basic_string<_CharT> __string_type;
180 typedef __timepunct_cache<_CharT> __cache_type;
183 __cache_type* _M_data;
184 __c_locale _M_c_locale_timepunct;
185 const char* _M_name_timepunct;
189 static locale::id id;
192 __timepunct(
size_t __refs = 0);
195 __timepunct(__cache_type* __cache,
size_t __refs = 0);
208 __timepunct(__c_locale __cloc,
const char* __s,
size_t __refs = 0);
213 _M_put(_CharT* __s,
size_t __maxlen,
const _CharT* __format,
214 const tm* __tm)
const;
217 _M_date_formats(
const _CharT** __date)
const
220 __date[0] = _M_data->_M_date_format;
221 __date[1] = _M_data->_M_date_era_format;
225 _M_time_formats(
const _CharT** __time)
const
228 __time[0] = _M_data->_M_time_format;
229 __time[1] = _M_data->_M_time_era_format;
233 _M_date_time_formats(
const _CharT** __dt)
const
236 __dt[0] = _M_data->_M_date_time_format;
237 __dt[1] = _M_data->_M_date_time_era_format;
241 _M_am_pm_format(
const _CharT* __ampm)
const
242 { __ampm = _M_data->_M_am_pm_format; }
245 _M_am_pm(
const _CharT** __ampm)
const
247 __ampm[0] = _M_data->_M_am;
248 __ampm[1] = _M_data->_M_pm;
252 _M_days(
const _CharT** __days)
const
254 __days[0] = _M_data->_M_day1;
255 __days[1] = _M_data->_M_day2;
256 __days[2] = _M_data->_M_day3;
257 __days[3] = _M_data->_M_day4;
258 __days[4] = _M_data->_M_day5;
259 __days[5] = _M_data->_M_day6;
260 __days[6] = _M_data->_M_day7;
264 _M_days_abbreviated(
const _CharT** __days)
const
266 __days[0] = _M_data->_M_aday1;
267 __days[1] = _M_data->_M_aday2;
268 __days[2] = _M_data->_M_aday3;
269 __days[3] = _M_data->_M_aday4;
270 __days[4] = _M_data->_M_aday5;
271 __days[5] = _M_data->_M_aday6;
272 __days[6] = _M_data->_M_aday7;
276 _M_months(
const _CharT** __months)
const
278 __months[0] = _M_data->_M_month01;
279 __months[1] = _M_data->_M_month02;
280 __months[2] = _M_data->_M_month03;
281 __months[3] = _M_data->_M_month04;
282 __months[4] = _M_data->_M_month05;
283 __months[5] = _M_data->_M_month06;
284 __months[6] = _M_data->_M_month07;
285 __months[7] = _M_data->_M_month08;
286 __months[8] = _M_data->_M_month09;
287 __months[9] = _M_data->_M_month10;
288 __months[10] = _M_data->_M_month11;
289 __months[11] = _M_data->_M_month12;
293 _M_months_abbreviated(
const _CharT** __months)
const
295 __months[0] = _M_data->_M_amonth01;
296 __months[1] = _M_data->_M_amonth02;
297 __months[2] = _M_data->_M_amonth03;
298 __months[3] = _M_data->_M_amonth04;
299 __months[4] = _M_data->_M_amonth05;
300 __months[5] = _M_data->_M_amonth06;
301 __months[6] = _M_data->_M_amonth07;
302 __months[7] = _M_data->_M_amonth08;
303 __months[8] = _M_data->_M_amonth09;
304 __months[9] = _M_data->_M_amonth10;
305 __months[10] = _M_data->_M_amonth11;
306 __months[11] = _M_data->_M_amonth12;
315 _M_initialize_timepunct(__c_locale __cloc = NULL);
318 template<
typename _CharT>
319 locale::id __timepunct<_CharT>::id;
324 __timepunct<char>::_M_initialize_timepunct(__c_locale __cloc);
328 __timepunct<char>::_M_put(
char*,
size_t,
const char*,
const tm*)
const;
330 #ifdef _GLIBCXX_USE_WCHAR_T
333 __timepunct<wchar_t>::_M_initialize_timepunct(__c_locale __cloc);
337 __timepunct<wchar_t>::_M_put(
wchar_t*,
size_t,
const wchar_t*,
341 _GLIBCXX_END_NAMESPACE
346 _GLIBCXX_BEGIN_NAMESPACE(std)
360 template<typename _CharT, typename _InIter>
401 {
return this->do_date_order(); }
425 ios_base::iostate& __err, tm* __tm)
const
426 {
return this->do_get_time(__beg, __end, __io, __err, __tm); }
450 ios_base::iostate& __err, tm* __tm)
const
451 {
return this->do_get_date(__beg, __end, __io, __err, __tm); }
478 ios_base::iostate& __err, tm* __tm)
const
479 {
return this->do_get_weekday(__beg, __end, __io, __err, __tm); }
507 ios_base::iostate& __err, tm* __tm)
const
508 {
return this->do_get_monthname(__beg, __end, __io, __err, __tm); }
533 ios_base::iostate& __err, tm* __tm)
const
534 {
return this->do_get_year(__beg, __end, __io, __err, __tm); }
552 do_date_order()
const;
570 do_get_time(iter_type __beg, iter_type __end,
ios_base& __io,
571 ios_base::iostate& __err, tm* __tm)
const;
589 do_get_date(iter_type __beg, iter_type __end,
ios_base& __io,
590 ios_base::iostate& __err, tm* __tm)
const;
608 do_get_weekday(iter_type __beg, iter_type __end,
ios_base&,
609 ios_base::iostate& __err, tm* __tm)
const;
627 do_get_monthname(iter_type __beg, iter_type __end,
ios_base&,
628 ios_base::iostate& __err, tm* __tm)
const;
646 do_get_year(iter_type __beg, iter_type __end,
ios_base& __io,
647 ios_base::iostate& __err, tm* __tm)
const;
651 _M_extract_num(iter_type __beg, iter_type __end,
int& __member,
652 int __min,
int __max,
size_t __len,
653 ios_base& __io, ios_base::iostate& __err)
const;
658 _M_extract_name(iter_type __beg, iter_type __end,
int& __member,
659 const _CharT** __names,
size_t __indexlen,
660 ios_base& __io, ios_base::iostate& __err)
const;
664 _M_extract_via_format(iter_type __beg, iter_type __end,
ios_base& __io,
665 ios_base::iostate& __err, tm* __tm,
666 const _CharT* __format)
const;
669 template<
typename _CharT,
typename _InIter>
670 locale::id time_get<_CharT, _InIter>::id;
673 template<
typename _CharT,
typename _InIter>
701 template<
typename _CharT,
typename _OutIter>
742 put(iter_type __s,
ios_base& __io, char_type __fill,
const tm* __tm,
743 const _CharT* __beg,
const _CharT* __end)
const;
763 const tm* __tm,
char __format,
char __mod = 0)
const
764 {
return this->do_put(__s, __io, __fill, __tm, __format, __mod); }
789 do_put(iter_type __s,
ios_base& __io, char_type __fill,
const tm* __tm,
790 char __format,
char __mod)
const;
793 template<
typename _CharT,
typename _OutIter>
794 locale::id time_put<_CharT, _OutIter>::id;
797 template<
typename _CharT,
typename _OutIter>
829 enum part { none, space, symbol, sign, value };
830 struct pattern {
char field[4]; };
832 static const pattern _S_default_pattern;
843 static const char* _S_atoms;
848 _S_construct_pattern(
char __precedes,
char __space,
char __posn);
851 template<
typename _CharT,
bool _Intl>
854 const char* _M_grouping;
855 size_t _M_grouping_size;
856 bool _M_use_grouping;
857 _CharT _M_decimal_point;
858 _CharT _M_thousands_sep;
859 const _CharT* _M_curr_symbol;
860 size_t _M_curr_symbol_size;
861 const _CharT* _M_positive_sign;
862 size_t _M_positive_sign_size;
863 const _CharT* _M_negative_sign;
864 size_t _M_negative_sign_size;
866 money_base::pattern _M_pos_format;
867 money_base::pattern _M_neg_format;
872 _CharT _M_atoms[money_base::_S_end];
876 __moneypunct_cache(
size_t __refs = 0) : facet(__refs),
877 _M_grouping(NULL), _M_grouping_size(0), _M_use_grouping(false),
878 _M_decimal_point(_CharT()), _M_thousands_sep(_CharT()),
879 _M_curr_symbol(NULL), _M_curr_symbol_size(0),
880 _M_positive_sign(NULL), _M_positive_sign_size(0),
881 _M_negative_sign(NULL), _M_negative_sign_size(0),
884 _M_neg_format(
money_base::pattern()), _M_allocated(false)
887 ~__moneypunct_cache();
890 _M_cache(
const locale& __loc);
894 operator=(
const __moneypunct_cache&);
897 __moneypunct_cache(
const __moneypunct_cache&);
900 template<
typename _CharT,
bool _Intl>
901 __moneypunct_cache<_CharT, _Intl>::~__moneypunct_cache()
905 delete [] _M_grouping;
906 delete [] _M_curr_symbol;
907 delete [] _M_positive_sign;
908 delete [] _M_negative_sign;
918 template<
typename _CharT,
bool _Intl>
928 typedef __moneypunct_cache<_CharT, _Intl> __cache_type;
931 __cache_type* _M_data;
936 static const bool intl = _Intl;
949 { _M_initialize_moneypunct(); }
961 : facet(__refs), _M_data(__cache)
962 { _M_initialize_moneypunct(); }
975 moneypunct(__c_locale __cloc,
const char* __s,
size_t __refs = 0)
976 : facet(__refs), _M_data(NULL)
977 { _M_initialize_moneypunct(__cloc, __s); }
990 {
return this->do_decimal_point(); }
1003 {
return this->do_thousands_sep(); }
1032 {
return this->do_grouping(); }
1045 {
return this->do_curr_symbol(); }
1062 {
return this->do_positive_sign(); }
1079 {
return this->do_negative_sign(); }
1095 {
return this->do_frac_digits(); }
1130 {
return this->do_pos_format(); }
1134 {
return this->do_neg_format(); }
1152 {
return _M_data->_M_decimal_point; }
1164 {
return _M_data->_M_thousands_sep; }
1177 {
return _M_data->_M_grouping; }
1190 {
return _M_data->_M_curr_symbol; }
1203 {
return _M_data->_M_positive_sign; }
1216 {
return _M_data->_M_negative_sign; }
1230 {
return _M_data->_M_frac_digits; }
1244 {
return _M_data->_M_pos_format; }
1258 {
return _M_data->_M_neg_format; }
1262 _M_initialize_moneypunct(__c_locale __cloc = NULL,
1263 const char* __name = NULL);
1266 template<
typename _CharT,
bool _Intl>
1267 locale::id moneypunct<_CharT, _Intl>::id;
1269 template<
typename _CharT,
bool _Intl>
1270 const bool moneypunct<_CharT, _Intl>::intl;
1273 moneypunct<char, true>::~moneypunct();
1276 moneypunct<char, false>::~moneypunct();
1280 moneypunct<char, true>::_M_initialize_moneypunct(__c_locale,
const char*);
1284 moneypunct<char, false>::_M_initialize_moneypunct(__c_locale,
const char*);
1286 #ifdef _GLIBCXX_USE_WCHAR_T
1288 moneypunct<wchar_t, true>::~moneypunct();
1291 moneypunct<wchar_t, false>::~moneypunct();
1295 moneypunct<wchar_t, true>::_M_initialize_moneypunct(__c_locale,
1300 moneypunct<wchar_t, false>::_M_initialize_moneypunct(__c_locale,
1305 template<
typename _CharT,
bool _Intl>
1312 static const bool intl = _Intl;
1318 if (__builtin_strcmp(__s,
"C") != 0
1319 && __builtin_strcmp(__s,
"POSIX") != 0)
1322 this->_S_create_c_locale(__tmp, __s);
1323 this->_M_initialize_moneypunct(__tmp);
1324 this->_S_destroy_c_locale(__tmp);
1333 template<
typename _CharT,
bool _Intl>
1336 _GLIBCXX_BEGIN_LDBL_NAMESPACE
1350 template<
typename _CharT,
typename _InIter>
1404 ios_base::iostate& __err,
long double& __units)
const
1405 {
return this->do_get(__s, __end, __intl, __io, __err, __units); }
1434 ios_base::iostate& __err,
string_type& __digits)
const
1435 {
return this->do_get(__s, __end, __intl, __io, __err, __digits); }
1450 #if defined _GLIBCXX_LONG_DOUBLE_COMPAT && defined __LONG_DOUBLE_128__
1452 __do_get(iter_type __s, iter_type __end,
bool __intl,
ios_base& __io,
1453 ios_base::iostate& __err,
double& __units)
const;
1456 do_get(iter_type __s, iter_type __end,
bool __intl,
ios_base& __io,
1457 ios_base::iostate& __err,
long double& __units)
const;
1468 do_get(iter_type __s, iter_type __end,
bool __intl,
ios_base& __io,
1469 ios_base::iostate& __err, string_type& __digits)
const;
1472 #if defined _GLIBCXX_LONG_DOUBLE_COMPAT && defined __LONG_DOUBLE_128__
1474 do_get(iter_type __s, iter_type __end,
bool __intl,
ios_base& __io,
1475 ios_base::iostate& __err,
long double& __units)
const;
1478 template<
bool _Intl>
1480 _M_extract(iter_type __s, iter_type __end,
ios_base& __io,
1481 ios_base::iostate& __err,
string& __digits)
const;
1484 template<
typename _CharT,
typename _InIter>
1485 locale::id money_get<_CharT, _InIter>::id;
1499 template<
typename _CharT,
typename _OutIter>
1542 char_type __fill,
long double __units)
const
1543 {
return this->do_put(__s, __intl, __io, __fill, __units); }
1565 {
return this->do_put(__s, __intl, __io, __fill, __digits); }
1591 #if defined _GLIBCXX_LONG_DOUBLE_COMPAT && defined __LONG_DOUBLE_128__
1593 __do_put(iter_type __s,
bool __intl,
ios_base& __io, char_type __fill,
1594 double __units)
const;
1597 do_put(iter_type __s,
bool __intl,
ios_base& __io, char_type __fill,
1598 long double __units)
const;
1620 do_put(iter_type __s,
bool __intl,
ios_base& __io, char_type __fill,
1621 const string_type& __digits)
const;
1624 #if defined _GLIBCXX_LONG_DOUBLE_COMPAT && defined __LONG_DOUBLE_128__
1626 do_put(iter_type __s,
bool __intl,
ios_base& __io, char_type __fill,
1627 long double __units)
const;
1630 template<
bool _Intl>
1632 _M_insert(iter_type __s,
ios_base& __io, char_type __fill,
1633 const string_type& __digits)
const;
1636 template<
typename _CharT,
typename _OutIter>
1637 locale::id money_put<_CharT, _OutIter>::id;
1639 _GLIBCXX_END_LDBL_NAMESPACE
1646 typedef int catalog;
1669 template<
typename _CharT>
1683 __c_locale _M_c_locale_messages;
1684 const char* _M_name_messages;
1712 messages(__c_locale __cloc,
const char* __s,
size_t __refs = 0);
1726 {
return this->do_open(__s, __loc); }
1761 get(catalog __c,
int __set,
int __msgid,
const string_type& __s)
const
1762 {
return this->do_get(__c, __set, __msgid, __s); }
1772 close(catalog __c)
const
1773 {
return this->do_close(__c); }
1792 do_open(
const basic_string<char>&,
const locale&)
const;
1811 do_get(catalog,
int,
int,
const string_type& __dfault)
const;
1819 do_close(catalog)
const;
1823 _M_convert_to_char(
const string_type& __msg)
const
1826 return reinterpret_cast<char*
>(
const_cast<_CharT*
>(__msg.c_str()));
1831 _M_convert_from_char(
char*)
const
1835 size_t __len = char_traits<char>::length(__msg) - 1;
1843 typedef typename codecvt<char, _CharT, mbstate_t> __codecvt_type;
1845 __codecvt_type::state_type __state;
1851 _CharT* __to =
static_cast<_CharT*
>(__builtin_alloca(__len + 1));
1852 const __codecvt_type& __cvt = use_facet<__codecvt_type>(_M_locale_conv);
1853 __cvt.out(__state, __msg, __msg + __len, __from_next,
1854 __to, __to + __len + 1, __to_next);
1855 return string_type(__to);
1858 typedef ctype<_CharT> __ctype_type;
1860 const __ctype_type& __cvt = use_facet<__ctype_type>(locale());
1863 _CharT* __dest =
static_cast<_CharT*
>(__builtin_alloca(__len + 1));
1864 __cvt.widen(__msg, __msg + __len, __dest);
1865 return basic_string<_CharT>(__dest);
1867 return string_type();
1871 template<
typename _CharT>
1872 locale::id messages<_CharT>::id;
1877 messages<char>::do_get(catalog,
int,
int,
const string&)
const;
1879 #ifdef _GLIBCXX_USE_WCHAR_T
1882 messages<wchar_t>::do_get(catalog,
int,
int,
const wstring&)
const;
1886 template<
typename _CharT>
1902 _GLIBCXX_END_NAMESPACE
1910 #ifndef _GLIBCXX_EXPORT_TEMPLATE
virtual ~time_get()
Destructor.
virtual pattern do_pos_format() const
Return pattern for money values.
string_type curr_symbol() const
Return currency symbol string.
basic_string< _CharT > string_type
Public typedefs.
iter_type put(iter_type __s, ios_base &__io, char_type __fill, const tm *__tm, char __format, char __mod=0) const
Format and output a time or date.
Messages facet base class providing catalog typedef.
string grouping() const
Return grouping specification.
static locale::id id
Numpunct facet id.
basic_string< _CharT > string_type
Public typedefs.
moneypunct(__cache_type *__cache, size_t __refs=0)
Constructor performs initialization.
dateorder date_order() const
Return preferred order of month, day, and year.
virtual ~money_get()
Destructor.
char_type decimal_point() const
Return decimal point character.
money_put(size_t __refs=0)
Constructor performs initialization.
class moneypunct_byname [22.2.6.4].
_CharT char_type
Public typedefs.
_InIter iter_type
Public typedefs.
static locale::id id
Numpunct facet id.
Facet for outputting monetary amounts.
Facet for parsing dates and times.
virtual ~time_put()
Destructor.
iter_type get_year(iter_type __beg, iter_type __end, ios_base &__io, ios_base::iostate &__err, tm *__tm) const
Parse input year string.
static locale::id id
Numpunct facet id.
static locale::id id
Numpunct facet id.
Facet for handling message catalogs.
_InIter iter_type
Public typedefs.
money_get(size_t __refs=0)
Constructor performs initialization.
_CharT char_type
Public typedefs.
basic_string< _CharT > string_type
Public typedefs.
Localization functionality base class.
char_type thousands_sep() const
Return thousands separator character.
The base of the I/O class hierarchy.This class defines everything that can be defined about I/O that ...
string_type negative_sign() const
Return negative sign string.
Facet for formatting data for money amounts.
static locale::id id
Numpunct facet id.
Facet for parsing monetary amounts.
virtual int do_frac_digits() const
Return number of digits in fraction.
iter_type put(iter_type __s, bool __intl, ios_base &__io, char_type __fill, const string_type &__digits) const
Format and output a monetary value.
_OutIter iter_type
Public typedefs.
moneypunct(size_t __refs=0)
Constructor performs initialization.
_CharT char_type
Public typedefs.
time_put(size_t __refs=0)
Constructor performs initialization.
iter_type get_weekday(iter_type __beg, iter_type __end, ios_base &__io, ios_base::iostate &__err, tm *__tm) const
Parse input weekday string.
virtual ~money_put()
Destructor.
virtual pattern do_neg_format() const
Return pattern for money values.
Time format ordering data.
virtual string_type do_positive_sign() const
Return positive sign string.
Facet for outputting dates and times.
int frac_digits() const
Return number of digits in fraction.
Container class for localization functionality.
basic_string< _CharT > string_type
Public typedefs.
class messages_byname [22.2.7.2].
time_get(size_t __refs=0)
Constructor performs initialization.
pattern pos_format() const
Return pattern for money values.
string_type positive_sign() const
Return positive sign string.
iter_type put(iter_type __s, bool __intl, ios_base &__io, char_type __fill, long double __units) const
Format and output a monetary value.
virtual string_type do_curr_symbol() const
Return currency symbol string.
virtual char_type do_thousands_sep() const
Return thousands separator character.
Money format ordering data.
_CharT char_type
Public typedefs.
virtual string do_grouping() const
Return grouping specification.
_OutIter iter_type
Public typedefs.
class time_put_byname [22.2.5.4].
static locale::id id
Numpunct facet id.
class time_get_byname [22.2.5.2].
iter_type get_time(iter_type __beg, iter_type __end, ios_base &__io, ios_base::iostate &__err, tm *__tm) const
Parse input time string.
pattern neg_format() const
Return pattern for money values.
moneypunct(__c_locale __cloc, const char *__s, size_t __refs=0)
Internal constructor. Not for general use.
_CharT char_type
Public typedefs.
_CharT char_type
Public typedefs.
iter_type get_monthname(iter_type __beg, iter_type __end, ios_base &__io, ios_base::iostate &__err, tm *__tm) const
Parse input month string.
Managing sequences of characters and character-like objects.
virtual char_type do_decimal_point() const
Return decimal point character.
virtual string_type do_negative_sign() const
Return negative sign string.
iter_type get_date(iter_type __beg, iter_type __end, ios_base &__io, ios_base::iostate &__err, tm *__tm) const
Parse input date string.