26 #define WEOF (wint_t)(0xFFFF)
29 #ifndef _CRT_CTYPEDATA_DEFINED
30 #define _CRT_CTYPEDATA_DEFINED
31 #ifndef _CTYPE_DISABLE_MACROS
34 extern const unsigned short __newctype[];
35 #if defined (_DLL) && defined (_M_IX86)
37 _CRTIMP const unsigned short ** __cdecl __p__pctype(
void);
42 #if defined (_CRT_DISABLE_PERFCRIT_LOCKS) && !defined (_DLL)
43 #define __PCTYPE_FUNC _pctype
45 #define __PCTYPE_FUNC __pctype_func()
50 #if !defined (_M_CEE_PURE)
53 #define _pctype (__pctype_func())
58 #ifndef _CRT_WCTYPEDATA_DEFINED
59 #define _CRT_WCTYPEDATA_DEFINED
60 #ifndef _CTYPE_DISABLE_MACROS
61 #if !defined (_M_CEE_PURE)
66 extern const unsigned short __newctype[];
67 #if defined (_DLL) && defined (_M_IX86)
74 #if !defined (_M_CEE_PURE)
77 #define _pwctype (__pwctype_func())
83 #ifndef _CTYPE_DISABLE_MACROS
84 extern const unsigned char __newclmap[];
85 extern const unsigned char __newcumap[];
90 extern int __globallocalestatus;
91 extern int __locale_changed;
107 #define _CONTROL 0x20
111 #define _LEADBYTE 0x8000
112 #define _ALPHA (0x0100|_UPPER|_LOWER)
117 #ifndef _CTYPE_DEFINED
155 #define _CTYPE_DEFINED
158 #ifndef _WCTYPE_DEFINED
202 #ifdef _CRT_USE_WINAPI_FAMILY_DESKTOP_APP
208 #define _WCTYPE_DEFINED
213 #ifndef _CTYPE_DISABLE_MACROS
221 #if defined (_DLL) && defined (_M_IX86)
223 _CRTIMP int * __cdecl __p___mb_cur_max(
void);
225 #define __MB_CUR_MAX(ptloci) (ptloci)->mb_cur_max
228 #if defined (_CRT_DISABLE_PERFCRIT_LOCKS) && !defined (_DLL)
229 #define MB_CUR_MAX __mb_cur_max
231 #define MB_CUR_MAX ___mb_cur_max_func()
233 #if !defined (_M_CEE_PURE)
237 #define __mb_cur_max (___mb_cur_max_func())
248 #define __chvalidchk(a,b) _chvalidator(a,b)
250 #define __chvalidchk(a,b) (__PCTYPE_FUNC[(a)] & (b))
255 #define __ascii_isalpha(c) ( __chvalidchk(c, _ALPHA))
256 #define __ascii_isdigit(c) ( __chvalidchk(c, _DIGIT))
257 #define __ascii_tolower(c) ( (((c) >= 'A') && ((c) <= 'Z')) ? ((c) - 'A' + 'a') : (c) )
258 #define __ascii_toupper(c) ( (((c) >= 'a') && ((c) <= 'z')) ? ((c) - 'a' + 'A') : (c) )
259 #define __ascii_iswalpha(c) ( ('A' <= (c) && (c) <= 'Z') || ( 'a' <= (c) && (c) <= 'z'))
260 #define __ascii_iswdigit(c) ( '0' <= (c) && (c) <= '9')
261 #define __ascii_towlower(c) ( (((c) >= L'A') && ((c) <= L'Z')) ? ((c) - L'A' + L'a') : (c) )
262 #define __ascii_towupper(c) ( (((c) >= L'a') && ((c) <= L'z')) ? ((c) - L'a' + L'A') : (c) )
265 #if defined (_CRT_DISABLE_PERFCRIT_LOCKS) && !defined (_DLL)
267 #define isalpha(_c) (MB_CUR_MAX > 1 ? _isctype(_c,_ALPHA) : __chvalidchk(_c, _ALPHA))
268 #define isupper(_c) (MB_CUR_MAX > 1 ? _isctype(_c,_UPPER) : __chvalidchk(_c, _UPPER))
269 #define islower(_c) (MB_CUR_MAX > 1 ? _isctype(_c,_LOWER) : __chvalidchk(_c, _LOWER))
270 #define isdigit(_c) (MB_CUR_MAX > 1 ? _isctype(_c,_DIGIT) : __chvalidchk(_c, _DIGIT))
271 #define isxdigit(_c) (MB_CUR_MAX > 1 ? _isctype(_c,_HEX) : __chvalidchk(_c, _HEX))
272 #define isspace(_c) (MB_CUR_MAX > 1 ? _isctype(_c,_SPACE) : __chvalidchk(_c, _SPACE))
273 #define ispunct(_c) (MB_CUR_MAX > 1 ? _isctype(_c,_PUNCT) : __chvalidchk(_c, _PUNCT))
274 #define isblank(_c) (MB_CUR_MAX > 1 ? (((_c) == '\t') ? _BLANK : _isctype(_c,_BLANK)) : (((_c) == '\t') ? _BLANK : __chvalidchk(_c, _BLANK)))
275 #define isalnum(_c) (MB_CUR_MAX > 1 ? _isctype(_c,_ALPHA|_DIGIT) : __chvalidchk(_c, (_ALPHA|_DIGIT)))
276 #define isprint(_c) (MB_CUR_MAX > 1 ? _isctype(_c,_BLANK|_PUNCT|_ALPHA|_DIGIT) : __chvalidchk(_c, (_BLANK|_PUNCT|_ALPHA|_DIGIT)))
277 #define isgraph(_c) (MB_CUR_MAX > 1 ? _isctype(_c,_PUNCT|_ALPHA|_DIGIT) : __chvalidchk(_c, (_PUNCT|_ALPHA|_DIGIT)))
278 #define iscntrl(_c) (MB_CUR_MAX > 1 ? _isctype(_c,_CONTROL) : __chvalidchk(_c, _CONTROL))
284 #define _chvalidchk_l(_Char, _Flag, _Locale) _chvalidator_l(_Locale, _Char, _Flag)
286 #define _chvalidchk_l(_Char, _Flag, _Locale) (_Locale==NULL ? __chvalidchk(_Char, _Flag) : ((_locale_t)_Locale)->locinfo->pctype[_Char] & (_Flag))
290 #define __ascii_isalpha_l(_Char, _Locale) ( _chvalidchk_l(_Char, _ALPHA, _Locale))
291 #define __ascii_isdigit_l(_Char, _Locale) ( _chvalidchk_l(_Char, _DIGIT, _Locale))
294 #define _ischartype_l(_Char, _Flag, _Locale) ( ((_Locale)!=NULL && (((_locale_t)(_Locale))->locinfo->mb_cur_max) > 1) ? _isctype_l(_Char, (_Flag), _Locale) : _chvalidchk_l(_Char,_Flag,_Locale))
295 #define _isalpha_l(_Char, _Locale) _ischartype_l(_Char, _ALPHA, _Locale)
296 #define _isupper_l(_Char, _Locale) _ischartype_l(_Char, _UPPER, _Locale)
297 #define _islower_l(_Char, _Locale) _ischartype_l(_Char, _LOWER, _Locale)
298 #define _isdigit_l(_Char, _Locale) _ischartype_l(_Char, _DIGIT, _Locale)
299 #define _isxdigit_l(_Char, _Locale) _ischartype_l(_Char, _HEX, _Locale)
300 #define _isspace_l(_Char, _Locale) _ischartype_l(_Char, _SPACE, _Locale)
301 #define _ispunct_l(_Char, _Locale) _ischartype_l(_Char, _PUNCT, _Locale)
302 #define _isblank_l(_Char, _Locale) (((_Char) == '\t') ? _BLANK : _ischartype_l(_Char, _BLANK, _Locale))
303 #define _isalnum_l(_Char, _Locale) _ischartype_l(_Char, _ALPHA|_DIGIT, _Locale)
304 #define _isprint_l(_Char, _Locale) _ischartype_l(_Char, _BLANK|_PUNCT|_ALPHA|_DIGIT, _Locale)
305 #define _isgraph_l(_Char, _Locale) _ischartype_l(_Char, _PUNCT|_ALPHA|_DIGIT, _Locale)
306 #define _iscntrl_l(_Char, _Locale) _ischartype_l(_Char, _CONTROL, _Locale)
308 #define _tolower(_Char) ( (_Char)-'A'+'a' )
309 #define _toupper(_Char) ( (_Char)-'a'+'A' )
311 #define __isascii(_Char) ( (unsigned)(_Char) < 0x80 )
312 #define __toascii(_Char) ( (_Char) & 0x7f )
314 #ifndef _WCTYPE_INLINE_DEFINED
317 #define _CRT_WCTYPE_NOINLINE
319 #undef _CRT_WCTYPE_NOINLINE
322 #if !defined (__cplusplus) || defined (_M_CEE_PURE) || defined (MRTDLL) || defined (_CRT_WCTYPE_NOINLINE)
323 #define iswalpha(_c) ( iswctype(_c,_ALPHA) )
324 #define iswupper(_c) ( iswctype(_c,_UPPER) )
325 #define iswlower(_c) ( iswctype(_c,_LOWER) )
326 #define iswdigit(_c) ( iswctype(_c,_DIGIT) )
327 #define iswxdigit(_c) ( iswctype(_c,_HEX) )
328 #define iswspace(_c) ( iswctype(_c,_SPACE) )
329 #define iswpunct(_c) ( iswctype(_c,_PUNCT) )
330 #define iswblank(_c) (((_c) == '\t') ? _BLANK : iswctype(_c,_BLANK) )
331 #define iswalnum(_c) ( iswctype(_c,_ALPHA|_DIGIT) )
332 #define iswprint(_c) ( iswctype(_c,_BLANK|_PUNCT|_ALPHA|_DIGIT) )
333 #define iswgraph(_c) ( iswctype(_c,_PUNCT|_ALPHA|_DIGIT) )
334 #define iswcntrl(_c) ( iswctype(_c,_CONTROL) )
335 #define iswascii(_c) ( (unsigned)(_c) < 0x80 )
337 #define _iswalpha_l(_c,_p) ( iswctype(_c,_ALPHA) )
338 #define _iswupper_l(_c,_p) ( iswctype(_c,_UPPER) )
339 #define _iswlower_l(_c,_p) ( iswctype(_c,_LOWER) )
340 #define _iswdigit_l(_c,_p) ( iswctype(_c,_DIGIT) )
341 #define _iswxdigit_l(_c,_p) ( iswctype(_c,_HEX) )
342 #define _iswspace_l(_c,_p) ( iswctype(_c,_SPACE) )
343 #define _iswpunct_l(_c,_p) ( iswctype(_c,_PUNCT) )
344 #define _iswblank_l(_c,_p) (((_c) == '\t') ? _BLANK : iswctype(_c,_BLANK) )
345 #define _iswalnum_l(_c,_p) ( iswctype(_c,_ALPHA|_DIGIT) )
346 #define _iswprint_l(_c,_p) ( iswctype(_c,_BLANK|_PUNCT|_ALPHA|_DIGIT) )
347 #define _iswgraph_l(_c,_p) ( iswctype(_c,_PUNCT|_ALPHA|_DIGIT) )
348 #define _iswcntrl_l(_c,_p) ( iswctype(_c,_CONTROL) )
350 #define _WCTYPE_INLINE_DEFINED
355 #define __iscsymf(_c) (isalpha(_c) || ((_c) == '_'))
356 #define __iscsym(_c) (isalnum(_c) || ((_c) == '_'))
357 #define __iswcsymf(_c) (iswalpha(_c) || ((_c) == '_'))
358 #define __iswcsym(_c) (iswalnum(_c) || ((_c) == '_'))
360 #define _iscsymf_l(_c, _p) (_isalpha_l(_c, _p) || ((_c) == '_'))
361 #define _iscsym_l(_c, _p) (_isalnum_l(_c, _p) || ((_c) == '_'))
362 #define _iswcsymf_l(_c, _p) (iswalpha(_c) || ((_c) == '_'))
363 #define _iswcsym_l(_c, _p) (iswalnum(_c) || ((_c) == '_'))
372 #ifndef _CTYPE_DEFINED
378 #define isascii __isascii
379 #define toascii __toascii
380 #define iscsymf __iscsymf
381 #define iscsym __iscsym
#define _iswxdigit_l(_c, _p)
Definition: ctype.h:341
#define _iswalpha_l(_c, _p)
Definition: ctype.h:337
_Check_return_ _CRTIMP wint_t __cdecl _towupper_l(_In_ wint_t _C, _In_opt_ _locale_t _Locale)
_Check_return_ _CRTIMP wint_t __cdecl towupper(_In_ wint_t _C)
#define iscsym
Definition: ctype.h:381
#define _iswalnum_l(_c, _p)
Definition: ctype.h:345
_Check_return_ _CRTIMP int __cdecl _toupper_l(_In_ int _C, _In_opt_ _locale_t _Locale)
#define iswgraph(_c)
Definition: ctype.h:333
#define _isxdigit_l(_Char, _Locale)
Definition: ctype.h:299
#define iswprint(_c)
Definition: ctype.h:332
struct threadmbcinfostruct * pthreadmbcinfo
Definition: crtdefs.h:2075
_Check_return_ _CRTIMP wint_t __cdecl _towlower_l(_In_ wint_t _C, _In_opt_ _locale_t _Locale)
_Check_return_ _CRT_JIT_INTRINSIC _CRTIMP int __cdecl isalpha(_In_ int _C)
#define toascii
Definition: ctype.h:379
#define _CRTIMP
Definition: crtdefs.h:23
_Check_return_ _CRT_JIT_INTRINSIC _CRTIMP int __cdecl tolower(_In_ int _C)
#define _isupper_l(_Char, _Locale)
Definition: ctype.h:296
#define iswlower(_c)
Definition: ctype.h:325
#define iswpunct(_c)
Definition: ctype.h:329
Definition: crtdefs.h:2092
#define _iswcntrl_l(_c, _p)
Definition: ctype.h:348
unsigned short wctype_t
Definition: crtdefs.h:542
#define _isgraph_l(_Char, _Locale)
Definition: ctype.h:305
#define _iswgraph_l(_c, _p)
Definition: ctype.h:347
#define _iswupper_l(_c, _p)
Definition: ctype.h:338
unsigned short wint_t
Definition: crtdefs.h:541
#define iswascii(_c)
Definition: ctype.h:335
#define _isspace_l(_Char, _Locale)
Definition: ctype.h:300
#define iswdigit(_c)
Definition: ctype.h:326
#define __isascii(_Char)
Definition: ctype.h:311
#define _tolower(_Char)
Definition: ctype.h:308
_CRTIMP const unsigned short _wctype[]
_Check_return_ _CRTIMP int __cdecl iswctype(_In_ wint_t _C, _In_ wctype_t _Type)
_Check_return_ _CRTIMP int __cdecl isleadbyte(_In_ int _C)
_Check_return_ _CRT_JIT_INTRINSIC _CRTIMP int __cdecl toupper(_In_ int _C)
#define iswalnum(_c)
Definition: ctype.h:331
#define __iswcsym(_c)
Definition: ctype.h:358
_CRTIMP const wctype_t * _pwctype
#define _CRT_JIT_INTRINSIC
Definition: crtdefs.h:414
#define _iswdigit_l(_c, _p)
Definition: ctype.h:340
#define _Check_return_
Definition: sal.h:563
_CRTIMP int __cdecl ___mb_cur_max_l_func(_locale_t)
#define _In_
Definition: sal.h:314
_Check_return_ _In_z_ const char * _Locale
Definition: locale.h:117
#define _In_opt_
Definition: sal.h:315
#define isascii
Definition: ctype.h:378
#define __iscsym(_c)
Definition: ctype.h:356
#define iswcntrl(_c)
Definition: ctype.h:334
_Check_return_ _CRTIMP int __cdecl isxdigit(_In_ int _C)
_Check_return_ _CRTIMP int __cdecl isgraph(_In_ int _C)
#define _ispunct_l(_Char, _Locale)
Definition: ctype.h:301
_In_ wchar_t _C
Definition: wchar.h:1295
#define _isalnum_l(_Char, _Locale)
Definition: ctype.h:303
_Check_return_ _CRT_JIT_INTRINSIC _CRTIMP int __cdecl isspace(_In_ int _C)
#define _toupper(_Char)
Definition: ctype.h:309
_Check_return_ _CRTIMP int __cdecl _tolower_l(_In_ int _C, _In_opt_ _locale_t _Locale)
_Check_return_ _CRTIMP wint_t __cdecl towlower(_In_ wint_t _C)
_Check_return_ _CRTIMP int __cdecl _iswctype_l(_In_ wint_t _C, _In_ wctype_t _Type, _In_opt_ _locale_t _Locale)
_Check_return_ _CRT_JIT_INTRINSIC _CRTIMP int __cdecl isalnum(_In_ int _C)
#define _iswspace_l(_c, _p)
Definition: ctype.h:342
#define _isalpha_l(_Char, _Locale)
Definition: ctype.h:295
_In_ wctype_t _Type
Definition: ctype.h:205
_In_ size_t _In_ unsigned int _Ch
Definition: mbstring.h:161
_Check_return_ _CRT_JIT_INTRINSIC _CRTIMP int __cdecl islower(_In_ int _C)
#define _isprint_l(_Char, _Locale)
Definition: ctype.h:304
#define _isdigit_l(_Char, _Locale)
Definition: ctype.h:298
#define _CRT_NONSTDC_DEPRECATE(_NewName)
Definition: crtdefs.h:488
#define _iswprint_l(_c, _p)
Definition: ctype.h:346
_CRTIMP const unsigned short * _pctype
#define iswalpha(_c)
Definition: ctype.h:323
#define _islower_l(_Char, _Locale)
Definition: ctype.h:297
#define iswupper(_c)
Definition: ctype.h:324
_Check_return_ _CRTIMP int __cdecl ispunct(_In_ int _C)
_Check_return_ _CRTIMP int __cdecl _isctype_l(_In_ int _C, _In_ int _Type, _In_opt_ _locale_t _Locale)
#define _iswpunct_l(_c, _p)
Definition: ctype.h:343
_CRTIMP const unsigned short *__cdecl __pctype_func(void)
_CRTIMP int __cdecl ___mb_cur_max_func(void)
#define __toascii(_Char)
Definition: ctype.h:312
_Check_return_ _CRTIMP int __cdecl iscntrl(_In_ int _C)
#define _iswcsymf_l(_c, _p)
Definition: ctype.h:362
#define iscsymf
Definition: ctype.h:380
#define __iswcsymf(_c)
Definition: ctype.h:357
#define _iswcsym_l(_c, _p)
Definition: ctype.h:363
#define iswspace(_c)
Definition: ctype.h:328
_Check_return_ _CRTIMP int __cdecl isblank(_In_ int _C)
_CRT_OBSOLETE(iswctype) _CRTIMP int __cdecl is_wctype(_In_ wint_t _C
_CRT_MANAGED_FP_DEPRECATE _In_ unsigned int _Mask
Definition: float.h:120
#define __iscsymf(_c)
Definition: ctype.h:355
#define _iswlower_l(_c, _p)
Definition: ctype.h:339
#define _iscntrl_l(_Char, _Locale)
Definition: ctype.h:306
#define _isblank_l(_Char, _Locale)
Definition: ctype.h:302
_Check_return_ _CRT_JIT_INTRINSIC _CRTIMP int __cdecl isupper(_In_ int _C)
_Check_return_ _CRT_JIT_INTRINSIC _CRTIMP int __cdecl isdigit(_In_ int _C)
#define iswblank(_c)
Definition: ctype.h:330
_Check_return_ _CRTIMP int __cdecl isprint(_In_ int _C)
_Check_return_ _CRTIMP int __cdecl _isleadbyte_l(_In_ int _C, _In_opt_ _locale_t _Locale)
#define _iswblank_l(_c, _p)
Definition: ctype.h:344
_Check_return_ _CRTIMP int __cdecl _isctype(_In_ int _C, _In_ int _Type)
Definition: crtdefs.h:2078
#define iswxdigit(_c)
Definition: ctype.h:327
_CRTIMP const wctype_t *__cdecl __pwctype_func(void)