ReactOS 0.4.16-dev-737-g3368adc
corecrt_wctype.h File Reference
#include <corecrt.h>
Include dependency graph for corecrt_wctype.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Macros

#define WEOF   ((wint_t)(0xFFFF))
 
#define __PCTYPE_FUNC   __pctype_func()
 
#define _pctype   (__pctype_func())
 
#define _pwctype   (__pwctype_func())
 
#define _UPPER   0x01
 
#define _LOWER   0x02
 
#define _DIGIT   0x04
 
#define _SPACE   0x08
 
#define _PUNCT   0x10
 
#define _CONTROL   0x20
 
#define _BLANK   0x40
 
#define _HEX   0x80
 
#define _LEADBYTE   0x8000
 
#define _ALPHA   (0x0100 | _UPPER | _LOWER)
 
#define iswalpha(_c)   (iswctype(_c, _ALPHA))
 
#define iswupper(_c)   (iswctype(_c, _UPPER))
 
#define iswlower(_c)   (iswctype(_c, _LOWER))
 
#define iswdigit(_c)   (iswctype(_c, _DIGIT))
 
#define iswxdigit(_c)   (iswctype(_c, _HEX))
 
#define iswspace(_c)   (iswctype(_c, _SPACE))
 
#define iswpunct(_c)   (iswctype(_c, _PUNCT))
 
#define iswblank(_c)   (((_c) == '\t') ? _BLANK : iswctype(_c,_BLANK) )
 
#define iswalnum(_c)   (iswctype(_c, _ALPHA | _DIGIT))
 
#define iswprint(_c)   (iswctype(_c, _BLANK | _PUNCT | _ALPHA | _DIGIT))
 
#define iswgraph(_c)   (iswctype(_c, _PUNCT | _ALPHA | _DIGIT))
 
#define iswcntrl(_c)   (iswctype(_c, _CONTROL))
 
#define iswascii(_c)   ((unsigned)(_c) < 0x80)
 
#define _iswalpha_l(_c, _p)   (iswctype(_c, _ALPHA))
 
#define _iswupper_l(_c, _p)   (iswctype(_c, _UPPER))
 
#define _iswlower_l(_c, _p)   (iswctype(_c, _LOWER))
 
#define _iswdigit_l(_c, _p)   (iswctype(_c, _DIGIT))
 
#define _iswxdigit_l(_c, _p)   (iswctype(_c, _HEX))
 
#define _iswspace_l(_c, _p)   (iswctype(_c, _SPACE))
 
#define _iswpunct_l(_c, _p)   (iswctype(_c, _PUNCT))
 
#define _iswblank_l(_c, _p)   (iswctype(_c, _BLANK))
 
#define _iswalnum_l(_c, _p)   (iswctype(_c, _ALPHA | _DIGIT))
 
#define _iswprint_l(_c, _p)   (iswctype(_c, _BLANK | _PUNCT | _ALPHA | _DIGIT))
 
#define _iswgraph_l(_c, _p)   (iswctype(_c, _PUNCT | _ALPHA | _DIGIT))
 
#define _iswcntrl_l(_c, _p)   (iswctype(_c, _CONTROL))
 

Functions

_ACRTIMP const unsigned short *__cdecl __pctype_func (void)
 
_ACRTIMP const wctype_t *__cdecl __pwctype_func (void)
 
_Check_return_ _ACRTIMP int __cdecl iswalnum (_In_ wint_t _C)
 
_Check_return_ _ACRTIMP int __cdecl iswalpha (_In_ wint_t _C)
 
_Check_return_ _ACRTIMP int __cdecl iswascii (_In_ wint_t _C)
 
_Check_return_ _ACRTIMP int __cdecl iswblank (_In_ wint_t _C)
 
_Check_return_ _ACRTIMP int __cdecl iswcntrl (_In_ wint_t _C)
 
 _When_ (_Param_(1)==0, _Post_equal_to_(0)) _Check_return_ _ACRTIMP int __cdecl iswdigit(_In_ wint_t _C)
 
_Check_return_ _ACRTIMP int __cdecl iswgraph (_In_ wint_t _C)
 
_Check_return_ _ACRTIMP int __cdecl iswlower (_In_ wint_t _C)
 
