ReactOS  0.4.15-dev-3165-gdf6fff7
mbctype.h
Go to the documentation of this file.
1 
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
34  extern int __globallocalestatus;
35  extern int __locale_changed;
36  extern struct threadmbcinfostruct __initialmbcinfo;
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 
75  _CRTIMP
76  int
77  __cdecl
79  _In_ unsigned int _C);
80 
82  _CRTIMP
83  int
84  __cdecl
86  _In_ unsigned int _C,
88 
90  _CRTIMP
91  int
92  __cdecl
93  _ismbbkana(
94  _In_ unsigned int _C);
95 
97  _CRTIMP
98  int
99  __cdecl
100  _ismbbkana_l(
101  _In_ unsigned int _C,
103 
105  _CRTIMP
106  int
107  __cdecl
108  _ismbbkpunct(
109  _In_ unsigned int _C);
110 
112  _CRTIMP
113  int
114  __cdecl
116  _In_ unsigned int _C,
118 
120  _CRTIMP
121  int
122  __cdecl
123  _ismbbkprint(
124  _In_ unsigned int _C);
125 
127  _CRTIMP
128  int
129  __cdecl
131  _In_ unsigned int _C,
133 
135  _CRTIMP
136  int
137  __cdecl
138  _ismbbalpha(
139  _In_ unsigned int _C);
140 
142  _CRTIMP
143  int
144  __cdecl
146  _In_ unsigned int _C,
148 
150  _CRTIMP
151  int
152  __cdecl
153  _ismbbpunct(
154  _In_ unsigned int _C);
155 
157  _CRTIMP
158  int
159  __cdecl
161  _In_ unsigned int _C,
163 
165  _CRTIMP
166  int
167  __cdecl
168  _ismbbalnum(
169  _In_ unsigned int _C);
170 
172  _CRTIMP
173  int
174  __cdecl
176  _In_ unsigned int _C,
178 
180  _CRTIMP
181  int
182  __cdecl
183  _ismbbprint(
184  _In_ unsigned int _C);
185 
187  _CRTIMP
188  int
189  __cdecl
191  _In_ unsigned int _C,
193 
195  _CRTIMP
196  int
197  __cdecl
198  _ismbbgraph(
199  _In_ unsigned int _C);
200 
202  _CRTIMP
203  int
204  __cdecl
206  _In_ unsigned int _C,
208 
209 #ifndef _MBLEADTRAIL_DEFINED
210 #define _MBLEADTRAIL_DEFINED
211 
213  _CRTIMP
214  int
215  __cdecl
216  _ismbblead(
217  _In_ unsigned int _C);
218 
220  _CRTIMP
221  int
222  __cdecl
223  _ismbblead_l(
224  _In_ unsigned int _C,
226 
228  _CRTIMP
229  int
230  __cdecl
231  _ismbbtrail(
232  _In_ unsigned int _C);
233 
235  _CRTIMP
236  int
237  __cdecl
239  _In_ unsigned int _C,
241 
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 
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,
258 
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 
268  _CRTIMP
269  int
270  __cdecl
272  _In_reads_z_(_Pos - _Str + 1) const unsigned char *_Str,
273  _In_z_ const unsigned char *_Pos,
275 
276 #endif /* _MBLEADTRAIL_DEFINED */
277 
278 #endif /* _MBCTYPE_DEFINED */
279 
280 #ifdef __cplusplus
281 }
282 #endif
283 
284 #endif /* _INC_MBCTYPE */
_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)
_CRTIMP unsigned char _mbctype[257]
Definition: locale.c:40
_Check_return_ _CRTIMP int __cdecl _ismbbkpunct_l(_In_ unsigned int _C, _In_opt_ _locale_t _Locale)
#define _In_opt_
Definition: ms_sal.h:309
_Check_return_ _CRTIMP int __cdecl _ismbbtrail(_In_ unsigned int _C)
#define __cdecl
Definition: accygwin.h:79
struct threadmbcinfostruct * pthreadmbcinfo
Definition: crtdefs.h:399
_Check_return_ _CRTIMP int __cdecl _ismbbtrail_l(_In_ unsigned int _C, _In_opt_ _locale_t _Locale)
#define _CRTIMP
Definition: crtdefs.h:72
_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)
Definition: locale.c:1472
int __locale_changed
unsigned char * __p__mbctype(void)
Definition: ismblead.c:48
_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 _ismbbalnum(_In_ unsigned int _C)
_Check_return_ _CRTIMP int __cdecl _ismbbkana(_In_ unsigned int _C)
#define _In_
Definition: ms_sal.h:308
#define _In_z_
Definition: ms_sal.h:313
_Check_return_ _CRTIMP int __cdecl _ismbbgraph(_In_ unsigned int _C)
_Check_return_ _CRTIMP int __cdecl _ismbblead_l(_In_ unsigned int _C, _In_opt_ _locale_t _Locale)
pthreadmbcinfo __ptmbcinfo
_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)
_In_ size_t _In_z_ _Printf_format_string_ const char _In_ const struct tm _In_opt_ _locale_t _Locale
Definition: time.h:158
pthreadmbcinfo __cdecl __updatetmbcinfo(void)
_Check_return_ _CRTIMP int __cdecl _ismbbkpunct(_In_ unsigned int _C)
_CRTIMP unsigned char _mbcasemap[257]
Definition: stubs.c:21
struct threadmbcinfostruct __initialmbcinfo
_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)
#define _Check_return_
Definition: ms_sal.h:557
_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 _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)
#define _In_reads_z_(size)
Definition: ms_sal.h:323
_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)
int __globallocalestatus
_Check_return_ _CRTIMP int __cdecl _ismbbprint_l(_In_ unsigned int _C, _In_opt_ _locale_t _Locale)
void * __p__mbcasemap()
Definition: stubs.c:24
_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)