4 * Copyright 2000 Francois Gouget.
6 * This library is free software; you can redistribute it and/or
7 * modify it under the terms of the GNU Lesser General Public
8 * License as published by the Free Software Foundation; either
9 * version 2.1 of the License, or (at your option) any later version.
11 * This library is distributed in the hope that it will be useful,
12 * but WITHOUT ANY WARRANTY; without even the implied warranty of
13 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
14 * Lesser General Public License for more details.
16 * You should have received a copy of the GNU Lesser General Public
17 * License along with this library; if not, write to the Free Software
18 * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
20 #ifndef __WINE_WCTYPE_H
21 #define __WINE_WCTYPE_H
22 #ifndef __WINE_USE_MSVCRT
23 #define __WINE_USE_MSVCRT
28 #ifndef _WCHAR_T_DEFINED
29 #define _WCHAR_T_DEFINED
31 typedef unsigned short wchar_t;
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) */
48 #define WEOF (wint_t)(0xFFFF)
51 #ifndef _WCTYPE_T_DEFINED
52 typedef unsigned short wint_t;
53 typedef unsigned short wctype_t;
54 #define _WCTYPE_T_DEFINED
57 /* FIXME: there's something to do with __p__pctype and __p__pwctype */
64 #ifndef _WCTYPE_DEFINED
65 #define _WCTYPE_DEFINED
66 int is_wctype(wint_t,wctype_t);
72 int iswctype(wint_t,wctype_t);
80 int iswxdigit(wint_t);
81 wchar_t towlower(wchar_t);
82 wchar_t towupper(wchar_t);
83 #endif /* _WCTYPE_DEFINED */
91 #endif /* __WINE_WCTYPE_H */