richedit: Modify ME_GetTextW() to honor CR and LF encodings.
[wine] / include / msvcrt / wctype.h
1 /*
2  * Unicode definitions
3  *
4  * Copyright 2000 Francois Gouget.
5  *
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.
10  *
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.
15  *
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
19  */
20 #ifndef __WINE_WCTYPE_H
21 #define __WINE_WCTYPE_H
22 #ifndef __WINE_USE_MSVCRT
23 #define __WINE_USE_MSVCRT
24 #endif
25
26 #include <pshpack8.h>
27
28 #ifndef _WCHAR_T_DEFINED
29 #define _WCHAR_T_DEFINED
30 #ifndef __cplusplus
31 typedef unsigned short wchar_t;
32 #endif
33 #endif
34
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) */
46
47 #ifndef WEOF
48 #define WEOF        (wint_t)(0xFFFF)
49 #endif
50
51 #ifndef _WCTYPE_T_DEFINED
52 typedef unsigned short  wint_t;
53 typedef unsigned short  wctype_t;
54 #define _WCTYPE_T_DEFINED
55 #endif
56
57 /* FIXME: there's something to do with __p__pctype and __p__pwctype */
58
59
60 #ifdef __cplusplus
61 extern "C" {
62 #endif
63
64 #ifndef _WCTYPE_DEFINED
65 #define _WCTYPE_DEFINED
66 int is_wctype(wint_t,wctype_t);
67 int isleadbyte(int);
68 int iswalnum(wint_t);
69 int iswalpha(wint_t);
70 int iswascii(wint_t);
71 int iswcntrl(wint_t);
72 int iswctype(wint_t,wctype_t);
73 int iswdigit(wint_t);
74 int iswgraph(wint_t);
75 int iswlower(wint_t);
76 int iswprint(wint_t);
77 int iswpunct(wint_t);
78 int iswspace(wint_t);
79 int iswupper(wint_t);
80 int iswxdigit(wint_t);
81 wchar_t towlower(wchar_t);
82 wchar_t towupper(wchar_t);
83 #endif /* _WCTYPE_DEFINED */
84
85 #ifdef __cplusplus
86 }
87 #endif
88
89 #include <poppack.h>
90
91 #endif /* __WINE_WCTYPE_H */