ReactOS 0.4.15-dev-7842-g558ab78
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
13extern "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
64 int
67 _In_ int _CodePage);
68
70 int
72 _getmbcp(void);
73
76 int
79 _In_ unsigned int _C);
80
83 int
86 _In_ unsigned int _C,
88
91 int
94 _In_ unsigned int _C);
95
98 int
101 _In_ unsigned int _C,
103
105 _CRTIMP
106 int
107 __cdecl
109 _In_ unsigned int _C);
110
112 _CRTIMP
113 int
114 __cdecl
116 _In_ unsigned int _C,
118
120 _CRTIMP
121 int
122 __cdecl
124 _In_ unsigned int _C);
125
127 _CRTIMP
128 int
129 __cdecl
131 _In_ unsigned int _C,
133
135 _CRTIMP
136 int
137 __cdecl
139 _In_ unsigned int _C);
140
142 _CRTIMP
143 int
144 __cdecl
146 _In_ unsigned int _C,
148
150 _CRTIMP
151 int
152 __cdecl
154 _In_ unsigned int _C);
155
157 _CRTIMP
158 int
159 __cdecl
161 _In_ unsigned int _C,
163
165 _CRTIMP
166 int
167 __cdecl
169 _In_ unsigned int _C);
170
172 _CRTIMP
173 int
174 __cdecl
176 _In_ unsigned int _C,
178
180 _CRTIMP
181 int
182 __cdecl
184 _In_ unsigned int _C);
185
187 _CRTIMP
188 int
189 __cdecl
191 _In_ unsigned int _C,
193
195 _CRTIMP
196 int
197 __cdecl
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
217 _In_ unsigned int _C);
218
220 _CRTIMP
221 int
222 __cdecl
224 _In_ unsigned int _C,
226
228 _CRTIMP
229 int
230 __cdecl
232 _In_ unsigned int _C);
233
235 _CRTIMP
236 int
237 __cdecl
239 _In_ unsigned int _C,
241
243 _CRTIMP
244 int
245 __cdecl
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
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
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 */
#define __cdecl
Definition: accygwin.h:79
struct threadmbcinfostruct * pthreadmbcinfo
Definition: crtdefs.h:399
#define _CRTIMP
Definition: crtdefs.h:72
void * __p__mbcasemap()
Definition: stubs.c:25
unsigned char * __p__mbctype(void)
Definition: ismblead.c:48
_Check_return_ _CRTIMP int __cdecl _ismbbkalnum(_In_ unsigned int _C)
_Check_return_ _CRTIMP int __cdecl _ismbbprint(_In_ unsigned int _C)
_Check_return_ _CRTIMP int __cdecl _ismbbgraph_l(_In_ unsigned int _C, _In_opt_ _locale_t _Locale)
_CRTIMP unsigned char _mbctype[257]
Definition: locale.c:40
_CRTIMP unsigned char _mbcasemap[257]
Definition: stubs.c:22
_Check_return_ _CRTIMP int __cdecl _ismbbkalnum_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 _ismbbalpha_l(_In_ unsigned int _C, _In_opt_ _locale_t _Locale)
_Check_return_ _CRTIMP int __cdecl _ismbbtrail(_In_ unsigned int _C)
_Check_return_ _CRTIMP int __cdecl _ismbblead_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)
_Check_return_ _CRTIMP int __cdecl _ismbbkpunct(_In_ unsigned int _C)
pthreadmbcinfo __cdecl __updatetmbcinfo(void)
int __locale_changed
_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(_In_ unsigned int _C)
struct threadmbcinfostruct __initialmbcinfo
_Check_return_ _CRTIMP int __cdecl _ismbbpunct(_In_ unsigned int _C)
_Check_return_ _CRTIMP int __cdecl _ismbbalpha(_In_ unsigned int _C)
_Check_return_ _CRTIMP int __cdecl _ismbbkana_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)
pthreadmbcinfo __ptmbcinfo
_Check_return_ _CRTIMP int __cdecl _ismbbkprint(_In_ unsigned int _C)
_Check_return_ _CRTIMP int __cdecl _ismbbprint_l(_In_ unsigned int _C, _In_opt_ _locale_t _Locale)
_Check_return_ _CRTIMP int __cdecl _ismbbtrail_l(_In_ unsigned int _C, _In_opt_ _locale_t _Locale)
_Check_return_ _CRTIMP int __cdecl _ismbbgraph(_In_ unsigned int _C)
_Check_return_ _CRTIMP int __cdecl _ismbbpunct_l(_In_ unsigned int _C, _In_opt_ _locale_t _Locale)
_CRTIMP int __cdecl _setmbcp(_In_ int _CodePage)
_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 _ismbbalnum(_In_ unsigned int _C)
int __globallocalestatus
_CRTIMP int __cdecl _getmbcp(void)
Definition: locale.c:1472
_Check_return_ _CRTIMP int __cdecl _ismbbkprint_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)
_Check_return_ _CRTIMP int __cdecl _ismbbalnum_l(_In_ unsigned int _C, _In_opt_ _locale_t _Locale)
#define _In_z_
Definition: ms_sal.h:313
#define _Check_return_
Definition: ms_sal.h:557
#define _In_
Definition: ms_sal.h:308
#define _In_opt_
Definition: ms_sal.h:309
#define _In_reads_z_(size)
Definition: ms_sal.h:323
_In_ size_t _In_z_ _Printf_format_string_ const char _In_ const struct tm _In_opt_ _locale_t _Locale
Definition: time.h:159