ReactOS 0.4.16-dev-937-g7afcd2a
iswctype.cpp File Reference
#include <corecrt_internal.h>
#include <ctype.h>
#include <locale.h>
Include dependency graph for iswctype.cpp:

Go to the source code of this file.

Functions

int __cdecl _iswctype_l (wint_t const c, wctype_t const mask, _locale_t)
 
int __cdecl iswctype (wint_t const c, wctype_t const mask)
 

Function Documentation

◆ _iswctype_l()

int __cdecl _iswctype_l ( wint_t const  c,
wctype_t const  mask,
_locale_t   
)

Definition at line 35 of file iswctype.cpp.

36{
37 return iswctype(c, mask);
38}
const GLubyte * c
Definition: glext.h:8905
GLenum GLint GLuint mask
Definition: glext.h:6028
int __cdecl iswctype(wint_t const c, wctype_t const mask)
Definition: iswctype.cpp:40

◆ iswctype()

int __cdecl iswctype ( wint_t const  c,
wctype_t const  mask 
)

Definition at line 40 of file iswctype.cpp.

41{
42 if (c == WEOF)
43 return 0;
44
45 if (c < 256)
46 return static_cast<int>(_pwctype[c] & mask);
47
48 wchar_t const wide_character = c;
49
50 wint_t char_type = 0;
51 if (__acrt_GetStringTypeW(CT_CTYPE1, &wide_character, 1, &char_type) == 0)
52 return 0;
53
54 return static_cast<int>(char_type & mask);
55}
int wint_t
Definition: _apple.h:38
#define _pwctype
Definition: wctype.h:67
#define c
Definition: ke_i.h:80
#define WEOF
Definition: conio.h:185
#define CT_CTYPE1
Definition: winnls.h:239

Referenced by _iswctype_l(), and is_wctype().