ReactOS 0.4.15-dev-7958-gcd0bb1a
ctype_byname< wchar_t > Class Reference

#include <_ctype.h>

Inheritance diagram for ctype_byname< wchar_t >:
Collaboration diagram for ctype_byname< wchar_t >:

Public Member Functions

 ctype_byname (const char *__name, size_t __refs=0)
 
- Public Member Functions inherited from ctype< wchar_t >
 ctype (size_t __refs=0)
 
bool is (mask __m, wchar_t __c) const
 
const wchar_tis (const wchar_t *__low, const wchar_t *__high, mask *__vec) const
 
const wchar_tscan_is (mask __m, const wchar_t *__low, const wchar_t *__high) const
 
const wchar_tscan_not (mask __m, const wchar_t *__low, const wchar_t *__high) const
 
wchar_t() toupper (wchar_t __c) const
 
const wchar_t *() toupper (wchar_t *__low, const wchar_t *__high) const
 
wchar_t() tolower (wchar_t __c) const
 
const wchar_t *() tolower (wchar_t *__low, const wchar_t *__high) const
 
wchar_t widen (char __c) const
 
const charwiden (const char *__low, const char *__high, wchar_t *__to) const
 
char narrow (wchar_t __c, char __dfault) const
 
const wchar_tnarrow (const wchar_t *__low, const wchar_t *__high, char __dfault, char *__to) const
 

Protected Member Functions

 ~ctype_byname ()
 
virtual bool do_is (mask __m, wchar_t __c) const
 
virtual const wchar_tdo_is (const wchar_t *, const wchar_t *, mask *) const
 
virtual const wchar_tdo_scan_is (mask, const wchar_t *, const wchar_t *) const
 
virtual const wchar_tdo_scan_not (mask, const wchar_t *, const wchar_t *) const
 
virtual wchar_t do_toupper (wchar_t __c) const
 
virtual const wchar_tdo_toupper (wchar_t *, const wchar_t *) const
 
virtual wchar_t do_tolower (wchar_t c) const
 
virtual const wchar_tdo_tolower (wchar_t *, const wchar_t *) const
 
- Protected Member Functions inherited from ctype< wchar_t >
 ~ctype ()
 
virtual bool do_is (mask __m, wchar_t __c) const
 
virtual const wchar_tdo_is (const wchar_t *, const wchar_t *, mask *) const
 
virtual const wchar_tdo_scan_is (mask, const wchar_t *, const wchar_t *) const
 
virtual const wchar_tdo_scan_not (mask, const wchar_t *, const wchar_t *) const
 
virtual wchar_t do_toupper (wchar_t __c) const
 
virtual const wchar_tdo_toupper (wchar_t *, const wchar_t *) const
 
virtual wchar_t do_tolower (wchar_t c) const
 
virtual const wchar_tdo_tolower (wchar_t *, const wchar_t *) const
 
virtual wchar_t do_widen (char c) const
 
virtual const chardo_widen (const char *, const char *, wchar_t *) const
 
virtual char do_narrow (wchar_t __c, char __dfault) const
 
virtual const wchar_tdo_narrow (const wchar_t *, const wchar_t *, char, char *) const
 
- Protected Member Functions inherited from locale::facet
 facet (size_t __init_count=0)
 
virtual ~facet ()
 
- Protected Member Functions inherited from _Refcount_Base
 _Refcount_Base (__stl_atomic_t __n)
 
__stl_atomic_t _M_incr ()
 
__stl_atomic_t _M_decr ()
 

Private Types

typedef ctype_byname< wchar_t_Self
 

Private Member Functions

 ctype_byname (_Locale_ctype *__ctype)
 
 ctype_byname (_Self const &)
 
_Selfoperator= (_Self const &)
 

Private Attributes

_Locale_ctype_M_ctype
 

Friends

class _Locale_impl
 

Additional Inherited Members

- Public Types inherited from ctype< wchar_t >
typedef wchar_t char_type
 
- Public Types inherited from ctype_base
enum  mask {
  space = _Locale_SPACE , print = _Locale_PRINT , cntrl = _Locale_CNTRL , upper = _Locale_UPPER ,
  lower = _Locale_LOWER , alpha = _Locale_ALPHA , digit = _Locale_DIGIT , punct = _Locale_PUNCT ,
  xdigit = _Locale_XDIGIT , alnum = alpha | digit , graph = alnum | punct
}
 
- Static Public Attributes inherited from ctype< wchar_t >
static _STLP_STATIC_DECLSPEC locale::id id = { 15 }
 

Detailed Description

Definition at line 240 of file _ctype.h.

Member Typedef Documentation

◆ _Self

typedef ctype_byname<wchar_t> ctype_byname< wchar_t >::_Self
private

Definition at line 264 of file _ctype.h.

Constructor & Destructor Documentation

◆ ctype_byname() [1/3]

_STLP_MOVE_TO_STD_NAMESPACE ctype_byname< wchar_t >::ctype_byname ( const char __name,
size_t  __refs = 0 
)
explicit

Definition at line 112 of file facets_byname.cpp.

113 : ctype<wchar_t>(refs) {
114 if (!name)
116
117 int __err_code;
119 _M_ctype = _STLP_PRIV __acquire_ctype(name, buf, 0, &__err_code);
120 if (!_M_ctype)
121 locale::_M_throw_on_creation_failure(__err_code, name, "ctype");
122}
#define _STLP_PRIV
Definition: _dm.h:70
_STLP_BEGIN_NAMESPACE _STLP_MOVE_TO_PRIV_NAMESPACE _Locale_ctype *_STLP_CALL __acquire_ctype(const char *&name, char *buf, _Locale_name_hint *hint, int *__err_code)
_Locale_ctype * _M_ctype
Definition: _ctype.h:268
Definition: _ctype.h:58
static void _STLP_FUNCTION_THROWS _STLP_CALL _M_throw_on_null_name()
Definition: locale.cpp:57
static void _STLP_FUNCTION_THROWS _STLP_CALL _M_throw_on_creation_failure(int __err_code, const char *name, const char *facet)
Definition: locale.cpp:68
GLenum GLuint GLenum GLsizei const GLchar * buf
Definition: glext.h:7751
#define _Locale_MAX_SIMPLE_NAME
Definition: c_locale.h:54
Definition: name.c:39

