1 /** 2 * This file has no copyright assigned and is placed in the Public Domain. 3 * This file is part of the w64 mingw-runtime package. 4 * No warranty is given; refer to the file DISCLAIMER within this package. 5 */ 6 #ifndef _INC_MBCTYPE 7 #define _INC_MBCTYPE 8 9 #include <crtdefs.h> 10 #include <ctype.h> 11 12 #ifdef __cplusplus 13 extern "C" { 14 #endif 15 16 /* CRT stuff */ 17 #if 1 18 #if defined (_DLL) && defined (_M_IX86) 19 /* Retained for compatibility with VC++ 5.0 and earlier versions */ 20 _Check_return_ _CRTIMP unsigned char * __cdecl __p__mbctype(void); 21 _Check_return_ _CRTIMP unsigned char * __cdecl __p__mbcasemap(void); 22 #endif /* defined (_DLL) && defined (_M_IX86) */ 23 #endif 24 #ifndef _mbctype 25 _CRTIMP extern unsigned char _mbctype[257]; 26 #endif 27 #ifndef _mbcasemap 28 _CRTIMP extern unsigned char _mbcasemap[257]; 29 #endif 30 31 /* CRT stuff */ 32 #if 1 33 extern pthreadmbcinfo __ptmbcinfo; 34 extern int __globallocalestatus; 35 extern int __locale_changed; 36 extern struct threadmbcinfostruct __initialmbcinfo; 37 pthreadmbcinfo __cdecl __updatetmbcinfo(void); 38 #endif 39 40 #define _MS 0x01 41 #define _MP 0x02 42 #define _M1 0x04 43 #define _M2 0x08 44 45 #define _SBUP 0x10 46 #define _SBLOW 0x20 47 48 #define _MBC_SINGLE 0 49 #define _MBC_LEAD 1 50 #define _MBC_TRAIL 2 51 #define _MBC_ILLEGAL (-1) 52 53 #define _KANJI_CP 932 54 55 #define _MB_CP_SBCS 0 56 #define _MB_CP_OEM -2 57 #define _MB_CP_ANSI -3 58 #define _MB_CP_LOCALE -4 59 60 #ifndef _MBCTYPE_DEFINED 61 #define _MBCTYPE_DEFINED 62 63 _CRTIMP 64 int 65 __cdecl 66 _setmbcp( 67 _In_ int _CodePage); 68 69 _CRTIMP 70 int 71 __cdecl 72 _getmbcp(void); 73 74 _Check_return_ 75 _CRTIMP 76 int 77 __cdecl 78 _ismbbkalnum( 79 _In_ unsigned int _C); 80 81 _Check_return_ 82 _CRTIMP 83 int 84 __cdecl 85 _ismbbkalnum_l( 86 _In_ unsigned int _C, 87 _In_opt_ _locale_t _Locale); 88 89 _Check_return_ 90 _CRTIMP 91 int 92 __cdecl 93 _ismbbkana( 94 _In_ unsigned int _C); 95 96 _Check_return_ 97 _CRTIMP 98 int 99 __cdecl 100 _ismbbkana_l( 101 _In_ unsigned int _C, 102 _In_opt_ _locale_t _Locale); 103 104 _Check_return_ 105 _CRTIMP 106 int 107 __cdecl 108 _ismbbkpunct( 109 _In_ unsigned int _C); 110 111 _Check_return_ 112 _CRTIMP 113 int 114 __cdecl 115 _ismbbkpunct_l( 116 _In_ unsigned int _C, 117 _In_opt_ _locale_t _Locale); 118 119 _Check_return_ 120 _CRTIMP 121 int 122 __cdecl 123 _ismbbkprint( 124 _In_ unsigned int _C); 125 126 _Check_return_ 127 _CRTIMP 128 int 129 __cdecl 130 _ismbbkprint_l( 131 _In_ unsigned int _C, 132 _In_opt_ _locale_t _Locale); 133 134 _Check_return_ 135 _CRTIMP 136 int 137 __cdecl 138 _ismbbalpha( 139 _In_ unsigned int _C); 140 141 _Check_return_ 142 _CRTIMP 143 int 144 __cdecl 145 _ismbbalpha_l( 146 _In_ unsigned int _C, 147 _In_opt_ _locale_t _Locale); 148 149 _Check_return_ 150 _CRTIMP 151 int 152 __cdecl 153 _ismbbpunct( 154 _In_ unsigned int _C); 155 156 _Check_return_ 157 _CRTIMP 158 int 159 __cdecl 160 _ismbbpunct_l( 161 _In_ unsigned int _C, 162 _In_opt_ _locale_t _Locale); 163 164 _Check_return_ 165 _CRTIMP 166 int 167 __cdecl 168 _ismbbalnum( 169 _In_ unsigned int _C); 170 171 _Check_return_ 172 _CRTIMP 173 int 174 __cdecl 175 _ismbbalnum_l( 176 _In_ unsigned int _C, 177 _In_opt_ _locale_t _Locale); 178 179 _Check_return_ 180 _CRTIMP 181 int 182 __cdecl 183 _ismbbprint( 184 _In_ unsigned int _C); 185 186 _Check_return_ 187 _CRTIMP 188 int 189 __cdecl 190 _ismbbprint_l( 191 _In_ unsigned int _C, 192 _In_opt_ _locale_t _Locale); 193 194 _Check_return_ 195 _CRTIMP 196 int 197 __cdecl 198 _ismbbgraph( 199 _In_ unsigned int _C); 200 201 _Check_return_ 202 _CRTIMP 203 int 204 __cdecl 205 _ismbbgraph_l( 206 _In_ unsigned int _C, 207 _In_opt_ _locale_t _Locale); 208 209 #ifndef _MBLEADTRAIL_DEFINED 210 #define _MBLEADTRAIL_DEFINED 211 212 _Check_return_ 213 _CRTIMP 214 int 215 __cdecl 216 _ismbblead( 217 _In_ unsigned int _C); 218 219 _Check_return_ 220 _CRTIMP 221 int 222 __cdecl 223 _ismbblead_l( 224 _In_ unsigned int _C, 225 _In_opt_ _locale_t _Locale); 226 227 _Check_return_ 228 _CRTIMP 229 int 230 __cdecl 231 _ismbbtrail( 232 _In_ unsigned int _C); 233 234 _Check_return_ 235 _CRTIMP 236 int 237 __cdecl 238 _ismbbtrail_l( 239 _In_ unsigned int _C, 240 _In_opt_ _locale_t _Locale); 241 242 _Check_return_ 243 _CRTIMP 244 int 245 __cdecl 246 _ismbslead( 247 _In_reads_z_(_Pos - _Str + 1) const unsigned char *_Str, 248 _In_z_ const unsigned char *_Pos); 249 250 _Check_return_ 251 _CRTIMP 252 int 253 __cdecl 254 _ismbslead_l( 255 _In_reads_z_(_Pos - _Str + 1) const unsigned char *_Str, 256 _In_z_ const unsigned char *_Pos, 257 _In_opt_ _locale_t _Locale); 258 259 _Check_return_ 260 _CRTIMP 261 int 262 __cdecl 263 _ismbstrail( 264 _In_reads_z_(_Pos - _Str + 1) const unsigned char *_Str, 265 _In_z_ const unsigned char *_Pos); 266 267 _Check_return_ 268 _CRTIMP 269 int 270 __cdecl 271 _ismbstrail_l( 272 _In_reads_z_(_Pos - _Str + 1) const unsigned char *_Str, 273 _In_z_ const unsigned char *_Pos, 274 _In_opt_ _locale_t _Locale); 275 276 #endif /* _MBLEADTRAIL_DEFINED */ 277 278 #endif /* _MBCTYPE_DEFINED */ 279 280 #ifdef __cplusplus 281 } 282 #endif 283 284 #endif /* _INC_MBCTYPE */ 285