2 * Character type definitions
4 * Derived from the mingw header written by Colin Peters.
5 * Modified for Wine use by Jon Griffiths and Francois Gouget.
6 * This file is in the public domain.
10 #ifndef __WINE_USE_MSVCRT
11 #define __WINE_USE_MSVCRT
18 #ifndef _WCHAR_T_DEFINED
19 #define _WCHAR_T_DEFINED
21 typedef unsigned short wchar_t;
26 #define WEOF (wint_t)(0xFFFF)
29 #ifndef _WCTYPE_T_DEFINED
30 typedef unsigned short wint_t;
31 typedef unsigned short wctype_t;
32 #define _WCTYPE_T_DEFINED
35 /* ASCII char classification table - binary compatible */
36 #define _UPPER 0x0001 /* C1_UPPER */
37 #define _LOWER 0x0002 /* C1_LOWER */
38 #define _DIGIT 0x0004 /* C1_DIGIT */
39 #define _SPACE 0x0008 /* C1_SPACE */
40 #define _PUNCT 0x0010 /* C1_PUNCT */
41 #define _CONTROL 0x0020 /* C1_CNTRL */
42 #define _BLANK 0x0040 /* C1_BLANK */
43 #define _HEX 0x0080 /* C1_XDIGIT */
44 #define _LEADBYTE 0x8000
45 #define _ALPHA (0x0100|_UPPER|_LOWER) /* (C1_ALPHA|_UPPER|_LOWER) */
51 int _isctype(int,int);
68 #ifndef _WCTYPE_DEFINED
69 #define _WCTYPE_DEFINED
70 int is_wctype(wint_t,wctype_t);
76 int iswctype(wint_t,wctype_t);
84 int iswxdigit(wint_t);
85 wchar_t towlower(wchar_t);
86 wchar_t towupper(wchar_t);
87 #endif /* _WCTYPE_DEFINED */
94 static inline int isascii(int c
) { return __isascii(c
); }
95 static inline int iscsym(int c
) { return __iscsym(c
); }
96 static inline int iscsymf(int c
) { return __iscsymf(c
); }
97 static inline int toascii(int c
) { return __toascii(c
); }
99 #endif /* __WINE_CTYPE_H */