22#ifndef _STLP_INTERNAL_CTYPE_H
23#define _STLP_INTERNAL_CTYPE_H
25#ifndef _STLP_C_LOCALE_H
29#ifndef _STLP_INTERNAL_LOCALE_H
33#ifndef _STLP_INTERNAL_ALGOBASE_H
58template <
class charT>
class ctype {};
65#ifndef _STLP_NO_WCHAR_T
77 explicit ctype(
const mask* __tab = 0,
bool __del =
false,
size_t __refs = 0);
79 {
return ((*(_M_ctype_table+(
unsigned char)
__c)) & __m) != 0; }
81 const char*
is(
const char* __low,
const char* __high,
mask* __vec)
const {
82 for (
const char* __p = __low;__p != __high; ++__p, ++__vec) {
83 *__vec = _M_ctype_table[(
unsigned char)*__p];
88 const char*
scan_is(
mask __m,
const char* __low,
const char* __high)
const;
89 const char*
scan_not(
mask __m,
const char* __low,
const char* __high)
const;
92 const char* (
toupper)(
char* __low,
const char* __high)
const {
93 return do_toupper(__low, __high);
97 const char* (
tolower)(
char* __low,
const char* __high)
const {
98 return do_tolower(__low, __high);
102 const char*
widen(
const char* __low,
const char* __high,
char* __to)
const {
103 return do_widen(__low, __high, __to);
107 return do_narrow(
__c, __dfault);
109 const char*
narrow(
const char* __low,
const char* __high,
110 char __dfault,
char* __to)
const {
111 return do_narrow(__low, __high, __dfault, __to);
132 char ,
char* __to)
const;
153 virtual char do_toupper(
char __c)
const;
154 virtual char do_tolower(
char __c)
const;
156 virtual const char* do_toupper(
char*,
const char*)
const;
157 virtual const char* do_tolower(
char*,
const char*)
const;
175# ifndef _STLP_NO_WCHAR_T
184 {
return do_is(__m,
__c); }
186 const wchar_t*
is(
const wchar_t* __low,
const wchar_t* __high,
188 {
return do_is(__low, __high, __vec); }
191 const wchar_t* __low,
const wchar_t* __high)
const
192 {
return do_scan_is(__m, __low, __high); }
195 const wchar_t* __low,
const wchar_t* __high)
const
196 {
return do_scan_not(__m, __low, __high); }
199 const wchar_t* (
toupper)(
wchar_t* __low,
const wchar_t* __high)
const
200 {
return do_toupper(__low, __high); }
203 const wchar_t* (
tolower)(
wchar_t* __low,
const wchar_t* __high)
const
204 {
return do_tolower(__low, __high); }
207 const char*
widen(
const char* __low,
const char* __high,
209 {
return do_widen(__low, __high, __to); }
212 {
return do_narrow(
__c, __dfault); }
213 const wchar_t*
narrow(
const wchar_t* __low,
const wchar_t* __high,
214 char __dfault,
char* __to)
const
215 {
return do_narrow(__low, __high, __dfault, __to); }
223 virtual const wchar_t*
do_is(
const wchar_t*,
const wchar_t*,
mask*)
const;
225 const wchar_t*,
const wchar_t*)
const;
227 const wchar_t*,
const wchar_t*)
const;
229 virtual const wchar_t*
do_toupper(
wchar_t*,
const wchar_t*)
const;
231 virtual const wchar_t*
do_tolower(
wchar_t*,
const wchar_t*)
const;
233 virtual const char*
do_widen(
const char*,
const char*,
wchar_t*)
const;
235 virtual const wchar_t*
do_narrow(
const wchar_t*,
const wchar_t*,
243 explicit ctype_byname(
const char* __name,
size_t __refs = 0);
248 virtual bool do_is(
mask __m,
wchar_t __c)
const;
249 virtual const wchar_t* do_is(
const wchar_t*,
const wchar_t*,
mask*)
const;
250 virtual const wchar_t* do_scan_is(
mask,
251 const wchar_t*,
const wchar_t*)
const;
252 virtual const wchar_t* do_scan_not(
mask,
253 const wchar_t*,
const wchar_t*)
const;
254 virtual wchar_t do_toupper(
wchar_t __c)
const;
255 virtual const wchar_t* do_toupper(
wchar_t*,
const wchar_t*)
const;
256 virtual wchar_t do_tolower(
wchar_t c)
const;
257 virtual const wchar_t* do_tolower(
wchar_t*,
const wchar_t*)
const;
261 : _M_ctype(__ctype) {}
static void print(LPPRINTDLGW pd, LPWSTR wszFileName)
const mask * table() const _STLP_NOTHROW
const char * widen(const char *__low, const char *__high, char *__to) const
bool is(mask __m, char __c) const
const char * is(const char *__low, const char *__high, mask *__vec) const
const mask * _M_ctype_table
const char * narrow(const char *__low, const char *__high, char __dfault, char *__to) const
const char * scan_not(mask __m, const char *__low, const char *__high) const
char narrow(char __c, char __dfault) const
ctype(const mask *__tab=0, bool __del=false, size_t __refs=0)
_STLP_STATIC_CONSTANT(size_t, table_size=256)
static _STLP_STATIC_DECLSPEC locale::id id
const char *() tolower(char *__low, const char *__high) const
char widen(char __c) const
const char *() toupper(char *__low, const char *__high) const
const char * scan_is(mask __m, const char *__low, const char *__high) const
virtual const wchar_t * do_narrow(const wchar_t *, const wchar_t *, char, char *) const
virtual char do_narrow(wchar_t __c, char __dfault) const
const wchar_t *() toupper(wchar_t *__low, const wchar_t *__high) const
const char * widen(const char *__low, const char *__high, wchar_t *__to) const
virtual const wchar_t * do_tolower(wchar_t *, const wchar_t *) const
const wchar_t *() tolower(wchar_t *__low, const wchar_t *__high) const
virtual const char * do_widen(const char *, const char *, wchar_t *) const
virtual const wchar_t * do_scan_not(mask, const wchar_t *, const wchar_t *) const
virtual wchar_t do_tolower(wchar_t c) const
const wchar_t * is(const wchar_t *__low, const wchar_t *__high, mask *__vec) const
const wchar_t * narrow(const wchar_t *__low, const wchar_t *__high, char __dfault, char *__to) const
char narrow(wchar_t __c, char __dfault) const
virtual const wchar_t * do_scan_is(mask, const wchar_t *, const wchar_t *) const
wchar_t widen(char __c) const
static _STLP_STATIC_DECLSPEC locale::id id
const wchar_t * scan_is(mask __m, const wchar_t *__low, const wchar_t *__high) const
bool is(mask __m, wchar_t __c) const
virtual wchar_t do_widen(char c) const
virtual const wchar_t * do_is(const wchar_t *, const wchar_t *, mask *) const
const wchar_t * scan_not(mask __m, const wchar_t *__low, const wchar_t *__high) const
virtual bool do_is(mask __m, wchar_t __c) const
virtual wchar_t do_toupper(wchar_t __c) const
virtual const wchar_t * do_toupper(wchar_t *, const wchar_t *) const
ctype_byname(_Locale_ctype *__ctype)
ctype_byname(_Self const &)
ctype_byname< char > _Self
ctype_byname(_Self const &)
ctype_byname(_Locale_ctype *__ctype)
ctype_byname< wchar_t > _Self
#define _STLP_TEMPLATE_NULL
#define _STLP_STATIC_DECLSPEC
#define _STLP_CLASS_DECLSPEC
#define _STLP_BEGIN_NAMESPACE
#define _STLP_END_NAMESPACE
GLclampf GLclampf GLclampf alpha
bool operator()(char __c)