ReactOS 0.4.17-dev-357-ga8f14ff
wctype.h File Reference
#include <corecrt.h>
#include <pshpack8.h>
#include <poppack.h>
Include dependency graph for wctype.h:

Go to the source code of this file.

Macros

#define _UPPER   0x0001 /* C1_UPPER */
 
#define _LOWER   0x0002 /* C1_LOWER */
 
#define _DIGIT   0x0004 /* C1_DIGIT */
 
#define _SPACE   0x0008 /* C1_SPACE */
 
#define _PUNCT   0x0010 /* C1_PUNCT */
 
#define _CONTROL   0x0020 /* C1_CNTRL */
 
#define _BLANK   0x0040 /* C1_BLANK */
 
#define _HEX   0x0080 /* C1_XDIGIT */
 
#define _LEADBYTE   0x8000
 
#define _ALPHA   (0x0100|_UPPER|_LOWER) /* (C1_ALPHA|_UPPER|_LOWER) */
 
#define WEOF   (wint_t)(0xFFFF)
 
#define _WCTYPE_DEFINED
 

Typedefs

typedef wchar_t wctrans_t
 

Functions

_ACRTIMP int __cdecl is_wctype (wint_t, wctype_t)
 
_ACRTIMP int __cdecl isleadbyte (int)
 
_ACRTIMP int __cdecl iswalnum (wint_t)
 
_ACRTIMP int __cdecl iswalpha (wint_t)
 
_ACRTIMP int __cdecl iswascii (wint_t)
 
_ACRTIMP int __cdecl iswcntrl (wint_t)
 
_ACRTIMP int __cdecl iswctype (wint_t, wctype_t)
 
_ACRTIMP int __cdecl iswdigit (wint_t)
 
_ACRTIMP int __cdecl iswgraph (wint_t)
 
_ACRTIMP int __cdecl iswlower (wint_t)
 
_ACRTIMP int __cdecl iswprint (wint_t)
 
_ACRTIMP int __cdecl iswpunct (wint_t)
 
_ACRTIMP int __cdecl iswspace (wint_t)
 
_ACRTIMP int __cdecl iswupper (wint_t)
 
_ACRTIMP int __cdecl iswxdigit (wint_t)
 
_ACRTIMP wint_t __cdecl towlower (wint_t)
 
_ACRTIMP wint_t __cdecl towupper (wint_t)
 
wint_t __cdecl towctrans (wint_t, wctrans_t)
 
wctrans_t __cdecl wctrans (const char *)
 
wctype_t __cdecl wctype (const char *)
 

Macro Definition Documentation

◆ _ALPHA

#define _ALPHA   (0x0100|_UPPER|_LOWER) /* (C1_ALPHA|_UPPER|_LOWER) */

Definition at line 37 of file wctype.h.

◆ _BLANK

#define _BLANK   0x0040 /* C1_BLANK */

Definition at line 34 of file wctype.h.

◆ _CONTROL

#define _CONTROL   0x0020 /* C1_CNTRL */

Definition at line 33 of file wctype.h.

◆ _DIGIT

#define _DIGIT   0x0004 /* C1_DIGIT */

Definition at line 30 of file wctype.h.

◆ _HEX

#define _HEX   0x0080 /* C1_XDIGIT */

Definition at line 35 of file wctype.h.

◆ _LEADBYTE

#define _LEADBYTE   0x8000

Definition at line 36 of file wctype.h.

◆ _LOWER

#define _LOWER   0x0002 /* C1_LOWER */

Definition at line 29 of file wctype.h.

◆ _PUNCT

#define _PUNCT   0x0010 /* C1_PUNCT */

Definition at line 32 of file wctype.h.

◆ _SPACE

#define _SPACE   0x0008 /* C1_SPACE */

Definition at line 31 of file wctype.h.

◆ _UPPER

#define _UPPER   0x0001 /* C1_UPPER */

Definition at line 28 of file wctype.h.

◆ _WCTYPE_DEFINED

#define _WCTYPE_DEFINED

Definition at line 51 of file wctype.h.

◆ WEOF

#define WEOF   (wint_t)(0xFFFF)

Definition at line 40 of file wctype.h.

Typedef Documentation

◆ wctrans_t

typedef wchar_t wctrans_t

Definition at line 71 of file wctype.h.

Function Documentation

◆ is_wctype()

_ACRTIMP int __cdecl is_wctype ( wint_t  c,
wctype_t  mask 
)

Definition at line 33 of file is_wctype.cpp.

37{
38 return iswctype(c, mask);
39}
int __cdecl iswctype(wint_t wc, wctype_t wctypeFlags)
Definition: freeldr.c:166
const GLubyte * c
Definition: glext.h:8905
GLenum GLint GLuint mask
Definition: glext.h:6028

◆ isleadbyte()

_ACRTIMP int __cdecl isleadbyte ( int  c)

Definition at line 294 of file ctype.c.

295{
296 return _isctype( c, _LEADBYTE );
297}
int CDECL _isctype(int c, int type)
Definition: ctype.c:198
#define _LEADBYTE

◆ iswalnum()

_ACRTIMP int __cdecl iswalnum ( wint_t  wc)

Definition at line 2260 of file wcs.c.

2261{
2262 return _iswalnum_l( wc, NULL );
2263}
#define NULL
Definition: types.h:112
#define _iswalnum_l(_c, _p)
Definition: ctype.h:683

