34 #ifndef _LOCALE_FACETS_H
35 #define _LOCALE_FACETS_H 1
37 #pragma GCC system_header
50 namespace std _GLIBCXX_VISIBILITY(default)
52 _GLIBCXX_BEGIN_NAMESPACE_VERSION
55 #define _GLIBCXX_NUM_FACETS 14
58 #define _GLIBCXX_NUM_CXX11_FACETS (_GLIBCXX_USE_DUAL_ABI ? 8 : 0)
61 #ifdef _GLIBCXX_USE_CHAR8_T
62 # define _GLIBCXX_NUM_UNICODE_FACETS 4
64 # define _GLIBCXX_NUM_UNICODE_FACETS 2
69 #define _GLIBCXX_NUM_LBDL_ALT128_FACETS (4 + (_GLIBCXX_USE_DUAL_ABI ? 2 : 0))
74 template<
typename _Tp>
77 const __c_locale&)
throw();
83 const __c_locale&)
throw();
88 const __c_locale&)
throw();
93 const __c_locale&)
throw();
97 template<
typename _CharT,
typename _Traits>
101 _S_pad(ios_base& __io, _CharT __fill, _CharT* __news,
110 template<
typename _CharT>
112 __add_grouping(_CharT* __s, _CharT __sep,
113 const char* __gbeg,
size_t __gsize,
114 const _CharT* __first,
const _CharT* __last);
119 template<
typename _CharT>
121 ostreambuf_iterator<_CharT>
122 __write(ostreambuf_iterator<_CharT> __s,
const _CharT* __ws,
int __len)
124 __s._M_put(__ws, __len);
129 template<
typename _CharT,
typename _OutIter>
132 __write(_OutIter __s,
const _CharT* __ws,
int __len)
134 for (
int __j = 0; __j < __len; __j++, ++__s)
152 template<
typename _CharT>
173 {
return this->
do_is(__m, __c); }
190 {
return this->
do_is(__lo, __hi, __vec); }
316 {
return this->
do_widen(__lo, __hi, __to); }
335 {
return this->
do_narrow(__c, __dfault); }
357 char __dfault,
char* __to)
const
358 {
return this->
do_narrow(__lo, __hi, __dfault, __to); }
365 ~__ctype_abstract_base() { }
401 mask* __vec)
const = 0;
593 char __dfault,
char* __to)
const = 0;
614 template<
typename _CharT>
620 typedef typename __ctype_abstract_base<_CharT>::mask mask;
668 char __dfault,
char* __to)
const;
671 template<
typename _CharT>
676 template<
typename _CharT,
typename _Traits,
typename _Alloc>
698 __c_locale _M_c_locale_ctype;
700 __to_type _M_toupper;
701 __to_type _M_tolower;
702 const mask* _M_table;
703 mutable char _M_widen_ok;
704 mutable char _M_widen[1 +
static_cast<unsigned char>(-1)];
705 mutable char _M_narrow[1 +
static_cast<unsigned char>(-1)];
706 mutable char _M_narrow_ok;
713 static const size_t table_size = 1 +
static_cast<unsigned char>(-1);
726 ctype(
const mask* __table = 0,
bool __del =
false,
size_t __refs = 0);
739 ctype(__c_locale __cloc,
const mask* __table = 0,
bool __del =
false,
752 is(mask __m,
char __c)
const;
767 is(
const char* __lo,
const char* __hi, mask* __vec)
const;
781 scan_is(mask __m,
const char* __lo,
const char* __hi)
const;
795 scan_not(mask __m,
const char* __lo,
const char* __hi)
const;
883 return _M_widen[
static_cast<unsigned char>(__c)];
884 this->_M_widen_init();
909 if (_M_widen_ok == 1)
911 if (__builtin_expect(__hi != __lo,
true))
912 __builtin_memcpy(__to, __lo, __hi - __lo);
917 return this->
do_widen(__lo, __hi, __to);
941 if (_M_narrow[
static_cast<unsigned char>(__c)])
942 return _M_narrow[
static_cast<unsigned char>(__c)];
943 const char __t =
do_narrow(__c, __dfault);
945 _M_narrow[
static_cast<unsigned char>(__c)] = __t;
973 char __dfault,
char* __to)
const
975 if (__builtin_expect(_M_narrow_ok == 1,
true))
977 if (__builtin_expect(__hi != __lo,
true))
978 __builtin_memcpy(__to, __lo, __hi - __lo);
983 return this->
do_narrow(__lo, __hi, __dfault, __to);
1117 if (__builtin_expect(__hi != __lo,
true))
1118 __builtin_memcpy(__to, __lo, __hi - __lo);
1167 virtual const char_type*
1169 char __dfault __attribute__((__unused__)),
char* __to)
const
1171 if (__builtin_expect(__hi != __lo,
true))
1172 __builtin_memcpy(__to, __lo, __hi - __lo);
1177 void _M_narrow_init()
const;
1178 void _M_widen_init()
const;
1181 #ifdef _GLIBCXX_USE_WCHAR_T
1200 typedef wctype_t __wmask_type;
1203 __c_locale _M_c_locale_ctype;
1207 char _M_narrow[128];
1208 wint_t _M_widen[1 +
static_cast<unsigned char>(-1)];
1212 __wmask_type _M_wmask[16];
1238 ctype(__c_locale __cloc,
size_t __refs = 0);
1242 _M_convert_to_wmask(
const mask __m)
const throw();
1476 char __dfault,
char* __to)
const;
1480 _M_initialize_ctype() throw();
1485 template<
typename _CharT>
1489 typedef typename ctype<_CharT>::mask mask;
1494 #if __cplusplus >= 201103L
1513 #if __cplusplus >= 201103L
1523 #ifdef _GLIBCXX_USE_WCHAR_T
1531 #if __cplusplus >= 201103L
1542 _GLIBCXX_END_NAMESPACE_VERSION
1548 namespace std _GLIBCXX_VISIBILITY(default)
1550 _GLIBCXX_BEGIN_NAMESPACE_VERSION
1565 _S_odigits_end = _S_odigits + 16,
1566 _S_oudigits = _S_odigits_end,
1567 _S_oudigits_end = _S_oudigits + 16,
1568 _S_oe = _S_odigits + 14,
1569 _S_oE = _S_oudigits + 14,
1570 _S_oend = _S_oudigits_end
1578 static const char* _S_atoms_out;
1582 static const char* _S_atoms_in;
1591 _S_ie = _S_izero + 14,
1592 _S_iE = _S_izero + 20,
1599 _S_format_float(
const ios_base& __io,
char* __fptr,
char __mod)
throw();
1602 template<
typename _CharT>
1603 struct __numpunct_cache :
public locale::facet
1605 const char* _M_grouping;
1606 size_t _M_grouping_size;
1607 bool _M_use_grouping;
1608 const _CharT* _M_truename;
1609 size_t _M_truename_size;
1610 const _CharT* _M_falsename;
1611 size_t _M_falsename_size;
1612 _CharT _M_decimal_point;
1613 _CharT _M_thousands_sep;
1619 _CharT _M_atoms_out[__num_base::_S_oend];
1625 _CharT _M_atoms_in[__num_base::_S_iend];
1629 __numpunct_cache(
size_t __refs = 0)
1630 :
facet(__refs), _M_grouping(0), _M_grouping_size(0),
1631 _M_use_grouping(false),
1632 _M_truename(0), _M_truename_size(0), _M_falsename(0),
1633 _M_falsename_size(0), _M_decimal_point(_CharT()),
1634 _M_thousands_sep(_CharT()), _M_allocated(false)
1637 ~__numpunct_cache();
1640 _M_cache(
const locale& __loc);
1644 operator=(
const __numpunct_cache&);
1647 __numpunct_cache(
const __numpunct_cache&);
1650 template<
typename _CharT>
1651 __numpunct_cache<_CharT>::~__numpunct_cache()
1655 delete [] _M_grouping;
1656 delete [] _M_truename;
1657 delete [] _M_falsename;
1661 _GLIBCXX_BEGIN_NAMESPACE_CXX11
1677 template<
typename _CharT>
1687 typedef __numpunct_cache<_CharT> __cache_type;
1690 __cache_type* _M_data;
1703 :
facet(__refs), _M_data(0)
1704 { _M_initialize_numpunct(); }
1717 :
facet(__refs), _M_data(__cache)
1718 { _M_initialize_numpunct(); }
1731 :
facet(__refs), _M_data(0)
1732 { _M_initialize_numpunct(__cloc); }
1832 {
return _M_data->_M_decimal_point; }
1844 {
return _M_data->_M_thousands_sep; }
1857 {
return _M_data->_M_grouping; }
1870 {
return _M_data->_M_truename; }
1883 {
return _M_data->_M_falsename; }
1887 _M_initialize_numpunct(__c_locale __cloc = 0);
1890 template<
typename _CharT>
1898 numpunct<char>::_M_initialize_numpunct(__c_locale __cloc);
1900 #ifdef _GLIBCXX_USE_WCHAR_T
1906 numpunct<wchar_t>::_M_initialize_numpunct(__c_locale __cloc);
1910 template<
typename _CharT>
1921 if (__builtin_strcmp(__s,
"C") != 0
1922 && __builtin_strcmp(__s,
"POSIX") != 0)
1925 this->_S_create_c_locale(__tmp, __s);
1926 this->_M_initialize_numpunct(__tmp);
1927 this->_S_destroy_c_locale(__tmp);
1931 #if __cplusplus >= 201103L
1942 _GLIBCXX_END_NAMESPACE_CXX11
1944 _GLIBCXX_BEGIN_NAMESPACE_LDBL
1959 template<
typename _CharT,
typename _InIter>
2008 ios_base::iostate& __err,
bool& __v)
const
2009 {
return this->
do_get(__in, __end, __io, __err, __v); }
2045 ios_base::iostate& __err,
long& __v)
const
2046 {
return this->
do_get(__in, __end, __io, __err, __v); }
2050 ios_base::iostate& __err,
unsigned short& __v)
const
2051 {
return this->
do_get(__in, __end, __io, __err, __v); }
2055 ios_base::iostate& __err,
unsigned int& __v)
const
2056 {
return this->
do_get(__in, __end, __io, __err, __v); }
2060 ios_base::iostate& __err,
unsigned long& __v)
const
2061 {
return this->
do_get(__in, __end, __io, __err, __v); }
2063 #ifdef _GLIBCXX_USE_LONG_LONG
2066 ios_base::iostate& __err,
long long& __v)
const
2067 {
return this->
do_get(__in, __end, __io, __err, __v); }
2071 ios_base::iostate& __err,
unsigned long long& __v)
const
2072 {
return this->
do_get(__in, __end, __io, __err, __v); }
2105 ios_base::iostate& __err,
float& __v)
const
2106 {
return this->
do_get(__in, __end, __io, __err, __v); }
2110 ios_base::iostate& __err,
double& __v)
const
2111 {
return this->
do_get(__in, __end, __io, __err, __v); }
2115 ios_base::iostate& __err,
long double& __v)
const
2116 {
return this->
do_get(__in, __end, __io, __err, __v); }
2148 ios_base::iostate& __err,
void*& __v)
const
2149 {
return this->
do_get(__in, __end, __io, __err, __v); }
2155 _GLIBCXX_DEFAULT_ABI_TAG
2160 template<
typename _ValueT>
2161 _GLIBCXX_DEFAULT_ABI_TAG
2166 template<
typename _CharT2>
2167 typename __gnu_cxx::__enable_if<__is_char<_CharT2>::__value,
int>::__type
2168 _M_find(
const _CharT2*,
size_t __len, _CharT2 __c)
const
2173 if (__c >= _CharT2(
'0') && __c < _CharT2(_CharT2(
'0') + __len))
2174 __ret = __c - _CharT2(
'0');
2178 if (__c >= _CharT2(
'0') && __c <= _CharT2(
'9'))
2179 __ret = __c - _CharT2(
'0');
2180 else if (__c >= _CharT2(
'a') && __c <= _CharT2(
'f'))
2181 __ret = 10 + (__c - _CharT2(
'a'));
2182 else if (__c >= _CharT2(
'A') && __c <= _CharT2(
'F'))
2183 __ret = 10 + (__c - _CharT2(
'A'));
2188 template<
typename _CharT2>
2189 typename __gnu_cxx::__enable_if<!__is_char<_CharT2>::__value,
2191 _M_find(
const _CharT2* __zero,
size_t __len, _CharT2 __c)
const
2194 const char_type* __q = char_traits<_CharT2>::find(__zero, __len, __c);
2197 __ret = __q - __zero;
2224 ios_base::iostate& __err,
long& __v)
const
2225 {
return _M_extract_int(__beg, __end, __io, __err, __v); }
2229 ios_base::iostate& __err,
unsigned short& __v)
const
2230 {
return _M_extract_int(__beg, __end, __io, __err, __v); }
2234 ios_base::iostate& __err,
unsigned int& __v)
const
2235 {
return _M_extract_int(__beg, __end, __io, __err, __v); }
2239 ios_base::iostate& __err,
unsigned long& __v)
const
2240 {
return _M_extract_int(__beg, __end, __io, __err, __v); }
2242 #ifdef _GLIBCXX_USE_LONG_LONG
2245 ios_base::iostate& __err,
long long& __v)
const
2246 {
return _M_extract_int(__beg, __end, __io, __err, __v); }
2250 ios_base::iostate& __err,
unsigned long long& __v)
const
2251 {
return _M_extract_int(__beg, __end, __io, __err, __v); }
2262 #if defined _GLIBCXX_LONG_DOUBLE_COMPAT && defined __LONG_DOUBLE_128__
2273 long double&)
const;
2280 #if defined _GLIBCXX_LONG_DOUBLE_ALT128_COMPAT \
2281 && defined __LONG_DOUBLE_IEEE128__
2291 #if defined _GLIBCXX_LONG_DOUBLE_COMPAT && defined __LONG_DOUBLE_128__
2296 long double&)
const;
2301 template<
typename _CharT,
typename _InIter>
2317 template<
typename _CharT,
typename _OutIter>
2358 {
return this->
do_put(__s, __io, __fill, __v); }
2400 {
return this->
do_put(__s, __io, __fill, __v); }
2404 unsigned long __v)
const
2405 {
return this->
do_put(__s, __io, __fill, __v); }
2407 #ifdef _GLIBCXX_USE_LONG_LONG
2410 {
return this->
do_put(__s, __io, __fill, __v); }
2414 unsigned long long __v)
const
2415 {
return this->
do_put(__s, __io, __fill, __v); }
2463 {
return this->
do_put(__s, __io, __fill, __v); }
2467 long double __v)
const
2468 {
return this->
do_put(__s, __io, __fill, __v); }
2488 const void* __v)
const
2489 {
return this->
do_put(__s, __io, __fill, __v); }
2492 template<
typename _ValueT>
2495 char __mod, _ValueT __v)
const;
2498 _M_group_float(
const char* __grouping,
size_t __grouping_size,
2502 template<
typename _ValueT>
2508 _M_group_int(
const char* __grouping,
size_t __grouping_size,
2539 {
return _M_insert_int(__s, __io, __fill, __v); }
2543 unsigned long __v)
const
2544 {
return _M_insert_int(__s, __io, __fill, __v); }
2546 #ifdef _GLIBCXX_USE_LONG_LONG
2549 long long __v)
const
2550 {
return _M_insert_int(__s, __io, __fill, __v); }
2554 unsigned long long __v)
const
2555 {
return _M_insert_int(__s, __io, __fill, __v); }
2562 #if defined _GLIBCXX_LONG_DOUBLE_COMPAT && defined __LONG_DOUBLE_128__
2574 #if defined _GLIBCXX_LONG_DOUBLE_ALT128_COMPAT \
2575 && defined __LONG_DOUBLE_IEEE128__
2581 #if defined _GLIBCXX_LONG_DOUBLE_COMPAT && defined __LONG_DOUBLE_128__
2588 template <
typename _CharT,
typename _OutIter>
2591 _GLIBCXX_END_NAMESPACE_LDBL
2599 template<
typename _CharT>
2602 {
return use_facet<ctype<_CharT> >(__loc).is(ctype_base::space, __c); }
2605 template<
typename _CharT>
2608 {
return use_facet<ctype<_CharT> >(__loc).is(ctype_base::print, __c); }
2611 template<
typename _CharT>
2614 {
return use_facet<ctype<_CharT> >(__loc).is(ctype_base::cntrl, __c); }
2617 template<
typename _CharT>
2620 {
return use_facet<ctype<_CharT> >(__loc).is(ctype_base::upper, __c); }
2623 template<
typename _CharT>
2626 {
return use_facet<ctype<_CharT> >(__loc).is(ctype_base::lower, __c); }
2629 template<
typename _CharT>
2632 {
return use_facet<ctype<_CharT> >(__loc).is(ctype_base::alpha, __c); }
2635 template<
typename _CharT>
2638 {
return use_facet<ctype<_CharT> >(__loc).is(ctype_base::digit, __c); }
2641 template<
typename _CharT>
2644 {
return use_facet<ctype<_CharT> >(__loc).is(ctype_base::punct, __c); }
2647 template<
typename _CharT>
2650 {
return use_facet<ctype<_CharT> >(__loc).is(ctype_base::xdigit, __c); }
2653 template<
typename _CharT>
2656 {
return use_facet<ctype<_CharT> >(__loc).is(ctype_base::alnum, __c); }
2659 template<
typename _CharT>
2662 {
return use_facet<ctype<_CharT> >(__loc).is(ctype_base::graph, __c); }
2664 #if __cplusplus >= 201103L
2666 template<
typename _CharT>
2669 {
return use_facet<ctype<_CharT> >(__loc).is(ctype_base::blank, __c); }
2673 template<
typename _CharT>
2676 {
return use_facet<ctype<_CharT> >(__loc).
toupper(__c); }
2679 template<
typename _CharT>
2682 {
return use_facet<ctype<_CharT> >(__loc).
tolower(__c); }
2684 _GLIBCXX_END_NAMESPACE_VERSION
ISO C++ entities toplevel namespace is std.
bool isgraph(_CharT __c, const locale &__loc)
Convenience interface to ctype.is(ctype_base::graph, __c).
ptrdiff_t streamsize
Integral type for I/O operation counts and buffer sizes.
bool isspace(_CharT __c, const locale &__loc)
Convenience interface to ctype.is(ctype_base::space, __c).
bool isxdigit(_CharT __c, const locale &__loc)
Convenience interface to ctype.is(ctype_base::xdigit, __c).
bool islower(_CharT __c, const locale &__loc)
Convenience interface to ctype.is(ctype_base::lower, __c).
bool isdigit(_CharT __c, const locale &__loc)
Convenience interface to ctype.is(ctype_base::digit, __c).
bool isblank(_CharT __c, const locale &__loc)
Convenience interface to ctype.is(ctype_base::blank, __c).
_CharT toupper(_CharT __c, const locale &__loc)
Convenience interface to ctype.toupper(__c).
bool isupper(_CharT __c, const locale &__loc)
Convenience interface to ctype.is(ctype_base::upper, __c).
bool isalnum(_CharT __c, const locale &__loc)
Convenience interface to ctype.is(ctype_base::alnum, __c).
bool ispunct(_CharT __c, const locale &__loc)
Convenience interface to ctype.is(ctype_base::punct, __c).
_CharT tolower(_CharT __c, const locale &__loc)
Convenience interface to ctype.tolower(__c).
bool isprint(_CharT __c, const locale &__loc)
Convenience interface to ctype.is(ctype_base::print, __c).
bool isalpha(_CharT __c, const locale &__loc)
Convenience interface to ctype.is(ctype_base::alpha, __c).
bool iscntrl(_CharT __c, const locale &__loc)
Convenience interface to ctype.is(ctype_base::cntrl, __c).
Managing sequences of characters and character-like objects.
The base of the I/O class hierarchy.
_Ios_Iostate iostate
This is a bitmask type.
Container class for localization functionality.
Localization functionality base class.
facet(size_t __refs=0)
Facet constructor.
Common base for ctype facet.
const char_type * scan_not(mask __m, const char_type *__lo, const char_type *__hi) const
Find char_type not matching a mask.
char_type tolower(char_type __c) const
Convert to lowercase.
virtual char_type do_widen(char __c) const =0
Widen char.
virtual const char_type * do_is(const char_type *__lo, const char_type *__hi, mask *__vec) const =0
Return a mask array.
virtual bool do_is(mask __m, char_type __c) const =0
Test char_type classification.
virtual const char * do_widen(const char *__lo, const char *__hi, char_type *__to) const =0
Widen char array.
const char * widen(const char *__lo, const char *__hi, char_type *__to) const
Widen array to char_type.
virtual char_type do_tolower(char_type __c) const =0
Convert to lowercase.
char_type toupper(char_type __c) const
Convert to uppercase.
virtual const char_type * do_scan_not(mask __m, const char_type *__lo, const char_type *__hi) const =0
Find char_type not matching mask.
char_type widen(char __c) const
Widen char to char_type.
virtual const char_type * do_toupper(char_type *__lo, const char_type *__hi) const =0
Convert array to uppercase.
virtual const char_type * do_narrow(const char_type *__lo, const char_type *__hi, char __dfault, char *__to) const =0
Narrow char_type array to char.
const char_type * narrow(const char_type *__lo, const char_type *__hi, char __dfault, char *__to) const
Narrow array to char array.
const char_type * tolower(char_type *__lo, const char_type *__hi) const
Convert array to lowercase.
_CharT char_type
Typedef for the template parameter.
virtual const char_type * do_scan_is(mask __m, const char_type *__lo, const char_type *__hi) const =0
Find char_type matching mask.
char narrow(char_type __c, char __dfault) const
Narrow char_type to char.
const char_type * is(const char_type *__lo, const char_type *__hi, mask *__vec) const
Return a mask array.
virtual char do_narrow(char_type __c, char __dfault) const =0
Narrow char_type to char.
const char_type * scan_is(mask __m, const char_type *__lo, const char_type *__hi) const
Find char_type matching a mask.
const char_type * toupper(char_type *__lo, const char_type *__hi) const
Convert array to uppercase.
bool is(mask __m, char_type __c) const
Test char_type classification.
virtual char_type do_toupper(char_type __c) const =0
Convert to uppercase.
virtual const char_type * do_tolower(char_type *__lo, const char_type *__hi) const =0
Convert array to lowercase.
Primary class template ctype facet.
virtual char do_narrow(char_type, char __dfault) const
Narrow char_type to char.
virtual char_type do_toupper(char_type __c) const
Convert to uppercase.
virtual const char_type * do_toupper(char_type *__lo, const char_type *__hi) const
Convert array to uppercase.
virtual bool do_is(mask __m, char_type __c) const
Test char_type classification.
virtual const char_type * do_is(const char_type *__lo, const char_type *__hi, mask *__vec) const
Return a mask array.
virtual char_type do_tolower(char_type __c) const
Convert to lowercase.
virtual char_type do_widen(char __c) const
Widen char.
virtual const char_type * do_scan_is(mask __m, const char_type *__lo, const char_type *__hi) const
Find char_type matching mask.
virtual const char_type * do_tolower(char_type *__lo, const char_type *__hi) const
Convert array to lowercase.
virtual const char * do_widen(const char *__lo, const char *__hi, char_type *__dest) const
Widen char array.
virtual const char_type * do_narrow(const char_type *__lo, const char_type *__hi, char __dfault, char *__to) const
Narrow char_type array to char.
virtual const char_type * do_scan_not(mask __m, const char_type *__lo, const char_type *__hi) const
Find char_type not matching mask.
static locale::id id
The facet id for ctype<char_type>
ctype(__c_locale __cloc, const mask *__table=0, bool __del=false, size_t __refs=0)
Constructor performs static initialization.
virtual const char_type * do_narrow(const char_type *__lo, const char_type *__hi, char __dfault, char *__to) const
Narrow char array to char array.
char char_type
Typedef for the template parameter char.
const mask * table() const
Returns a pointer to the mask table provided to the constructor, or the default from classic_table() ...
char_type toupper(char_type __c) const
Convert to uppercase.
const char_type * toupper(char_type *__lo, const char_type *__hi) const
Convert array to uppercase.
const char * widen(const char *__lo, const char *__hi, char_type *__to) const
Widen char array.
char_type tolower(char_type __c) const
Convert to lowercase.
static const mask * classic_table()
Returns a pointer to the C locale mask table.
const char_type * narrow(const char_type *__lo, const char_type *__hi, char __dfault, char *__to) const
Narrow char array.
char narrow(char_type __c, char __dfault) const
Narrow char.
static locale::id id
The facet id for ctype<char>
const char_type * tolower(char_type *__lo, const char_type *__hi) const
Convert array to lowercase.
ctype(const mask *__table=0, bool __del=false, size_t __refs=0)
Constructor performs initialization.
virtual const char * do_widen(const char *__lo, const char *__hi, char_type *__to) const
Widen char array.
char_type widen(char __c) const
Widen char.
virtual char do_narrow(char_type __c, char __dfault) const
Narrow char.
virtual char_type do_widen(char __c) const
Widen char to wchar_t.
ctype(size_t __refs=0)
Constructor performs initialization.
virtual const char_type * do_is(const char_type *__lo, const char_type *__hi, mask *__vec) const
Return a mask array.
virtual const char_type * do_toupper(char_type *__lo, const char_type *__hi) const
Convert array to uppercase.
virtual char do_narrow(char_type __c, char __dfault) const
Narrow wchar_t to char.
virtual const char_type * do_scan_not(mask __m, const char_type *__lo, const char_type *__hi) const
Find wchar_t not matching mask.
virtual char_type do_toupper(char_type __c) const
Convert to uppercase.
virtual bool do_is(mask __m, char_type __c) const
Test wchar_t classification.
wchar_t char_type
Typedef for the template parameter wchar_t.
virtual ~ctype()
Destructor.
virtual const char_type * do_tolower(char_type *__lo, const char_type *__hi) const
Convert array to lowercase.
static locale::id id
The facet id for ctype<wchar_t>
virtual const char_type * do_scan_is(mask __m, const char_type *__lo, const char_type *__hi) const
Find wchar_t matching mask.
virtual const char * do_widen(const char *__lo, const char *__hi, char_type *__to) const
Widen char array to wchar_t array.
virtual char_type do_tolower(char_type __c) const
Convert to lowercase.
ctype(__c_locale __cloc, size_t __refs=0)
Constructor performs static initialization.
virtual const char_type * do_narrow(const char_type *__lo, const char_type *__hi, char __dfault, char *__to) const
Narrow wchar_t array to char array.
class ctype_byname [22.2.1.2].
Primary class template numpunct.
string_type falsename() const
Return string representation of bool false.
basic_string< _CharT > string_type
Public typedefs.
numpunct(__cache_type *__cache, size_t __refs=0)
Internal constructor. Not for general use.
string_type truename() const
Return string representation of bool true.
virtual ~numpunct()
Destructor.
_CharT char_type
Public typedefs.
virtual char_type do_decimal_point() const
Return decimal point character.
char_type decimal_point() const
Return decimal point character.
char_type thousands_sep() const
Return thousands separator character.
virtual string do_grouping() const
Return grouping specification.
static locale::id id
Numpunct facet id.
virtual string_type do_falsename() const
Return string representation of bool false.
numpunct(size_t __refs=0)
Numpunct constructor.
string grouping() const
Return grouping specification.
virtual char_type do_thousands_sep() const
Return thousands separator character.
virtual string_type do_truename() const
Return string representation of bool true.
numpunct(__c_locale __cloc, size_t __refs=0)
Internal constructor. Not for general use.
class numpunct_byname [22.2.3.2].
Primary class template num_get.
virtual iter_type do_get(iter_type __beg, iter_type __end, ios_base &__io, ios_base::iostate &__err, long &__v) const
Numeric parsing.
num_get(size_t __refs=0)
Constructor performs initialization.
iter_type get(iter_type __in, iter_type __end, ios_base &__io, ios_base::iostate &__err, double &__v) const
Numeric parsing.
virtual iter_type do_get(iter_type __beg, iter_type __end, ios_base &__io, ios_base::iostate &__err, long long &__v) const
Numeric parsing.
virtual iter_type do_get(iter_type __beg, iter_type __end, ios_base &__io, ios_base::iostate &__err, unsigned long long &__v) const
Numeric parsing.
virtual iter_type do_get(iter_type __beg, iter_type __end, ios_base &__io, ios_base::iostate &__err, unsigned long &__v) const
Numeric parsing.
iter_type get(iter_type __in, iter_type __end, ios_base &__io, ios_base::iostate &__err, long double &__v) const
Numeric parsing.
iter_type get(iter_type __in, iter_type __end, ios_base &__io, ios_base::iostate &__err, unsigned long &__v) const
Numeric parsing.
iter_type get(iter_type __in, iter_type __end, ios_base &__io, ios_base::iostate &__err, unsigned short &__v) const
Numeric parsing.
_InIter iter_type
Public typedefs.
virtual iter_type do_get(iter_type __beg, iter_type __end, ios_base &__io, ios_base::iostate &__err, unsigned short &__v) const
Numeric parsing.
virtual ~num_get()
Destructor.
iter_type get(iter_type __in, iter_type __end, ios_base &__io, ios_base::iostate &__err, unsigned long long &__v) const
Numeric parsing.
iter_type get(iter_type __in, iter_type __end, ios_base &__io, ios_base::iostate &__err, bool &__v) const
Numeric parsing.
_CharT char_type
Public typedefs.
static locale::id id
Numpunct facet id.
iter_type get(iter_type __in, iter_type __end, ios_base &__io, ios_base::iostate &__err, unsigned int &__v) const
Numeric parsing.
iter_type get(iter_type __in, iter_type __end, ios_base &__io, ios_base::iostate &__err, long long &__v) const
Numeric parsing.
virtual iter_type do_get(iter_type __beg, iter_type __end, ios_base &__io, ios_base::iostate &__err, unsigned int &__v) const
Numeric parsing.
iter_type get(iter_type __in, iter_type __end, ios_base &__io, ios_base::iostate &__err, long &__v) const
Numeric parsing.
iter_type get(iter_type __in, iter_type __end, ios_base &__io, ios_base::iostate &__err, void *&__v) const
Numeric parsing.
iter_type get(iter_type __in, iter_type __end, ios_base &__io, ios_base::iostate &__err, float &__v) const
Numeric parsing.
virtual iter_type do_get(iter_type, iter_type, ios_base &, ios_base::iostate &, bool &) const
Numeric parsing.
Primary class template num_put.
virtual iter_type do_put(iter_type __s, ios_base &__io, char_type __fill, unsigned long __v) const
Numeric formatting.
iter_type put(iter_type __s, ios_base &__io, char_type __fill, unsigned long __v) const
Numeric formatting.
iter_type put(iter_type __s, ios_base &__io, char_type __fill, long double __v) const
Numeric formatting.
iter_type put(iter_type __s, ios_base &__io, char_type __fill, long long __v) const
Numeric formatting.
virtual iter_type do_put(iter_type __s, ios_base &__io, char_type __fill, bool __v) const
Numeric formatting.
virtual iter_type do_put(iter_type __s, ios_base &__io, char_type __fill, long __v) const
Numeric formatting.
num_put(size_t __refs=0)
Constructor performs initialization.
iter_type put(iter_type __s, ios_base &__io, char_type __fill, long __v) const
Numeric formatting.
virtual iter_type do_put(iter_type __s, ios_base &__io, char_type __fill, unsigned long long __v) const
Numeric formatting.
_CharT char_type
Public typedefs.
iter_type put(iter_type __s, ios_base &__io, char_type __fill, const void *__v) const
Numeric formatting.
virtual ~num_put()
Destructor.
static locale::id id
Numpunct facet id.
_OutIter iter_type
Public typedefs.
iter_type put(iter_type __s, ios_base &__io, char_type __fill, unsigned long long __v) const
Numeric formatting.
virtual iter_type do_put(iter_type __s, ios_base &__io, char_type __fill, long long __v) const
Numeric formatting.
iter_type put(iter_type __s, ios_base &__io, char_type __fill, double __v) const
Numeric formatting.
iter_type put(iter_type __s, ios_base &__io, char_type __fill, bool __v) const
Numeric formatting.