Update tk to version 8.5.13
[msysgit.git] / mingw / include / mbctype.h
blob012143700d11920eecf620004d00add8f7e3375d
1 /*
2 * mbctype.h
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.
21 #ifndef _MBCTYPE_H_
22 #define _MBCTYPE_H_
24 /* All the headers include this file. */
25 #include <_mingw.h>
27 /* return values for _mbsbtype and _mbbtype in mbstring.h */
28 #define _MBC_SINGLE 0
29 #define _MBC_LEAD 1
30 #define _MBC_TRAIL 2
31 #define _MBC_ILLEGAL (-1)
33 /* args for setmbcp (in lieu of actual codepage) */
34 #define _MB_CP_SBCS 0
35 #define _MB_CP_OEM (-2)
36 #define _MB_CP_ANSI (-3)
37 #define _MB_CP_LOCALE (-4)
39 /* TODO: bit masks */
41 #define _MS
42 #define _MP
43 #define _M1
44 #define _M2
45 #define _SBUP
46 #define _SBLOW
49 #ifndef RC_INVOKED
51 #ifdef __cplusplus
52 extern "C" {
53 #endif
55 #ifndef __STRICT_ANSI__
57 _CRTIMP int __cdecl __MINGW_NOTHROW _setmbcp (int);
58 _CRTIMP int __cdecl __MINGW_NOTHROW _getmbcp (void);
60 /* byte classification */
61 /* NB: Corresponding _ismbc* functions are in mbstring.h */
63 _CRTIMP int __cdecl __MINGW_NOTHROW _ismbbalpha (unsigned int);
64 _CRTIMP int __cdecl __MINGW_NOTHROW _ismbbalnum (unsigned int);
65 _CRTIMP int __cdecl __MINGW_NOTHROW _ismbbgraph (unsigned int);
66 _CRTIMP int __cdecl __MINGW_NOTHROW _ismbbprint (unsigned int);
67 _CRTIMP int __cdecl __MINGW_NOTHROW _ismbbpunct (unsigned int);
69 _CRTIMP int __cdecl __MINGW_NOTHROW _ismbbkana (unsigned int);
70 _CRTIMP int __cdecl __MINGW_NOTHROW _ismbbkalnum (unsigned int);
71 _CRTIMP int __cdecl __MINGW_NOTHROW _ismbbkprint (unsigned int);
72 _CRTIMP int __cdecl __MINGW_NOTHROW _ismbbkpunct (unsigned int);
75 /* these are also in mbstring.h */
76 _CRTIMP int __cdecl __MINGW_NOTHROW _ismbblead (unsigned int);
77 _CRTIMP int __cdecl __MINGW_NOTHROW _ismbbtrail (unsigned int);
78 _CRTIMP int __cdecl __MINGW_NOTHROW _ismbslead (const unsigned char*, const unsigned char*);
79 _CRTIMP int __cdecl __MINGW_NOTHROW _ismbstrail (const unsigned char*, const unsigned char*);
81 #ifdef __DECLSPEC_SUPPORTED
82 __MINGW_IMPORT unsigned char _mbctype[];
83 __MINGW_IMPORT unsigned char _mbcasemap[];
84 #endif
86 /* TODO : _MBCS_ mappings go in tchar.h */
88 #endif /* Not strict ANSI */
90 #ifdef __cplusplus
92 #endif
94 #endif /* Not RC_INVOKED */
96 #endif /* Not _MCTYPE_H_ */