ReactOS  0.4.13-dev-257-gfabbd7c
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 #ifdef _MSVCRT_
26  extern unsigned char _mbctype[257];
27 #else
28 #define _mbctype (*_imp___mbctype)
29  extern unsigned char **_imp___mbctype;
30 #endif
31 #endif
32 #ifndef _mbcasemap
33 #ifdef _MSVCRT_
34  extern unsigned char *_mbcasemap;
35 #else
36 #define _mbcasemap (*_imp___mbcasemap)
37  extern unsigned char **_imp___mbcasemap;
38 #endif
39 #endif
40 
41  /* CRT stuff */
42 #if 1
44  extern int __globallocalestatus;
45  extern int __locale_changed;
46  extern struct threadmbcinfostruct __initialmbcinfo;
48 #endif
49 
50 #define _MS 0x01
51 #define _MP 0x02
52 #define _M1 0x04
53 #define _M2 0x08
54 
55 #define _SBUP 0x10
56 #define _SBLOW 0x20
57 
58 #define _MBC_SINGLE 0
59 #define _MBC_LEAD 1
60 #define _MBC_TRAIL 2
61 #define _MBC_ILLEGAL (-1)
62 
63 #define _KANJI_CP 932
64 
65 #define _MB_CP_SBCS 0
66 #define _MB_CP_OEM -2
67 #define _MB_CP_ANSI -3
68 #define _MB_CP_LOCALE -4
69 
70 #ifndef _MBCTYPE_DEFINED
71 #define _MBCTYPE_DEFINED
72 
73  _CRTIMP
74  int
75  __cdecl
76  _setmbcp(
77  _In_ int _CodePage);
78 
79  _CRTIMP
80  int
81  __cdecl
82  _getmbcp(void);
83 
85  _CRTIMP
86  int
87  __cdecl
89  _In_ unsigned int _C);
90 
92  _CRTIMP
93  int
94  __cdecl
96  _In_ unsigned int _C,
98 
100  _CRTIMP
101  int
102  __cdecl
103  _ismbbkana(
104  _In_ unsigned int _C);
105 
107  _CRTIMP
108  int
109  __cdecl
110  _ismbbkana_l(
111  _In_ unsigned int _C,
113 
115  _CRTIMP
116  int
117  __cdecl
118  _ismbbkpunct(
119  _In_ unsigned int _C);
120 
122  _CRTIMP
123  int
124  __cdecl
126  _In_ unsigned int _C,
128 
130  _CRTIMP
131  int
132  __cdecl
133  _ismbbkprint(
134  _In_ unsigned int _C);
135 
137  _CRTIMP
138  int
139  __cdecl
141  _In_ unsigned int _C,
143 
145  _CRTIMP
146  int
147  __cdecl
148  _ismbbalpha(
149  _In_ unsigned int _C);
150 
152  _CRTIMP
153  int
154  __cdecl
156  _In_ unsigned int _C,
158 
160  _CRTIMP
161  int
162  __cdecl
163  _ismbbpunct(
164  _In_ unsigned int _C);
165 
167  _CRTIMP
168  int
169  __cdecl
171  _In_ unsigned int _C,
173 
175  _CRTIMP
176  int
177  __cdecl
178  _ismbbalnum(
179  _In_ unsigned int _C);
180 
182  _CRTIMP
183  int
184  __cdecl
186  _In_ unsigned int _C,
188 
190  _CRTIMP
191  int
192  __cdecl
193  _ismbbprint(
194  _In_ unsigned int _C);
195 
197  _CRTIMP
198  int
199  __cdecl
201  _In_ unsigned int _C,
203 
205  _CRTIMP
206  int
207  __cdecl
208  _ismbbgraph(
209  _In_ unsigned int _C);
210 
212  _CRTIMP
213  int
214  __cdecl
216  _In_ unsigned int _C,
218 
219 #ifndef _MBLEADTRAIL_DEFINED
220 #define _MBLEADTRAIL_DEFINED
221 
223  _CRTIMP
224  int
225  __cdecl
226  _ismbblead(
227  _In_ unsigned int _C);
228 
230  _CRTIMP
231  int
232  __cdecl
233  _ismbblead_l(
234  _In_ unsigned int _C,
236 
238  _CRTIMP
239  int
240  __cdecl
241  _ismbbtrail(
242  _In_ unsigned int _C);
243 
245  _CRTIMP
246  int
247  __cdecl
249  _In_ unsigned int _C,
251 
253  _CRTIMP
254  int
255  __cdecl
256  _ismbslead(
257  _In_reads_z_(_Pos - _Str + 1) const unsigned char *_Str,
258  _In_z_ const unsigned char *_Pos);
259 
261  _CRTIMP
262  int
263  __cdecl
264  _ismbslead_l(
265  _In_reads_z_(_Pos - _Str + 1) const unsigned char *_Str,
266  _In_z_ const unsigned char *_Pos,
268 
270  _CRTIMP
271  int
272  __cdecl
273  _ismbstrail(
274  _In_reads_z_(_Pos - _Str + 1) const unsigned char *_Str,
275  _In_z_ const unsigned char *_Pos);
276 
278  _CRTIMP
279  int
280  __cdecl
282  _In_reads_z_(_Pos - _Str + 1) const unsigned char *_Str,
283  _In_z_ const unsigned char *_Pos,
285 
286 #endif /* _MBLEADTRAIL_DEFINED */
287 
288 #endif /* _MBCTYPE_DEFINED */
289 
290 #ifdef __cplusplus
291 }
292 #endif
293 
294 #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)
_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)
#define __cdecl
Definition: accygwin.h:79
struct threadmbcinfostruct * pthreadmbcinfo
Definition: crtdefs.h:378
_Check_return_ _CRTIMP int __cdecl _ismbbtrail_l(_In_ unsigned int _C, _In_opt_ _locale_t _Locale)
#define _CRTIMP
Definition: crtdefs.h:60
#define _Check_return_
Definition: no_sal2.h:13
_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)
#define _In_opt_
Definition: no_sal2.h:213
_CRTIMP int __cdecl _getmbcp(void)
Definition: locale.c:1472
int __locale_changed
unsigned char * __p__mbctype(void)
Definition: ismblead.c:48
#define _mbctype
Definition: mbctype.h:28
_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)
unsigned char ** _imp___mbcasemap
_Check_return_ _CRTIMP int __cdecl _ismbbkana(_In_ unsigned int _C)
_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)
unsigned char ** _imp___mbctype
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:166
pthreadmbcinfo __cdecl __updatetmbcinfo(void)
_Check_return_ _CRTIMP int __cdecl _ismbbkpunct(_In_ unsigned int _C)
struct threadmbcinfostruct __initialmbcinfo
_Check_return_ _CRTIMP int __cdecl _ismbbalpha(_In_ unsigned int _C)
#define _In_
Definition: no_sal2.h:204
_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)
#define _In_z_
Definition: no_sal2.h:239
_Check_return_ _CRTIMP int __cdecl _ismbbpunct(_In_ unsigned int _C)
_CRTIMP int __cdecl _setmbcp(_In_ int _CodePage)
#define _mbcasemap
Definition: mbctype.h:36
_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 _ismbslead_l(_In_reads_z_(_Pos - _Str+1) const unsigned char *_Str, _In_z_ const unsigned char *_Pos, _In_opt_ _locale_t _Locale)
#define _In_reads_z_(size)
Definition: no_sal2.h:238
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)