34 #if defined (_DLL) && defined (_M_IX86)
41 #if !defined (_M_CEE_PURE)
48 #define _mbctype (__p__mbctype())
49 #define _mbcasemap (__p__mbcasemap())
54 extern int __globallocalestatus;
55 extern int __locale_changed;
56 extern struct threadmbcinfostruct __initialmbcinfo;
75 #define _MBC_ILLEGAL (-1)
82 #define _MB_CP_ANSI -3
83 #define _MB_CP_LOCALE -4
86 #ifndef _MBCTYPE_DEFINED
96 #ifdef _CRT_USE_WINAPI_FAMILY_DESKTOP_APP
120 #ifndef _MBLEADTRAIL_DEFINED
130 #define _MBLEADTRAIL_DEFINED
135 #define _MBCTYPE_DEFINED
138 #ifdef _CRT_USE_WINAPI_FAMILY_DESKTOP_APP
144 #if defined (_CRT_DISABLE_PERFCRIT_LOCKS) && !defined (_DLL)
145 #define _ismbbkalnum(_c) ((_mbctype+1)[(unsigned char)(_c)] & _MS)
146 #define _ismbbkprint(_c) ((_mbctype+1)[(unsigned char)(_c)] & (_MS|_MP))
147 #define _ismbbkpunct(_c) ((_mbctype+1)[(unsigned char)(_c)] & _MP)
149 #define _ismbbalnum(_c) (((_pctype)[(unsigned char)(_c)] & (_ALPHA|_DIGIT))||_ismbbkalnum(_c))
150 #define _ismbbalpha(_c) (((_pctype)[(unsigned char)(_c)] & (_ALPHA))||_ismbbkalnum(_c))
151 #define _ismbbgraph(_c) (((_pctype)[(unsigned char)(_c)] & (_PUNCT|_ALPHA|_DIGIT))||_ismbbkprint(_c))
152 #define _ismbbprint(_c) (((_pctype)[(unsigned char)(_c)] & (_BLANK|_PUNCT|_ALPHA|_DIGIT))||_ismbbkprint(_c))
153 #define _ismbbpunct(_c) (((_pctype)[(unsigned char)(_c)] & _PUNCT)||_ismbbkpunct(_c))
154 #define _ismbbblank(_c) (((_c) == '\t') ? _BLANK : (_pctype)[(unsigned char)(_c)] & _BLANK)
156 #define _ismbblead(_c) ((_mbctype+1)[(unsigned char)(_c)] & _M1)
157 #define _ismbbtrail(_c) ((_mbctype+1)[(unsigned char)(_c)] & _M2)
159 #define _ismbbkana(_c) ((_mbctype+1)[(unsigned char)(_c)] & (_MS|_MP))
163 #define _ismbbalnum_l(_c, pt) ((((pt)->locinfo->pctype)[(unsigned char)(_c)] & \
164 (_ALPHA|_DIGIT)) || \
165 (((pt)->mbcinfo->mbctype+1)[(unsigned char)(_c)] & _MS))
166 #define _ismbbalpha_l(_c, pt) ((((pt)->locinfo->pctype)[(unsigned char)(_c)] & \
168 (((pt)->mbcinfo->mbctype+1)[(unsigned char)(_c)] & _MS))
169 #define _ismbbgraph_l(_c, pt) ((((pt)->locinfo->pctype)[(unsigned char)(_c)] & \
170 (_PUNCT|_ALPHA|_DIGIT)) || \
171 (((pt)->mbcinfo->mbctype+1)[(unsigned char)(_c)] & (_MS|_MP)))
172 #define _ismbbprint_l(_c, pt) ((((pt)->locinfo->pctype)[(unsigned char)(_c)] & \
173 (_BLANK|_PUNCT|_ALPHA|_DIGIT)) || \
174 (((pt)->mbcinfo->mbctype + 1)[(unsigned char)(_c)] & (_MS|_MP)))
175 #define _ismbbpunct_l(_c, pt) ((((pt)->locinfo->pctype)[(unsigned char)(_c)] & _PUNCT) || \
176 (((pt)->mbcinfo->mbctype+1)[(unsigned char)(_c)] & _MP))
177 #define _ismbbblank_l(_c, pt) (((_c) == '\t') ? _BLANK : (((pt)->locinfo->pctype)[(unsigned char)(_c)] & _BLANK) || \
178 (((pt)->mbcinfo->mbctype+1)[(unsigned char)(_c)] & _MP))
179 #define _ismbblead_l(_c, p) ((p->mbcinfo->mbctype + 1)[(unsigned char)(_c)] & _M1)
180 #define _ismbbtrail_l(_c, p) ((p->mbcinfo->mbctype + 1)[(unsigned char)(_c)] & _M2)
_Check_return_ _CRTIMP int __cdecl _ismbbkprint(_In_ unsigned int _C)
_Check_return_ _CRTIMP int __cdecl _ismbbalpha_l(_In_ unsigned int _C, _In_opt_ _locale_t _Locale)
_Check_return_ _CRTIMP int __cdecl _ismbbalnum_l(_In_ unsigned int _C, _In_opt_ _locale_t _Locale)
_Check_return_ _CRTIMP int __cdecl _ismbbkpunct_l(_In_ unsigned int _C, _In_opt_ _locale_t _Locale)
_Check_return_ _CRTIMP int __cdecl _ismbbtrail(_In_ unsigned int _C)
_CRTIMP unsigned char _mbcasemap[]
struct threadmbcinfostruct * pthreadmbcinfo
Definition: crtdefs.h:2075
_Check_return_ _CRTIMP int __cdecl _ismbbtrail_l(_In_ unsigned int _C, _In_opt_ _locale_t _Locale)
_Check_return_ _CRTIMP int __cdecl _ismbstrail_l(_In_reads_z_(_Pos-_Str+1) const unsigned char *_Str, _In_z_ const unsigned char *_Pos, _In_opt_ _locale_t _Locale)
#define _CRTIMP
Definition: crtdefs.h:23
_Check_return_ _CRTIMP int __cdecl _ismbstrail(_In_reads_z_(_Pos-_Str+1) const unsigned char *_Str, _In_z_ const unsigned char *_Pos)
_Check_return_ _CRTIMP int __cdecl _ismbbkana_l(_In_ unsigned int _C, _In_opt_ _locale_t _Locale)
_Check_return_ _CRTIMP int __cdecl _ismbbprint(_In_ unsigned int _C)
_Check_return_ _CRTIMP int __cdecl _ismbbkprint_l(_In_ unsigned int _C, _In_opt_ _locale_t _Locale)
_CRTIMP int __cdecl _getmbcp(void)
_Check_return_ _CRTIMP int __cdecl _ismbslead_l(_In_reads_z_(_Pos-_Str+1) const unsigned char *_Str, _In_z_ const unsigned char *_Pos, _In_opt_ _locale_t _Locale)
_Check_return_ _CRTIMP int __cdecl _ismbbalnum(_In_ unsigned int _C)
_CRTIMP unsigned char _mbctype[]
_Check_return_ _CRTIMP int __cdecl _ismbbkana(_In_ unsigned int _C)
#define _In_reads_z_(size)
Definition: sal.h:329
#define _Check_return_
Definition: sal.h:563
#define _In_z_
Definition: sal.h:319
#define _In_
Definition: sal.h:314
_Check_return_ _In_z_ const char * _Locale
Definition: locale.h:117
_Check_return_ _CRTIMP int __cdecl _ismbbgraph(_In_ unsigned int _C)
#define _In_opt_
Definition: sal.h:315
_Check_return_ _CRTIMP int __cdecl _ismbblead_l(_In_ unsigned int _C, _In_opt_ _locale_t _Locale)
_Check_return_ _CRTIMP int __cdecl _ismbbkpunct(_In_ unsigned int _C)
_In_ wchar_t _C
Definition: wchar.h:1295
_Check_return_ _CRTIMP int __cdecl _ismbbalpha(_In_ unsigned int _C)
_Check_return_ _CRTIMP int __cdecl _ismbbgraph_l(_In_ unsigned int _C, _In_opt_ _locale_t _Locale)
_Check_return_ _CRTIMP int __cdecl _ismbblead(_In_ unsigned int _C)
_Check_return_ _CRTIMP int __cdecl _ismbbpunct(_In_ unsigned int _C)
_CRTIMP int __cdecl _setmbcp(_In_ int _CodePage)
_Check_return_ _CRTIMP int __cdecl _ismbbblank_l(_In_ unsigned int _C, _In_opt_ _locale_t _Locale)
_Check_return_ _CRTIMP int __cdecl _ismbbpunct_l(_In_ unsigned int _C, _In_opt_ _locale_t _Locale)
_Check_return_ _CRTIMP int __cdecl _ismbbkalnum_l(_In_ unsigned int _C, _In_opt_ _locale_t _Locale)
_Check_return_ _CRTIMP int __cdecl _ismbbprint_l(_In_ unsigned int _C, _In_opt_ _locale_t _Locale)
_Check_return_ _CRTIMP int __cdecl _ismbbkalnum(_In_ unsigned int _C)
_Check_return_ _CRTIMP int __cdecl _ismbslead(_In_reads_z_(_Pos-_Str+1) const unsigned char *_Str, _In_z_ const unsigned char *_Pos)
_Check_return_ _CRTIMP int __cdecl _ismbbblank(_In_ unsigned int _C)
Definition: crtdefs.h:2078