◆ ~ctype_byname()

ctype_byname< wchar_t >::~ctype_byname ( )
protected

Definition at line 124 of file facets_byname.cpp.

void _STLP_CALL __release_ctype(_Locale_ctype *cat)

◆ ctype_byname() [2/3]

ctype_byname< wchar_t >::ctype_byname ( _Locale_ctype __ctype)
inlineprivate

Definition at line 260 of file _ctype.h.

261 : _M_ctype(__ctype) {}

◆ ctype_byname() [3/3]

Member Function Documentation

◆ do_is() [1/2]

const wchar_t * ctype_byname< wchar_t >::do_is ( const wchar_t low,
const wchar_t high,
ctype_base::mask m 
) const
protectedvirtual

Reimplemented from ctype< wchar_t >.

Definition at line 131 of file facets_byname.cpp.

132 {
142
143 for ( ; low < high; ++low, ++m)
144 *m = ctype_base::mask (_WLocale_ctype(_M_ctype, *low, all_bits));
145 return high;
146}
@ alpha
Definition: _ctype.h:47
@ lower
Definition: _ctype.h:46
@ space
Definition: _ctype.h:42
@ cntrl
Definition: _ctype.h:44
@ xdigit
Definition: _ctype.h:50
@ print
Definition: _ctype.h:43
@ upper
Definition: _ctype.h:45
@ punct
Definition: _ctype.h:49
@ digit
Definition: _ctype.h:48
const GLfloat * m
Definition: glext.h:10848
unsigned short int _Locale_mask_t
Definition: c_locale.h:63
_Locale_mask_t _WLocale_ctype(struct _Locale_ctype *, wint_t, _Locale_mask_t)

◆ do_is() [2/2]

bool ctype_byname< wchar_t >::do_is ( ctype_base::mask  m,
wchar_t  __c 
) const
protectedvirtual

Reimplemented from ctype< wchar_t >.

Definition at line 127 of file facets_byname.cpp.

128{ return _WLocale_ctype(_M_ctype, c, (_Locale_mask_t)m) != 0; }
const GLubyte * c
Definition: glext.h:8905

◆ do_scan_is()

const wchar_t * ctype_byname< wchar_t >::do_scan_is ( ctype_base::mask  m,
const wchar_t low,
const wchar_t high 
) const
protectedvirtual

Reimplemented from ctype< wchar_t >.

Definition at line 150 of file facets_byname.cpp.

151{ return find_if(low, high, _STLP_PRIV _Ctype_byname_w_is_mask(m, _M_ctype)); }
_STLP_MOVE_TO_STD_NAMESPACE _InputIter find_if(_InputIter __first, _InputIter __last, _Predicate __pred)
Definition: _algobase.c:214

◆ do_scan_not()

const wchar_t * ctype_byname< wchar_t >::do_scan_not ( ctype_base::mask  m,
const wchar_t low,
const wchar_t high 
) const
protectedvirtual

Reimplemented from ctype< wchar_t >.

Definition at line 155 of file facets_byname.cpp.

156{ return find_if(low, high, not1(_STLP_PRIV _Ctype_byname_w_is_mask(m, _M_ctype))); }
unary_negate< _Predicate > not1(const _Predicate &__pred)
Definition: _function.h:154

◆ do_tolower() [1/2]

const wchar_t * ctype_byname< wchar_t >::do_tolower ( wchar_t low,
const wchar_t high 
) const
protectedvirtual

Reimplemented from ctype< wchar_t >.

Definition at line 172 of file facets_byname.cpp.

172 {
173 for ( ; low < high; ++low)
174 *low = _WLocale_tolower(_M_ctype, *low);
175 return high;
176}
wint_t _WLocale_tolower(struct _Locale_ctype *, wint_t)

◆ do_tolower() [2/2]

wchar_t ctype_byname< wchar_t >::do_tolower ( wchar_t  c) const
protectedvirtual

Reimplemented from ctype< wchar_t >.

Definition at line 168 of file facets_byname.cpp.

169{ return _WLocale_tolower(_M_ctype, c); }

◆ do_toupper() [1/2]

const wchar_t * ctype_byname< wchar_t >::do_toupper ( wchar_t low,
const wchar_t high 
) const
protectedvirtual

Reimplemented from ctype< wchar_t >.

Definition at line 162 of file facets_byname.cpp.

162 {
163 for ( ; low < high; ++low)
164 *low = _WLocale_toupper(_M_ctype, *low);
165 return high;
166}
wint_t _WLocale_toupper(struct _Locale_ctype *, wint_t)

◆ do_toupper() [2/2]

wchar_t ctype_byname< wchar_t >::do_toupper ( wchar_t  __c) const
protectedvirtual

Reimplemented from ctype< wchar_t >.

Definition at line 158 of file facets_byname.cpp.

159{ return _WLocale_toupper(_M_ctype, c); }

◆ operator=()

Friends And Related Function Documentation

◆ _Locale_impl

friend class _Locale_impl
friend

Definition at line 241 of file _ctype.h.

Member Data Documentation

◆ _M_ctype

_Locale_ctype* ctype_byname< wchar_t >::_M_ctype
private

Definition at line 268 of file _ctype.h.


The documentation for this class was generated from the following files: