36 #ifndef _LOCALE_FACETS_H
37 #define _LOCALE_FACETS_H 1
39 #pragma GCC system_header
52 namespace std _GLIBCXX_VISIBILITY(default)
54 _GLIBCXX_BEGIN_NAMESPACE_VERSION
57 #ifdef _GLIBCXX_USE_WCHAR_T
58 # define _GLIBCXX_NUM_FACETS 28
60 # define _GLIBCXX_NUM_FACETS 14
66 template<
typename _Tp>
69 const __c_locale&) throw();
74 __convert_to_v(const
char*,
float&, ios_base::iostate&,
75 const __c_locale&) throw();
79 __convert_to_v(const
char*,
double&, ios_base::iostate&,
80 const __c_locale&) throw();
84 __convert_to_v(const
char*,
long double&, ios_base::iostate&,
85 const __c_locale&) throw();
89 template<typename _CharT, typename _Traits>
93 _S_pad(ios_base& __io, _CharT __fill, _CharT* __news,
102 template<
typename _CharT>
104 __add_grouping(_CharT* __s, _CharT __sep,
105 const char* __gbeg,
size_t __gsize,
106 const _CharT* __first,
const _CharT* __last);
111 template<
typename _CharT>
113 ostreambuf_iterator<_CharT>
114 __write(ostreambuf_iterator<_CharT> __s,
const _CharT* __ws,
int __len)
116 __s._M_put(__ws, __len);
121 template<
typename _CharT,
typename _OutIter>
124 __write(_OutIter __s,
const _CharT* __ws,
int __len)
126 for (
int __j = 0; __j < __len; __j++, ++__s)
144 template<
typename _CharT>
165 {
return this->
do_is(__m, __c); }
182 {
return this->
do_is(__lo, __hi, __vec); }
308 {
return this->
do_widen(__lo, __hi, __to); }
327 {
return this->
do_narrow(__c, __dfault); }
349 char __dfault,
char* __to)
const
350 {
return this->
do_narrow(__lo, __hi, __dfault, __to); }
357 ~__ctype_abstract_base() { }
393 mask* __vec)
const = 0;
585 char __dfault,
char* __to)
const = 0;
606 template<
typename _CharT>
612 typedef typename __ctype_abstract_base<_CharT>::mask mask;
625 do_is(mask __m, char_type __c)
const;
627 virtual const char_type*
628 do_is(
const char_type* __lo,
const char_type* __hi, mask* __vec)
const;
630 virtual const char_type*
631 do_scan_is(mask __m,
const char_type* __lo,
const char_type* __hi)
const;
633 virtual const char_type*
635 const char_type* __hi)
const;
640 virtual const char_type*
641 do_toupper(char_type* __lo,
const char_type* __hi)
const;
646 virtual const char_type*
647 do_tolower(char_type* __lo,
const char_type* __hi)
const;
653 do_widen(
const char* __lo,
const char* __hi, char_type* __dest)
const;
656 do_narrow(char_type,
char __dfault)
const;
658 virtual const char_type*
659 do_narrow(
const char_type* __lo,
const char_type* __hi,
660 char __dfault,
char* __to)
const;
663 template<
typename _CharT>
664 locale::id ctype<_CharT>::id;
685 __c_locale _M_c_locale_ctype;
687 __to_type _M_toupper;
688 __to_type _M_tolower;
689 const mask* _M_table;
690 mutable char _M_widen_ok;
691 mutable char _M_widen[1 +
static_cast<unsigned char>(-1)];
692 mutable char _M_narrow[1 +
static_cast<unsigned char>(-1)];
693 mutable char _M_narrow_ok;
700 static const size_t table_size = 1 +
static_cast<unsigned char>(-1);
713 ctype(
const mask* __table = 0,
bool __del =
false,
size_t __refs = 0);
726 ctype(__c_locale __cloc,
const mask* __table = 0,
bool __del =
false,
739 is(mask __m,
char __c)
const;
754 is(
const char* __lo,
const char* __hi, mask* __vec)
const;
768 scan_is(mask __m,
const char* __lo,
const char* __hi)
const;
782 scan_not(mask __m,
const char* __lo,
const char* __hi)
const;
870 return _M_widen[
static_cast<unsigned char>(__c)];
871 this->_M_widen_init();
896 if (_M_widen_ok == 1)
898 __builtin_memcpy(__to, __lo, __hi - __lo);
903 return this->
do_widen(__lo, __hi, __to);
927 if (_M_narrow[static_cast<unsigned char>(__c)])
928 return _M_narrow[
static_cast<unsigned char>(__c)];
929 const char __t =
do_narrow(__c, __dfault);
931 _M_narrow[
static_cast<unsigned char>(__c)] = __t;
959 char __dfault,
char* __to)
const
961 if (__builtin_expect(_M_narrow_ok == 1,
true))
963 __builtin_memcpy(__to, __lo, __hi - __lo);
968 return this->
do_narrow(__lo, __hi, __dfault, __to);
981 classic_table() throw();
1023 virtual const char_type*
1024 do_toupper(char_type* __lo, const char_type* __hi) const;
1056 virtual const char_type*
1057 do_tolower(char_type* __lo, const char_type* __hi) const;
1102 __builtin_memcpy(__to, __lo, __hi - __lo);
1151 virtual const char_type*
1153 char __dfault,
char* __to)
const
1155 __builtin_memcpy(__to, __lo, __hi - __lo);
1160 void _M_narrow_init()
const;
1161 void _M_widen_init()
const;
1164 #ifdef _GLIBCXX_USE_WCHAR_T
1183 typedef wctype_t __wmask_type;
1186 __c_locale _M_c_locale_ctype;
1190 char _M_narrow[128];
1191 wint_t _M_widen[1 +
static_cast<unsigned char>(-1)];
1195 __wmask_type _M_wmask[16];
1210 ctype(
size_t __refs = 0);
1221 ctype(__c_locale __cloc,
size_t __refs = 0);
1225 _M_convert_to_wmask(
const mask __m)
const throw();
1459 char __dfault,
char* __to)
const;
1463 _M_initialize_ctype() throw();
1465 #endif //_GLIBCXX_USE_WCHAR_T
1468 template<
typename _CharT>
1472 typedef typename ctype<_CharT>::mask mask;
1495 #ifdef _GLIBCXX_USE_WCHAR_T
1509 _GLIBCXX_END_NAMESPACE_VERSION
1515 namespace std _GLIBCXX_VISIBILITY(default)
1517 _GLIBCXX_BEGIN_NAMESPACE_VERSION
1532 _S_odigits_end = _S_odigits + 16,
1533 _S_oudigits = _S_odigits_end,
1534 _S_oudigits_end = _S_oudigits + 16,
1535 _S_oe = _S_odigits + 14,
1536 _S_oE = _S_oudigits + 14,
1537 _S_oend = _S_oudigits_end
1545 static const char* _S_atoms_out;
1549 static const char* _S_atoms_in;
1558 _S_ie = _S_izero + 14,
1559 _S_iE = _S_izero + 20,
1566 _S_format_float(
const ios_base& __io,
char* __fptr,
char __mod)
throw();
1569 template<
typename _CharT>
1570 struct __numpunct_cache :
public locale::facet
1572 const char* _M_grouping;
1573 size_t _M_grouping_size;
1574 bool _M_use_grouping;
1575 const _CharT* _M_truename;
1576 size_t _M_truename_size;
1577 const _CharT* _M_falsename;
1578 size_t _M_falsename_size;
1579 _CharT _M_decimal_point;
1580 _CharT _M_thousands_sep;
1586 _CharT _M_atoms_out[__num_base::_S_oend];
1592 _CharT _M_atoms_in[__num_base::_S_iend];
1596 __numpunct_cache(
size_t __refs = 0)
1597 :
facet(__refs), _M_grouping(0), _M_grouping_size(0),
1598 _M_use_grouping(false),
1599 _M_truename(0), _M_truename_size(0), _M_falsename(0),
1600 _M_falsename_size(0), _M_decimal_point(_CharT()),
1601 _M_thousands_sep(_CharT()), _M_allocated(false)
1604 ~__numpunct_cache();
1607 _M_cache(
const locale& __loc);
1611 operator=(
const __numpunct_cache&);
1614 __numpunct_cache(
const __numpunct_cache&);
1617 template<
typename _CharT>
1618 __numpunct_cache<_CharT>::~__numpunct_cache()
1622 delete [] _M_grouping;
1623 delete [] _M_truename;
1624 delete [] _M_falsename;
1642 template<
typename _CharT>
1652 typedef __numpunct_cache<_CharT> __cache_type;
1655 __cache_type* _M_data;
1668 :
facet(__refs), _M_data(0)
1669 { _M_initialize_numpunct(); }
1682 :
facet(__refs), _M_data(__cache)
1683 { _M_initialize_numpunct(); }
1696 :
facet(__refs), _M_data(0)
1697 { _M_initialize_numpunct(__cloc); }
1797 {
return _M_data->_M_decimal_point; }
1809 {
return _M_data->_M_thousands_sep; }
1822 {
return _M_data->_M_grouping; }
1835 {
return _M_data->_M_truename; }
1848 {
return _M_data->_M_falsename; }
1852 _M_initialize_numpunct(__c_locale __cloc = 0);
1855 template<
typename _CharT>
1856 locale::id numpunct<_CharT>::id;
1863 numpunct<char>::_M_initialize_numpunct(__c_locale __cloc);
1865 #ifdef _GLIBCXX_USE_WCHAR_T
1871 numpunct<wchar_t>::_M_initialize_numpunct(__c_locale __cloc);
1875 template<
typename _CharT>
1886 if (__builtin_strcmp(__s,
"C") != 0
1887 && __builtin_strcmp(__s,
"POSIX") != 0)
1890 this->_S_create_c_locale(__tmp, __s);
1891 this->_M_initialize_numpunct(__tmp);
1892 this->_S_destroy_c_locale(__tmp);
1901 _GLIBCXX_BEGIN_NAMESPACE_LDBL
1916 template<
typename _CharT,
typename _InIter>
1965 ios_base::iostate& __err,
bool& __v)
const
1966 {
return this->
do_get(__in, __end, __io, __err, __v); }
2001 ios_base::iostate& __err,
long& __v)
const
2002 {
return this->
do_get(__in, __end, __io, __err, __v); }
2006 ios_base::iostate& __err,
unsigned short& __v)
const
2007 {
return this->
do_get(__in, __end, __io, __err, __v); }
2011 ios_base::iostate& __err,
unsigned int& __v)
const
2012 {
return this->
do_get(__in, __end, __io, __err, __v); }
2016 ios_base::iostate& __err,
unsigned long& __v)
const
2017 {
return this->
do_get(__in, __end, __io, __err, __v); }
2019 #ifdef _GLIBCXX_USE_LONG_LONG
2022 ios_base::iostate& __err,
long long& __v)
const
2023 {
return this->
do_get(__in, __end, __io, __err, __v); }
2027 ios_base::iostate& __err,
unsigned long long& __v)
const
2028 {
return this->
do_get(__in, __end, __io, __err, __v); }
2060 ios_base::iostate& __err,
float& __v)
const
2061 {
return this->
do_get(__in, __end, __io, __err, __v); }
2065 ios_base::iostate& __err,
double& __v)
const
2066 {
return this->
do_get(__in, __end, __io, __err, __v); }
2070 ios_base::iostate& __err,
long double& __v)
const
2071 {
return this->
do_get(__in, __end, __io, __err, __v); }
2102 ios_base::iostate& __err,
void*& __v)
const
2103 {
return this->
do_get(__in, __end, __io, __err, __v); }
2113 template<
typename _ValueT>
2118 template<
typename _CharT2>
2119 typename __gnu_cxx::__enable_if<__is_char<_CharT2>::__value,
int>::__type
2120 _M_find(
const _CharT2*,
size_t __len, _CharT2 __c)
const
2125 if (__c >= _CharT2(
'0') && __c < _CharT2(_CharT2(
'0') + __len))
2126 __ret = __c - _CharT2(
'0');
2130 if (__c >= _CharT2(
'0') && __c <= _CharT2(
'9'))
2131 __ret = __c - _CharT2(
'0');
2132 else if (__c >= _CharT2(
'a') && __c <= _CharT2(
'f'))
2133 __ret = 10 + (__c - _CharT2(
'a'));
2134 else if (__c >= _CharT2(
'A') && __c <= _CharT2(
'F'))
2135 __ret = 10 + (__c - _CharT2(
'A'));
2140 template<
typename _CharT2>
2141 typename __gnu_cxx::__enable_if<!__is_char<_CharT2>::__value,
2143 _M_find(
const _CharT2* __zero,
size_t __len, _CharT2 __c)
const
2146 const char_type* __q = char_traits<_CharT2>::find(__zero, __len, __c);
2149 __ret = __q - __zero;
2176 ios_base::iostate& __err,
long& __v)
const
2177 {
return _M_extract_int(__beg, __end, __io, __err, __v); }
2181 ios_base::iostate& __err,
unsigned short& __v)
const
2182 {
return _M_extract_int(__beg, __end, __io, __err, __v); }
2186 ios_base::iostate& __err,
unsigned int& __v)
const
2187 {
return _M_extract_int(__beg, __end, __io, __err, __v); }
2191 ios_base::iostate& __err,
unsigned long& __v)
const
2192 {
return _M_extract_int(__beg, __end, __io, __err, __v); }
2194 #ifdef _GLIBCXX_USE_LONG_LONG
2197 ios_base::iostate& __err,
long long& __v)
const
2198 {
return _M_extract_int(__beg, __end, __io, __err, __v); }
2202 ios_base::iostate& __err,
unsigned long long& __v)
const
2203 {
return _M_extract_int(__beg, __end, __io, __err, __v); }
2214 #if defined _GLIBCXX_LONG_DOUBLE_COMPAT && defined __LONG_DOUBLE_128__
2221 long double&)
const;
2228 #if defined _GLIBCXX_LONG_DOUBLE_COMPAT && defined __LONG_DOUBLE_128__
2231 long double&)
const;
2236 template<
typename _CharT,
typename _InIter>
2237 locale::id num_get<_CharT, _InIter>::id;
2252 template<
typename _CharT,
typename _OutIter>
2293 {
return this->
do_put(__s, __io, __fill, __v); }
2335 {
return this->
do_put(__s, __io, __fill, __v); }
2339 unsigned long __v)
const
2340 {
return this->
do_put(__s, __io, __fill, __v); }
2342 #ifdef _GLIBCXX_USE_LONG_LONG
2345 {
return this->
do_put(__s, __io, __fill, __v); }
2349 unsigned long long __v)
const
2350 {
return this->
do_put(__s, __io, __fill, __v); }
2398 {
return this->
do_put(__s, __io, __fill, __v); }
2402 long double __v)
const
2403 {
return this->
do_put(__s, __io, __fill, __v); }
2423 const void* __v)
const
2424 {
return this->
do_put(__s, __io, __fill, __v); }
2427 template<
typename _ValueT>
2430 char __mod, _ValueT __v)
const;
2433 _M_group_float(
const char* __grouping,
size_t __grouping_size,
2437 template<
typename _ValueT>
2443 _M_group_int(
const char* __grouping,
size_t __grouping_size,
2474 {
return _M_insert_int(__s, __io, __fill, __v); }
2478 unsigned long __v)
const
2479 {
return _M_insert_int(__s, __io, __fill, __v); }
2481 #ifdef _GLIBCXX_USE_LONG_LONG
2484 long long __v)
const
2485 {
return _M_insert_int(__s, __io, __fill, __v); }
2489 unsigned long long __v)
const
2490 {
return _M_insert_int(__s, __io, __fill, __v); }
2497 #if defined _GLIBCXX_LONG_DOUBLE_COMPAT && defined __LONG_DOUBLE_128__
2509 #if defined _GLIBCXX_LONG_DOUBLE_COMPAT && defined __LONG_DOUBLE_128__
2516 template <
typename _CharT,
typename _OutIter>
2517 locale::id num_put<_CharT, _OutIter>::id;
2519 _GLIBCXX_END_NAMESPACE_LDBL
2527 template<
typename _CharT>
2530 {
return use_facet<ctype<_CharT> >(__loc).is(ctype_base::space, __c); }
2533 template<
typename _CharT>
2536 {
return use_facet<ctype<_CharT> >(__loc).is(ctype_base::print, __c); }
2539 template<
typename _CharT>
2542 {
return use_facet<ctype<_CharT> >(__loc).is(ctype_base::cntrl, __c); }
2545 template<
typename _CharT>
2548 {
return use_facet<ctype<_CharT> >(__loc).is(ctype_base::upper, __c); }
2551 template<
typename _CharT>
2554 {
return use_facet<ctype<_CharT> >(__loc).is(ctype_base::lower, __c); }
2557 template<
typename _CharT>
2560 {
return use_facet<ctype<_CharT> >(__loc).is(ctype_base::alpha, __c); }
2563 template<
typename _CharT>
2566 {
return use_facet<ctype<_CharT> >(__loc).is(ctype_base::digit, __c); }
2569 template<
typename _CharT>
2572 {
return use_facet<ctype<_CharT> >(__loc).is(ctype_base::punct, __c); }
2575 template<
typename _CharT>
2578 {
return use_facet<ctype<_CharT> >(__loc).is(ctype_base::xdigit, __c); }
2581 template<
typename _CharT>
2584 {
return use_facet<ctype<_CharT> >(__loc).is(ctype_base::alnum, __c); }
2587 template<
typename _CharT>
2590 {
return use_facet<ctype<_CharT> >(__loc).is(ctype_base::graph, __c); }
2593 template<
typename _CharT>
2596 {
return use_facet<ctype<_CharT> >(__loc).
toupper(__c); }
2599 template<
typename _CharT>
2602 {
return use_facet<ctype<_CharT> >(__loc).
tolower(__c); }
2604 _GLIBCXX_END_NAMESPACE_VERSION
virtual iter_type do_get(iter_type __beg, iter_type __end, ios_base &__io, ios_base::iostate &__err, unsigned int &__v) const
Numeric parsing.
_InIter iter_type
Public typedefs.
virtual char do_narrow(char_type __c, char __dfault) const
Narrow char.
Localization functionality base class.The facet class is the base class for a localization feature...
numpunct(__cache_type *__cache, size_t __refs=0)
Internal constructor. Not for general use.
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.
bool is(mask __m, char_type __c) const
Test char_type classification.
const char_type * narrow(const char_type *__lo, const char_type *__hi, char __dfault, char *__to) const
Narrow char array.
virtual const char_type * do_scan_is(mask __m, const char_type *__lo, const char_type *__hi) const =0
Find char_type matching mask.
virtual iter_type do_put(iter_type __s, ios_base &__io, char_type __fill, unsigned long long __v) const
Numeric formatting.
string_type falsename() const
Return string representation of bool false.
virtual iter_type do_get(iter_type __beg, iter_type __end, ios_base &__io, ios_base::iostate &__err, long &__v) const
Numeric parsing.
const char_type * toupper(char_type *__lo, const char_type *__hi) const
Convert array to uppercase.
virtual char_type do_thousands_sep() const
Return thousands separator character.
virtual const char * do_widen(const char *__lo, const char *__hi, char_type *__to) const
Widen char array.
static locale::id id
Numpunct facet id.
Primary class template ctype facet.This template class defines classification and conversion function...
virtual string_type do_falsename() const
Return string representation of bool false.
virtual iter_type do_get(iter_type, iter_type, ios_base &, ios_base::iostate &, bool &) 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.
const char_type * scan_not(mask __m, const char_type *__lo, const char_type *__hi) const
Find char_type not matching a mask.
facet(size_t __refs=0)
Facet constructor.
_CharT char_type
Typedef for the template parameter.
num_put(size_t __refs=0)
Constructor performs initialization.
_Ios_Iostate iostate
This is a bitmask type.
bool isspace(_CharT __c, const locale &__loc)
Convenience interface to ctype.is(ctype_base::space, __c).
virtual char do_narrow(char_type, char __dfault) const
Narrow char_type to 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 ~num_put()
Destructor.
_CharT char_type
Public typedefs.
static locale::id id
The facet id for ctype<wchar_t>
bool iscntrl(_CharT __c, const locale &__loc)
Convenience interface to ctype.is(ctype_base::cntrl, __c).
char_type thousands_sep() const
Return thousands separator character.
basic_string< _CharT > string_type
Public typedefs.
char_type toupper(char_type __c) const
Convert to uppercase.
static locale::id id
The facet id for ctype<char_type>
virtual char_type do_widen(char __c) const
Widen char.
string grouping() const
Return grouping specification.
const char * widen(const char *__lo, const char *__hi, char_type *__to) const
Widen array to char_type.
class numpunct_byname [22.2.3.2].
char char_type
Typedef for the template parameter char.
virtual iter_type do_get(iter_type __beg, iter_type __end, ios_base &__io, ios_base::iostate &__err, unsigned long &__v) const
Numeric parsing.
static locale::id id
Numpunct facet id.
virtual string_type do_truename() const
Return string representation of bool true.
_CharT char_type
Public typedefs.
char_type widen(char __c) const
Widen char to char_type.
iter_type put(iter_type __s, ios_base &__io, char_type __fill, unsigned long __v) const
Numeric formatting.
char narrow(char_type __c, char __dfault) const
Narrow char.
_CharT toupper(_CharT __c, const locale &__loc)
Convenience interface to ctype.toupper(__c).
Container class for localization functionality.The locale class is first a class wrapper for C librar...
virtual char_type do_tolower(char_type __c) const =0
Convert to lowercase.
char_type tolower(char_type __c) const
Convert to lowercase.
iter_type put(iter_type __s, ios_base &__io, char_type __fill, double __v) const
Numeric formatting.
char_type toupper(char_type __c) const
Convert to uppercase.
string_type truename() const
Return string representation of bool true.
virtual iter_type do_get(iter_type __beg, iter_type __end, ios_base &__io, ios_base::iostate &__err, long long &__v) const
Numeric parsing.
bool isgraph(_CharT __c, const locale &__loc)
Convenience interface to ctype.is(ctype_base::graph, __c).
virtual ~numpunct()
Destructor.
virtual char_type do_decimal_point() const
Return decimal point character.
numpunct(__c_locale __cloc, size_t __refs=0)
Internal constructor. Not for general use.
bool islower(_CharT __c, const locale &__loc)
Convenience interface to ctype.is(ctype_base::lower, __c).
num_get(size_t __refs=0)
Constructor performs initialization.
static locale::id id
The facet id for ctype<char>
bool isupper(_CharT __c, const locale &__loc)
Convenience interface to ctype.is(ctype_base::upper, __c).
virtual iter_type do_put(iter_type __s, ios_base &__io, char_type __fill, long long __v) const
Numeric formatting.
bool isprint(_CharT __c, const locale &__loc)
Convenience interface to ctype.is(ctype_base::print, __c).
_OutIter iter_type
Public typedefs.
class ctype_byname [22.2.1.2].
numpunct(size_t __refs=0)
Numpunct constructor.
const mask * table() const
Returns a pointer to the mask table provided to the constructor, or the default from classic_table() ...
iter_type put(iter_type __s, ios_base &__io, char_type __fill, long long __v) const
Numeric formatting.
const char_type * narrow(const char_type *__lo, const char_type *__hi, char __dfault, char *__to) const
Narrow array to char array.
const char * widen(const char *__lo, const char *__hi, char_type *__to) const
Widen char array.
iter_type put(iter_type __s, ios_base &__io, char_type __fill, unsigned long long __v) const
Numeric formatting.
bool isdigit(_CharT __c, const locale &__loc)
Convenience interface to ctype.is(ctype_base::digit, __c).
const char_type * scan_is(mask __m, const char_type *__lo, const char_type *__hi) const
Find char_type matching a mask.
iter_type put(iter_type __s, ios_base &__io, char_type __fill, const void *__v) const
Numeric formatting.
ptrdiff_t streamsize
Integral type for I/O operation counts and buffer sizes.
Primary class template num_put.This facet encapsulates the code to convert a number to a string...
char_type widen(char __c) const
Widen char.
virtual bool do_is(mask __m, char_type __c) const
Test char_type classification.
bool isxdigit(_CharT __c, const locale &__loc)
Convenience interface to ctype.is(ctype_base::xdigit, __c).
virtual bool do_is(mask __m, char_type __c) const =0
Test char_type classification.
virtual char_type do_toupper(char_type __c) const
Convert to uppercase.
const char_type * toupper(char_type *__lo, const char_type *__hi) const
Convert array 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 tolower(char_type __c) const
Convert to lowercase.
The base of the I/O class hierarchy.This class defines everything that can be defined about I/O that ...
Facet ID class.The ID class provides facets with an index used to identify them. Every facet class mu...
virtual iter_type do_get(iter_type __beg, iter_type __end, ios_base &__io, ios_base::iostate &__err, unsigned short &__v) const
Numeric parsing.
Primary class template numpunct.This facet stores several pieces of information related to printing a...
virtual char do_narrow(char_type __c, char __dfault) const =0
Narrow char_type to char.
virtual char_type do_widen(char __c) const =0
Widen char.
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, unsigned long __v) const
Numeric formatting.
virtual const char_type * do_scan_not(mask __m, const char_type *__lo, const char_type *__hi) const
Find char_type not matching mask.
const char_type * tolower(char_type *__lo, const char_type *__hi) const
Convert array to lowercase.
_CharT tolower(_CharT __c, const locale &__loc)
Convenience interface to ctype.tolower(__c).
virtual char_type do_tolower(char_type __c) const
Convert to lowercase.
_CharT char_type
Public typedefs.
bool ispunct(_CharT __c, const locale &__loc)
Convenience interface to ctype.is(ctype_base::punct, __c).
bool isalnum(_CharT __c, const locale &__loc)
Convenience interface to ctype.is(ctype_base::alnum, __c).
static locale::id id
Numpunct facet id.
virtual string do_grouping() const
Return grouping specification.
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, bool __v) const
Numeric formatting.
wchar_t char_type
Typedef for the template parameter wchar_t.
const char_type * tolower(char_type *__lo, const char_type *__hi) const
Convert array to lowercase.
virtual ~num_get()
Destructor.
char narrow(char_type __c, char __dfault) const
Narrow char_type to char.
virtual char_type do_toupper(char_type __c) const =0
Convert to uppercase.
Common base for ctype facet.
virtual iter_type do_put(iter_type __s, ios_base &__io, char_type __fill, long __v) const
Numeric formatting.
bool isalpha(_CharT __c, const locale &__loc)
Convenience interface to ctype.is(ctype_base::alpha, __c).
iter_type put(iter_type __s, ios_base &__io, char_type __fill, long __v) const
Numeric formatting.
const char_type * is(const char_type *__lo, const char_type *__hi, mask *__vec) const
Return a mask array.
char_type decimal_point() const
Return decimal point character.
Primary class template num_get.This facet encapsulates the code to parse and return a number from a s...