ReactOS 0.4.16-dev-2104-gb84fa49
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  wc,
wctype_t  wctypeFlags 
)

Definition at line 10 of file is_wctype.c.

11{
12 return iswctype(wc, wctypeFlags);
13}
int iswctype(wint_t wc, wctype_t wctypeFlags)
Definition: freeldr.c:165

◆ 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
const GLubyte * c
Definition: glext.h:8905

◆ iswalnum()

_ACRTIMP int __cdecl iswalnum ( wint_t  wc)

Definition at line 2255 of file wcs.c.

2256{
2257 return _iswalnum_l( wc, NULL );
2258}
#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 2271 of file wcs.c.

2272{
2273 return _iswalpha_l( wc, NULL );
2274}
#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 2287 of file wcs.c.

2288{
2289 return _iswcntrl_l( wc, NULL );
2290}
#define _iswcntrl_l(_c, _p)
Definition: ctype.h:686

◆ iswctype()

_ACRTIMP int __cdecl iswctype ( wint_t  wc,
wctype_t  wctypeFlags 
)

Definition at line 165 of file freeldr.c.

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

◆ iswdigit()

_ACRTIMP int __cdecl iswdigit ( wint_t  wc)

Definition at line 2303 of file wcs.c.

2304{
2305 return _iswdigit_l( wc, NULL );
2306}
#define _iswdigit_l(_c, _p)
Definition: ctype.h:679

◆ iswgraph()

_ACRTIMP int __cdecl iswgraph ( wint_t  wc)

Definition at line 2319 of file wcs.c.

2320{
2321 return _iswgraph_l( wc, NULL );
2322}
#define _iswgraph_l(_c, _p)
Definition: ctype.h:685

◆ iswlower()

_ACRTIMP int __cdecl iswlower ( wint_t  wc)

Definition at line 2335 of file wcs.c.

2336{
2337 return _iswlower_l( wc, NULL );
2338}
#define _iswlower_l(_c, _p)
Definition: ctype.h:678

◆ iswprint()

_ACRTIMP int __cdecl iswprint ( wint_t  wc)

Definition at line 2351 of file wcs.c.

2352{
2353 return _iswprint_l( wc, NULL );
2354}
#define _iswprint_l(_c, _p)
Definition: ctype.h:684

◆ iswpunct()

_ACRTIMP int __cdecl iswpunct ( wint_t  wc)

Definition at line 2367 of file wcs.c.

2368{
2369 return _iswpunct_l( wc, NULL );
2370}
#define _iswpunct_l(_c, _p)
Definition: ctype.h:682

◆ iswspace()

_ACRTIMP int __cdecl iswspace ( wint_t  wc)

Definition at line 2383 of file wcs.c.

2384{
2385 return _iswspace_l( wc, NULL );
2386}
#define _iswspace_l(_c, _p)
Definition: ctype.h:681

◆ iswupper()

_ACRTIMP int __cdecl iswupper ( wint_t  wc)

Definition at line 2399 of file wcs.c.

2400{
2401 return _iswupper_l( wc, NULL );
2402}
#define _iswupper_l(_c, _p)
Definition: ctype.h:677

◆ iswxdigit()

_ACRTIMP int __cdecl iswxdigit ( wint_t  wc)

Definition at line 2415 of file wcs.c.

2416{
2417 return _iswxdigit_l( wc, NULL );
2418}
#define _iswxdigit_l(_c, _p)
Definition: ctype.h:680

◆ towctrans()

wint_t __cdecl towctrans ( wint_t  c,
wctrans_t  category 
)

Definition at line 149 of file wcs.c.

150{
151 if(category == 1)
152 return _towupper_l(c, NULL);
153 return _towlower_l(c, NULL);
154}
wint_t CDECL _towupper_l(wint_t c, _locale_t locale)
Definition: wcs.c:2932
wint_t CDECL _towlower_l(wint_t c, _locale_t locale)
Definition: wcs.c:96

◆ towlower()

_ACRTIMP wint_t __cdecl towlower ( wint_t  c)

Definition at line 120 of file wcs.c.

121{
122 return _towlower_l(c, NULL);
123}

◆ towupper()

_ACRTIMP wint_t __cdecl towupper ( wint_t  c)

Definition at line 2956 of file wcs.c.

2957{
2958 return _towupper_l(c, NULL);
2959}

◆ 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:3319
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().