_Check_return_ _ACRTIMP int __cdecl iswprint (_In_ wint_t _C)
 
_Check_return_ _ACRTIMP int __cdecl iswpunct (_In_ wint_t _C)
 
_Check_return_ _ACRTIMP int __cdecl iswspace (_In_ wint_t _C)
 
_Check_return_ _ACRTIMP int __cdecl iswupper (_In_ wint_t _C)
 
_Check_return_ _ACRTIMP int __cdecl iswxdigit (_In_ wint_t _C)
 
_Check_return_ _ACRTIMP int __cdecl __iswcsymf (_In_ wint_t _C)
 
_Check_return_ _ACRTIMP int __cdecl __iswcsym (_In_ wint_t _C)
 
_Check_return_ _ACRTIMP int __cdecl _iswalnum_l (_In_ wint_t _C, _In_opt_ _locale_t _Locale)
 
_Check_return_ _ACRTIMP int __cdecl _iswalpha_l (_In_ wint_t _C, _In_opt_ _locale_t _Locale)
 
_Check_return_ _ACRTIMP int __cdecl _iswblank_l (_In_ wint_t _C, _In_opt_ _locale_t _Locale)
 
_Check_return_ _ACRTIMP int __cdecl _iswcntrl_l (_In_ wint_t _C, _In_opt_ _locale_t _Locale)
 
_Check_return_ _ACRTIMP int __cdecl _iswdigit_l (_In_ wint_t _C, _In_opt_ _locale_t _Locale)
 
_Check_return_ _ACRTIMP int __cdecl _iswgraph_l (_In_ wint_t _C, _In_opt_ _locale_t _Locale)
 
_Check_return_ _ACRTIMP int __cdecl _iswlower_l (_In_ wint_t _C, _In_opt_ _locale_t _Locale)
 
_Check_return_ _ACRTIMP int __cdecl _iswprint_l (_In_ wint_t _C, _In_opt_ _locale_t _Locale)
 
_Check_return_ _ACRTIMP int __cdecl _iswpunct_l (_In_ wint_t _C, _In_opt_ _locale_t _Locale)
 
_Check_return_ _ACRTIMP int __cdecl _iswspace_l (_In_ wint_t _C, _In_opt_ _locale_t _Locale)
 
_Check_return_ _ACRTIMP int __cdecl _iswupper_l (_In_ wint_t _C, _In_opt_ _locale_t _Locale)
 
_Check_return_ _ACRTIMP int __cdecl _iswxdigit_l (_In_ wint_t _C, _In_opt_ _locale_t _Locale)
 
_Check_return_ _ACRTIMP int __cdecl _iswcsymf_l (_In_ wint_t _C, _In_opt_ _locale_t _Locale)
 
_Check_return_ _ACRTIMP int __cdecl _iswcsym_l (_In_ wint_t _C, _In_opt_ _locale_t _Locale)
 
_Check_return_ _ACRTIMP wint_t __cdecl towupper (_In_ wint_t _C)
 
_Check_return_ _ACRTIMP wint_t __cdecl towlower (_In_ wint_t _C)
 
_Check_return_ _ACRTIMP int __cdecl iswctype (_In_ wint_t _C, _In_ wctype_t _Type)
 
_Check_return_ _ACRTIMP wint_t __cdecl _towupper_l (_In_ wint_t _C, _In_opt_ _locale_t _Locale)
 
_Check_return_ _ACRTIMP wint_t __cdecl _towlower_l (_In_ wint_t _C, _In_opt_ _locale_t _Locale)
 
_Check_return_ _ACRTIMP int __cdecl _iswctype_l (_In_ wint_t _C, _In_ wctype_t _Type, _In_opt_ _locale_t _Locale)
 

Macro Definition Documentation

◆ __PCTYPE_FUNC

#define __PCTYPE_FUNC   __pctype_func()

Definition at line 32 of file corecrt_wctype.h.

◆ _ALPHA

#define _ALPHA   (0x0100 | _UPPER | _LOWER)

Definition at line 58 of file corecrt_wctype.h.

◆ _BLANK

#define _BLANK   0x40

Definition at line 54 of file corecrt_wctype.h.

