4 * Functions for testing multibyte character types and converting characters.
6 * This file is part of the Mingw32 package.
9 * THIS SOFTWARE IS NOT COPYRIGHTED
11 * This source code is offered for use in the public domain. You may
12 * use, modify or distribute it freely.
14 * This code is distributed in the hope that it will be useful but
15 * WITHOUT ANY WARRANTY. ALL WARRANTIES, EXPRESS OR IMPLIED ARE HEREBY
16 * DISCLAIMED. This includes but is not limited to warranties of
17 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
24 /* All the headers include this file. */
27 /* return values for _mbsbtype and _mbbtype in mbstring.h */
31 #define _MBC_ILLEGAL (-1)
33 /* args for setmbcp (in lieu of actual codepage) */
35 #define _MB_CP_OEM (-2)
36 #define _MB_CP_ANSI (-3)
37 #define _MB_CP_LOCALE (-4)
55 #ifndef __STRICT_ANSI__
57 _CRTIMP
int __cdecl
_setmbcp (int);
58 _CRTIMP
int __cdecl
_getmbcp (void);
60 /* byte classification */
61 /* NB: Corresponding _ismbc* functions are in mbstring.h */
63 _CRTIMP
int __cdecl
_ismbbalpha (unsigned int);
64 _CRTIMP
int __cdecl
_ismbbalnum (unsigned int);
65 _CRTIMP
int __cdecl
_ismbbgraph (unsigned int);
66 _CRTIMP
int __cdecl
_ismbbprint (unsigned int);
67 _CRTIMP
int __cdecl
_ismbbpunct (unsigned int);
69 _CRTIMP
int __cdecl
_ismbbkana (unsigned int);
70 _CRTIMP
int __cdecl
_ismbbkalnum (unsigned int);
71 _CRTIMP
int __cdecl
_ismbbkprint (unsigned int);
72 _CRTIMP
int __cdecl
_ismbbkpunct (unsigned int);
75 /* these are also in mbstring.h */
76 _CRTIMP
int __cdecl
_ismbblead (unsigned int);
77 _CRTIMP
int __cdecl
_ismbbtrail (unsigned int);
78 _CRTIMP
int __cdecl
_ismbslead (const unsigned char*, const unsigned char*);
79 _CRTIMP
int __cdecl
_ismbstrail (const unsigned char*, const unsigned char*);
81 #ifdef __DECLSPEC_SUPPORTED
82 __MINGW_IMPORT
unsigned char _mbctype
[];
83 __MINGW_IMPORT
unsigned char _mbcasemap
[];
86 /* TODO : _MBCS_ mappings go in tchar.h */
88 #endif /* Not strict ANSI */
94 #endif /* Not RC_INVOKED */
96 #endif /* Not _MCTYPE_H_ */