ReactOS 0.4.16-dev-319-g6cf4263
ctype_byname< char > Class Reference

#include <_ctype.h>

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

Public Member Functions

 ctype_byname (const char *, size_t=0)
 
 ~ctype_byname ()
 
virtual char do_toupper (char __c) const
 
virtual char do_tolower (char __c) const
 
virtual const chardo_toupper (char *, const char *) const
 
virtual const chardo_tolower (char *, const char *) const
 
- Public Member Functions inherited from ctype< char >
 ctype (const mask *__tab=0, bool __del=false, size_t __refs=0)
 
bool is (mask __m, char __c) const
 
const charis (const char *__low, const char *__high, mask *__vec) const
 
const charscan_is (mask __m, const char *__low, const char *__high) const
 
const charscan_not (mask __m, const char *__low, const char *__high) const
 
char() toupper (char __c) const
 
const char *() toupper (char *__low, const char *__high) const
 
char() tolower (char __c) const
 
const char *() tolower (char *__low, const char *__high) const
 
char widen (char __c) const
 
const charwiden (const char *__low, const char *__high, char *__to) const
 
char narrow (char __c, char __dfault) const
 
const charnarrow (const char *__low, const char *__high, char __dfault, char *__to) const
 
 _STLP_STATIC_CONSTANT (size_t, table_size=256)
 

Private Types

typedef ctype_byname< char_Self
 

Private Member Functions

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

Private Attributes

mask _M_byname_table [table_size]
 
_Locale_ctype_M_ctype
 

Friends

class _Locale_impl
 

Additional Inherited Members

- Public Types inherited from ctype< char >
typedef char 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< char >
static _STLP_STATIC_DECLSPEC locale::id id = { 2 }
 
- Protected Member Functions inherited from ctype< char >
const masktable () const _STLP_NOTHROW
 
 ~ctype ()
 
virtual char do_toupper (char __c) const
 
virtual char do_tolower (char __c) const
 
virtual const chardo_toupper (char *__low, const char *__high) const
 
virtual const chardo_tolower (char *__low, const char *__high) const
 
virtual char do_widen (char __c) const
 
virtual const chardo_widen (const char *__low, const char *__high, char *__to) const
 
virtual char do_narrow (char __c, char) const
 
virtual const chardo_narrow (const char *__low, const char *__high, char, char *__to) 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 ()
 
- Static Protected Member Functions inherited from ctype< char >
static const mask *_STLP_CALL classic_table () _STLP_NOTHROW
 
- Protected Attributes inherited from ctype< char >
const mask_M_ctype_table
 

Detailed Description

Definition at line 147 of file _ctype.h.

Member Typedef Documentation

◆ _Self

typedef ctype_byname<char> ctype_byname< char >::_Self
private

Definition at line 167 of file _ctype.h.

Constructor & Destructor Documentation

◆ ctype_byname() [1/3]

_STLP_BEGIN_NAMESPACE ctype_byname< char >::ctype_byname ( const char name,
size_t  refs = 0 
)
explicit

Definition at line 41 of file facets_byname.cpp.

42 : ctype<char>( 0, false, refs) {
43 if (!name)
45
46 int __err_code;
48 _M_ctype = _STLP_PRIV __acquire_ctype(name, buf, 0, &__err_code);
49 if (!_M_ctype)
50 locale::_M_throw_on_creation_failure(__err_code, name, "ctype");
51
52 _M_init();
53}
#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:172
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()

Definition at line 66 of file facets_byname.cpp.

void _STLP_CALL __release_ctype(_Locale_ctype *cat)

◆ ctype_byname() [2/3]

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

Definition at line 160 of file _ctype.h.

161 : _M_ctype(__ctype)
162 { _M_init(); }

◆ ctype_byname() [3/3]

Member Function Documentation

◆ _M_init()

void ctype_byname< char >::_M_init ( )
private

Definition at line 55 of file facets_byname.cpp.