◆ _CONTROL

#define _CONTROL   0x20

Definition at line 53 of file corecrt_wctype.h.

◆ _DIGIT

#define _DIGIT   0x04

Definition at line 50 of file corecrt_wctype.h.

◆ _HEX

#define _HEX   0x80

Definition at line 55 of file corecrt_wctype.h.

◆ _iswalnum_l

#define _iswalnum_l (   _c,
  _p 
)    (iswctype(_c, _ALPHA | _DIGIT))

Definition at line 150 of file corecrt_wctype.h.

◆ _iswalpha_l

#define _iswalpha_l (   _c,
  _p 
)    (iswctype(_c, _ALPHA))

Definition at line 142 of file corecrt_wctype.h.

◆ _iswblank_l

#define _iswblank_l (   _c,
  _p 
)    (iswctype(_c, _BLANK))

Definition at line 149 of file corecrt_wctype.h.

◆ _iswcntrl_l

#define _iswcntrl_l (   _c,
  _p 
)    (iswctype(_c, _CONTROL))

Definition at line 153 of file corecrt_wctype.h.

◆ _iswdigit_l

#define _iswdigit_l (   _c,
  _p 
)    (iswctype(_c, _DIGIT))

Definition at line 145 of file corecrt_wctype.h.

◆ _iswgraph_l

#define _iswgraph_l (   _c,
  _p 
)    (iswctype(_c, _PUNCT | _ALPHA | _DIGIT))

Definition at line 152 of file corecrt_wctype.h.

◆ _iswlower_l

#define _iswlower_l (   _c,
  _p 
)    (iswctype(_c, _LOWER))

Definition at line 144 of file corecrt_wctype.h.

◆ _iswprint_l

#define _iswprint_l (   _c,
  _p 
)    (iswctype(_c, _BLANK | _PUNCT | _ALPHA | _DIGIT))

Definition at line 151 of file corecrt_wctype.h.

◆ _iswpunct_l

#define _iswpunct_l (   _c,
  _p 
)    (iswctype(_c, _PUNCT))

Definition at line 148 of file corecrt_wctype.h.

◆ _iswspace_l

#define _iswspace_l (   _c,
  _p 
)    (iswctype(_c, _SPACE))

Definition at line 147 of file corecrt_wctype.h.

◆ _iswupper_l

#define _iswupper_l (   _c,
  _p 
)    (iswctype(_c, _UPPER))

Definition at line 143 of file corecrt_wctype.h.

◆ _iswxdigit_l

#define _iswxdigit_l (   _c,
  _p 
)    (iswctype(_c, _HEX))

Definition at line 146 of file corecrt_wctype.h.

◆ _LEADBYTE

#define _LEADBYTE   0x8000

Definition at line 57 of file corecrt_wctype.h.

◆ _LOWER

#define _LOWER   0x02

Definition at line 49 of file corecrt_wctype.h.

◆ _pctype

#define _pctype   (__pctype_func())

Definition at line 42 of file corecrt_wctype.h.

◆ _PUNCT

#define _PUNCT   0x10

Definition at line 52 of file corecrt_wctype.h.

◆ _pwctype

#define _pwctype   (__pwctype_func())

Definition at line 43 of file corecrt_wctype.h.

◆ _SPACE

#define _SPACE   0x08

Definition at line 51 of file corecrt_wctype.h.

◆ _UPPER

#define _UPPER   0x01

Definition at line 48 of file corecrt_wctype.h.

◆ iswalnum

#define iswalnum (   _c)    (iswctype(_c, _ALPHA | _DIGIT))

Definition at line 136 of file corecrt_wctype.h.

◆ iswalpha

#define iswalpha (   _c)    (iswctype(_c, _ALPHA))

Definition at line 128 of file corecrt_wctype.h.

◆ iswascii

#define iswascii (   _c)    ((unsigned)(_c) < 0x80)

Definition at line 140 of file corecrt_wctype.h.

◆ iswblank

#define iswblank (   _c)    (((_c) == '\t') ? _BLANK : iswctype(_c,_BLANK) )

Definition at line 135 of file corecrt_wctype.h.

◆ iswcntrl

#define iswcntrl (   _c)    (iswctype(_c, _CONTROL))

