ReactOS 0.4.17-dev-658-g8157b00
wctype.h
Go to the documentation of this file.
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
23#include <corecrt.h>
24
25#include <pshpack8.h>
26
27/* ASCII char classification table - binary compatible */
28#define _UPPER 0x0001 /* C1_UPPER */
29#define _LOWER 0x0002 /* C1_LOWER */
30#define _DIGIT 0x0004 /* C1_DIGIT */
31#define _SPACE 0x0008 /* C1_SPACE */
32#define _PUNCT 0x0010 /* C1_PUNCT */
33#define _CONTROL 0x0020 /* C1_CNTRL */
34#define _BLANK 0x0040 /* C1_BLANK */
35#define _HEX 0x0080 /* C1_XDIGIT */
36#define _LEADBYTE 0x8000
37#define _ALPHA (0x0100|_UPPER|_LOWER) /* (C1_ALPHA|_UPPER|_LOWER) */
38
39#ifndef WEOF
40#define WEOF (wint_t)(0xFFFF)
41#endif
42
43/* FIXME: there's something to do with __p__pctype and __p__pwctype */
44
45
46#ifdef __cplusplus
47extern "C" {
48#endif
49
50#ifndef _WCTYPE_DEFINED
51#define _WCTYPE_DEFINED
69#endif /* _WCTYPE_DEFINED */
70
71typedef wchar_t wctrans_t;
73wctrans_t __cdecl wctrans(const char *);
74wctype_t __cdecl wctype(const char *);
75
76#ifdef __cplusplus
77}
78#endif
79
80#include <poppack.h>
81
82#endif /* __WINE_WCTYPE_H */
#define __cdecl
Definition: corecrt.h:121
#define _ACRTIMP
Definition: corecrt.h:153
unsigned short wint_t
Definition: corecrt.h:243
unsigned short wctype_t
Definition: corecrt.h:244
_ACRTIMP int __cdecl iswctype(wint_t, wctype_t)
Definition: freeldr.c:166
wchar_t wctrans_t
Definition: wctype.h:71
wint_t __cdecl towctrans(wint_t, wctrans_t)
Definition: wcs.c:154
_ACRTIMP int __cdecl is_wctype(wint_t, wctype_t)
Definition: is_wctype.cpp:33
wctype_t __cdecl wctype(const char *)
Definition: wctype.cpp:41
wctrans_t __cdecl wctrans(const char *)
Definition: wctrans.cpp:38
#define iswgraph(_c)
Definition: ctype.h:673
#define iswcntrl(_c)
Definition: ctype.h:674
#define iswspace(_c)
Definition: ctype.h:669
#define iswupper(_c)
Definition: ctype.h:665
#define iswdigit(_c)
Definition: ctype.h:667
#define iswalnum(_c)
Definition: ctype.h:671
#define iswlower(_c)
Definition: ctype.h:666
#define iswascii(_c)
Definition: ctype.h:675
#define iswprint(_c)
Definition: ctype.h:672
#define iswxdigit(_c)
Definition: ctype.h:668
#define iswpunct(_c)
Definition: ctype.h:670
#define iswalpha(_c)
Definition: ctype.h:664
#define isleadbyte(_c)
Definition: wchar.h:598
#define towlower(c)
Definition: wctype.h:97
#define towupper(c)
Definition: wctype.h:99