55 {
57
58 // We have to do this, instead of just pointer twiddling, because
59 // ctype_base::mask isn't the same type as _Locale_mask_t.
61 for (size_t i = 0; i != table_size; ++i) {
63 }
64}
const mask * _M_ctype_table
Definition: _ctype.h:141
mask _M_byname_table[table_size]
Definition: _ctype.h:171
GLfloat GLfloat p
Definition: glext.h:8902
GLsizei GLenum const GLvoid GLsizei GLenum GLbyte GLbyte GLbyte GLdouble GLdouble GLdouble GLfloat GLfloat GLfloat GLint GLint GLint GLshort GLshort GLshort GLubyte GLubyte GLubyte GLuint GLuint GLuint GLushort GLushort GLushort GLbyte GLbyte GLbyte GLbyte GLdouble GLdouble GLdouble GLdouble GLfloat GLfloat GLfloat GLfloat GLint GLint GLint GLint GLshort GLshort GLshort GLshort GLubyte GLubyte GLubyte GLubyte GLuint GLuint GLuint GLuint GLushort GLushort GLushort GLushort GLboolean const GLdouble const GLfloat const GLint const GLshort const GLbyte const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLdouble const GLfloat const GLfloat const GLint const GLint const GLshort const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort GLenum GLenum GLenum GLfloat GLenum GLint GLenum GLenum GLenum GLfloat GLenum GLenum GLint GLenum GLfloat GLenum GLint GLint GLushort GLenum GLenum GLfloat GLenum GLenum GLint GLfloat const GLubyte GLenum GLenum GLenum const GLfloat GLenum GLenum const GLint GLenum GLint GLint GLsizei GLsizei GLint GLenum GLenum const GLvoid GLenum GLenum const GLfloat GLenum GLenum const GLint GLenum GLenum const GLdouble GLenum GLenum const GLfloat GLenum GLenum const GLint GLsizei GLuint GLfloat GLuint GLbitfield GLfloat GLint GLuint GLboolean GLenum GLfloat GLenum GLbitfield GLenum GLfloat GLfloat GLint GLint const GLfloat GLenum GLfloat GLfloat GLint GLint GLfloat GLfloat GLint GLint const GLfloat GLint GLfloat GLfloat GLint GLfloat GLfloat GLint GLfloat GLfloat const GLdouble const GLfloat const GLdouble const GLfloat GLint i
Definition: glfuncs.h:248
const _Locale_mask_t * _Locale_ctype_table(struct _Locale_ctype *)
unsigned short int _Locale_mask_t
Definition: c_locale.h:63
LOCAL int table_size
Definition: write.c:65

◆ do_tolower() [1/2]

const char * ctype_byname< char >::do_tolower ( char first,
const char last 
) const
virtual

Reimplemented from ctype< char >.

Definition at line 83 of file facets_byname.cpp.

83 {
84 for ( ; first != last ; ++first)
86 return last;
87}
const GLint * first
Definition: glext.h:5794
int _Locale_tolower(struct _Locale_ctype *, int)
static UINT UINT last
Definition: font.c:45

◆ do_tolower() [2/2]

char ctype_byname< char >::do_tolower ( char  __c) const
virtual

Reimplemented from ctype< char >.

Definition at line 72 of file facets_byname.cpp.

73{ return (char)_Locale_tolower(_M_ctype, c); }
const GLubyte * c
Definition: glext.h:8905

◆ do_toupper() [1/2]

const char * ctype_byname< char >::do_toupper ( char first,
const char last 
) const
virtual

Reimplemented from ctype< char >.

Definition at line 76 of file facets_byname.cpp.

76 {
77 for ( ; first != last ; ++first)
79 return last;
80}
int _Locale_toupper(struct _Locale_ctype *, int)

◆ do_toupper() [2/2]

char ctype_byname< char >::do_toupper ( char  __c) const
virtual

Reimplemented from ctype< char >.

Definition at line 69 of file facets_byname.cpp.

70{ return (char)_Locale_toupper(_M_ctype, c); }

◆ operator=()

_Self & ctype_byname< char >::operator= ( _Self const )
private

Friends And Related Function Documentation

◆ _Locale_impl

friend class _Locale_impl
friend

Definition at line 148 of file _ctype.h.

Member Data Documentation

◆ _M_byname_table

mask ctype_byname< char >::_M_byname_table[table_size]
private

Definition at line 171 of file _ctype.h.

◆ _M_ctype

_Locale_ctype* ctype_byname< char >::_M_ctype
private

Definition at line 172 of file _ctype.h.


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