Definition at line 139 of file corecrt_wctype.h.

◆ iswdigit

#define iswdigit (   _c)    (iswctype(_c, _DIGIT))

Definition at line 131 of file corecrt_wctype.h.

◆ iswgraph

#define iswgraph (   _c)    (iswctype(_c, _PUNCT | _ALPHA | _DIGIT))

Definition at line 138 of file corecrt_wctype.h.

◆ iswlower

#define iswlower (   _c)    (iswctype(_c, _LOWER))

Definition at line 130 of file corecrt_wctype.h.

◆ iswprint

#define iswprint (   _c)    (iswctype(_c, _BLANK | _PUNCT | _ALPHA | _DIGIT))

Definition at line 137 of file corecrt_wctype.h.

◆ iswpunct

#define iswpunct (   _c)    (iswctype(_c, _PUNCT))

Definition at line 134 of file corecrt_wctype.h.

◆ iswspace

#define iswspace (   _c)    (iswctype(_c, _SPACE))

Definition at line 133 of file corecrt_wctype.h.

◆ iswupper

#define iswupper (   _c)    (iswctype(_c, _UPPER))

Definition at line 129 of file corecrt_wctype.h.

◆ iswxdigit

#define iswxdigit (   _c)    (iswctype(_c, _HEX))

Definition at line 132 of file corecrt_wctype.h.

◆ WEOF

#define WEOF   ((wint_t)(0xFFFF))

Definition at line 21 of file corecrt_wctype.h.

Function Documentation

◆ __iswcsym()

◆ __iswcsymf()

◆ __pctype_func()

_ACRTIMP const unsigned short *__cdecl __pctype_func ( void  )

Definition at line 1525 of file locale.c.

1526{
1527 return get_locinfo()->pctype;
1528}
MSVCRT_pthreadlocinfo get_locinfo(void)
Definition: locale.c:356
unsigned short * pctype
Definition: msvcrt.h:131

◆ __pwctype_func()

_ACRTIMP const wctype_t *__cdecl __pwctype_func ( void  )

Definition at line 569 of file ctype.c.

570{
571 return _pwctype;
572}
const unsigned short * _pwctype
Definition: ctype.c:557

◆ _iswalnum_l()

_Check_return_ _ACRTIMP int __cdecl _iswalnum_l ( _In_ wint_t  _C,
_In_opt_ _locale_t  _Locale 
)

Definition at line 301 of file stubs.c.

304{
305 return _iswctype_l(c, _ALPHA|_DIGIT, locale);
306}
Definition: _locale.h:75
_Check_return_ _CRTIMP int __cdecl _iswctype_l(_In_ wint_t c, _In_ wctype_t type, _In_opt_ _locale_t locale)
Definition: stubs.c:337
const GLubyte * c
Definition: glext.h:8905
#define _ALPHA
Definition: ctype.h:76
#define _DIGIT
Definition: ctype.h:67

◆ _iswalpha_l()

_Check_return_ _ACRTIMP int __cdecl _iswalpha_l ( _In_ wint_t  _C,
_In_opt_ _locale_t  _Locale 
)

Definition at line 313 of file stubs.c.

316{
317 return _iswctype_l(c, _ALPHA, locale);
318}

◆ _iswblank_l()

_Check_return_ _ACRTIMP int __cdecl _iswblank_l ( _In_ wint_t  _C,
_In_opt_ _locale_t  _Locale 
)

◆ _iswcntrl_l()

_Check_return_ _ACRTIMP int __cdecl _iswcntrl_l ( _In_ wint_t  _C,
_In_opt_ _locale_t  _Locale 
)

Definition at line 325 of file stubs.c.

328{
330 return _iswctype_l(c, _CONTROL, locale);
331}
#define UNIMPLEMENTED
Definition: ntoskrnl.c:15
#define _CONTROL
Definition: ctype.h:71

◆ _iswcsym_l()

_Check_return_ _ACRTIMP int __cdecl _iswcsym_l ( _In_ wint_t  _C,
_In_opt_ _locale_t  _Locale 
)

◆ _iswcsymf_l()

_Check_return_ _ACRTIMP int __cdecl _iswcsymf_l ( _In_ wint_t  _C,
_In_opt_ _locale_t  _Locale 
)

