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.
25 /* return values for _mbsbtype and _mbbtype in mbstring.h */
29 #define _MBC_ILLEGAL (-1)
31 /* args for setmbcp (in lieu of actual codepage) */
33 #define _MB_CP_OEM (-2)
34 #define _MB_CP_ANSI (-3)
35 #define _MB_CP_LOCALE (-4)
47 #define _KNJ_M ((char)0x01) /* Non-punctuation of Kana-set */
48 #define _KNJ_P ((char)0x02) /* Punctuation of Kana-set */
49 #define _KNJ_1 ((char)0x04) /* Legal 1st byte of double byte stream */
50 #define _KNJ_2 ((char)0x08) /* Legal 2nd btye of double byte stream */
54 #define _1_ _KNJ_1 /* Legal 1st byte of double byte code */
55 #define __2 _KNJ_2 /* Legal 2nd byte of double byte code */
56 #define _M_ _KNJ_M /* Non-puntuation in Kana-set */
57 #define _P_ _KNJ_P /* Punctuation of Kana-set */
66 extern char _jctype[257];
69 int _ismbbkana(unsigned char);
70 int _ismbbkalnum(unsigned int);
77 #endif /* Not _MCTYPE_H_ */