◆ iswalpha()

_ACRTIMP int __cdecl iswalpha ( wint_t  wc)

Definition at line 2276 of file wcs.c.

2277{
2278 return _iswalpha_l( wc, NULL );
2279}
#define _iswalpha_l(_c, _p)
Definition: ctype.h:676

◆ iswascii()

_ACRTIMP int __cdecl iswascii ( wint_t  c)

Definition at line 434 of file ctype.c.

435{
436 return ((unsigned)c < 0x80);
437}

◆ iswcntrl()

_ACRTIMP int __cdecl iswcntrl ( wint_t  wc)

Definition at line 2292 of file wcs.c.

2293{
2294 return _iswcntrl_l( wc, NULL );
2295}
#define _iswcntrl_l(_c, _p)
Definition: ctype.h:686

◆ iswctype()

_ACRTIMP int __cdecl iswctype ( wint_t  wc,
wctype_t  wctypeFlags 
)

Definition at line 166 of file freeldr.c.

167{
168 return _isctype((char)wc, wctypeFlags);
169}

◆ iswdigit()

_ACRTIMP int __cdecl iswdigit ( wint_t  wc)

Definition at line 2308 of file wcs.c.

2309{
2310 return _iswdigit_l( wc, NULL );
2311}
#define _iswdigit_l(_c, _p)
Definition: ctype.h:679

◆ iswgraph()

_ACRTIMP int __cdecl iswgraph ( wint_t  wc)

Definition at line 2324 of file wcs.c.

2325{
2326 return _iswgraph_l( wc, NULL );
2327}
#define _iswgraph_l(_c, _p)
Definition: ctype.h:685

◆ iswlower()

_ACRTIMP int __cdecl iswlower ( wint_t  wc)

Definition at line 2340 of file wcs.c.

2341{
2342 return _iswlower_l( wc, NULL );
2343}
#define _iswlower_l(_c, _p)
Definition: ctype.h:678

◆ iswprint()

_ACRTIMP int __cdecl iswprint ( wint_t  wc)

Definition at line 2356 of file wcs.c.

2357{
2358 return _iswprint_l( wc, NULL );
2359}
#define _iswprint_l(_c, _p)
Definition: ctype.h:684

◆ iswpunct()

_ACRTIMP int __cdecl iswpunct ( wint_t  wc)

Definition at line 2372 of file wcs.c.

2373{
2374 return _iswpunct_l( wc, NULL );
2375}
#define _iswpunct_l(_c, _p)
Definition: ctype.h:682

◆ iswspace()

_ACRTIMP int __cdecl iswspace ( wint_t  wc)

Definition at line 2388 of file wcs.c.

2389{
2390 return _iswspace_l( wc, NULL );
2391}
#define _iswspace_l(_c, _p)
Definition: ctype.h:681

◆ iswupper()

_ACRTIMP int __cdecl iswupper ( wint_t  wc)

Definition at line 2404 of file wcs.c.

2405{
2406 return _iswupper_l( wc, NULL );
2407}
#define _iswupper_l(_c, _p)
Definition: ctype.h:677

◆ iswxdigit()

_ACRTIMP int __cdecl iswxdigit ( wint_t  wc)

Definition at line 2420 of file wcs.c.

2421{
2422 return _iswxdigit_l( wc, NULL );
2423}
#define _iswxdigit_l(_c, _p)
Definition: ctype.h:680

◆ towctrans()

wint_t __cdecl towctrans ( wint_t  c,
wctrans_t  category 
)

Definition at line 154 of file wcs.c.

155{
156 if(category == 1)
157 return _towupper_l(c, NULL);
158 return _towlower_l(c, NULL);
159}
wint_t CDECL _towupper_l(wint_t c, _locale_t locale)
Definition: wcs.c:2937
wint_t CDECL _towlower_l(wint_t c, _locale_t locale)
Definition: wcs.c:101

◆ towlower()

_ACRTIMP wint_t __cdecl towlower ( wint_t  c)

Definition at line 125 of file wcs.c.

126{
127 return _towlower_l(c, NULL);
128}

◆ towupper()

_ACRTIMP wint_t __cdecl towupper ( wint_t  c)

Definition at line 2961 of file wcs.c.

2962{
2963 return _towupper_l(c, NULL);
2964}

◆ wctrans()

wctrans_t __cdecl wctrans ( const char name)

Definition at line 38 of file wctrans.cpp.

39{
40 for (unsigned n = 0; tab[n].s != 0; ++n)
41 {
42 if (strcmp(tab[n].s, name) == 0)
43 return tab[n].value;
44 }
45
46 return 0;
47}
_ACRTIMP int __cdecl strcmp(const char *, const char *)
Definition: string.c:3324
GLdouble s
Definition: gl.h:2039
GLdouble n
Definition: glext.h:7729
Definition: name.c:39
static struct wctab tab[]

◆ wctype()

wctype_t __cdecl wctype ( const char name)

Definition at line 41 of file wctype.cpp.

42{
43 for (unsigned n = 0; tab[n].s != 0; ++n)
44 {
45 if (strcmp(tab[n].s, name) == 0)
46 return tab[n].value;
47 }
48
49 return 0;
50}
static struct wctab tab[]

Referenced by _Messages::do_get(), _Catalog_locale_map::insert(), prim(), and rangematch().