◆ _iswctype_l()

◆ _iswdigit_l()

_Check_return_ _ACRTIMP int __cdecl _iswdigit_l ( _In_ wint_t  _C,
_In_opt_ _locale_t  _Locale 
)

Definition at line 351 of file stubs.c.

354{
355 return _iswctype_l(c, _DIGIT, locale);
356}

◆ _iswgraph_l()

_Check_return_ _ACRTIMP int __cdecl _iswgraph_l ( _In_ wint_t  _C,
_In_opt_ _locale_t  _Locale 
)

Definition at line 363 of file stubs.c.

366{
367 return _iswctype_l(c, _PUNCT | _ALPHA | _DIGIT, locale);
368}
#define _PUNCT
Definition: ctype.h:70

◆ _iswlower_l()

_Check_return_ _ACRTIMP int __cdecl _iswlower_l ( _In_ wint_t  _C,
_In_opt_ _locale_t  _Locale 
)

Definition at line 375 of file stubs.c.

378{
379 return _iswctype_l(c , _LOWER, locale);
380}
#define _LOWER
Definition: ctype.h:66

◆ _iswprint_l()

_Check_return_ _ACRTIMP int __cdecl _iswprint_l ( _In_ wint_t  _C,
_In_opt_ _locale_t  _Locale 
)

Definition at line 387 of file stubs.c.

390{
391 return _iswctype_l(c, _BLANK | _PUNCT | _ALPHA | _DIGIT, locale);
392}
#define _BLANK
Definition: ctype.h:72

◆ _iswpunct_l()

_Check_return_ _ACRTIMP int __cdecl _iswpunct_l ( _In_ wint_t  _C,
_In_opt_ _locale_t  _Locale 
)

Definition at line 399 of file stubs.c.

402{
403 return _iswctype_l(c, _PUNCT, locale);
404}

◆ _iswspace_l()

_Check_return_ _ACRTIMP int __cdecl _iswspace_l ( _In_ wint_t  _C,
_In_opt_ _locale_t  _Locale 
)

Definition at line 411 of file stubs.c.

414{
415 return _iswctype_l(c, _SPACE, locale);
416}
#define _SPACE
Definition: ctype.h:68

◆ _iswupper_l()

_Check_return_ _ACRTIMP int __cdecl _iswupper_l ( _In_ wint_t  _C,
_In_opt_ _locale_t  _Locale 
)

Definition at line 423 of file stubs.c.

426{
427 return _iswctype_l(c, _UPPER, locale);
428}
#define _UPPER
Definition: ctype.h:65

◆ _iswxdigit_l()

_Check_return_ _ACRTIMP int __cdecl _iswxdigit_l ( _In_ wint_t  _C,
_In_opt_ _locale_t  _Locale 
)

Definition at line 435 of file stubs.c.

438{
439 return _iswctype_l(c, _HEX, locale);
440}
#define _HEX
Definition: ctype.h:73

◆ _towlower_l()

_Check_return_ _ACRTIMP wint_t __cdecl _towlower_l ( _In_ wint_t  _C,
_In_opt_ _locale_t  _Locale 
)

Definition at line 602 of file stubs.c.

605{
607 return 0;
608}

Referenced by _towlower_internal().

◆ _towupper_l()

_Check_return_ _ACRTIMP wint_t __cdecl _towupper_l ( _In_ wint_t  _C,
_In_opt_ _locale_t  _Locale 
)

Definition at line 614 of file stubs.c.

617{
619 return 0;
620}

Referenced by _towupper_internal().

◆ _When_()

_When_ ( _Param_(1)  = =0,
_Post_equal_to_(0)   
)

◆ iswalnum()

◆ iswalpha()

◆ iswascii()

◆ iswblank()

◆ iswcntrl()

◆ iswctype()

_Check_return_ _ACRTIMP int __cdecl iswctype ( _In_ wint_t  _C,
_In_ wctype_t  _Type 
)

◆ iswgraph()

◆ iswlower()

◆ iswprint()

◆ iswpunct()

◆ iswspace()

◆ iswupper()

◆ iswxdigit()

◆ towlower()

◆ towupper()