winedos: Get File Attributes must fail for files with names ending in slash.
[wine/multimedia.git] / include / msvcrt / ctype.h
blobb44e74cfa9837dbc173ee196e186ac475e7e3183
1 /*
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.
7 */
8 #ifndef __WINE_CTYPE_H
9 #define __WINE_CTYPE_H
11 #include <crtdefs.h>
13 #ifdef __cplusplus
14 extern "C" {
15 #endif
17 #ifndef WEOF
18 #define WEOF (wint_t)(0xFFFF)
19 #endif
21 /* ASCII char classification table - binary compatible */
22 #define _UPPER 0x0001 /* C1_UPPER */
23 #define _LOWER 0x0002 /* C1_LOWER */
24 #define _DIGIT 0x0004 /* C1_DIGIT */
25 #define _SPACE 0x0008 /* C1_SPACE */
26 #define _PUNCT 0x0010 /* C1_PUNCT */
27 #define _CONTROL 0x0020 /* C1_CNTRL */
28 #define _BLANK 0x0040 /* C1_BLANK */
29 #define _HEX 0x0080 /* C1_XDIGIT */
30 #define _LEADBYTE 0x8000
31 #define _ALPHA (0x0100|_UPPER|_LOWER) /* (C1_ALPHA|_UPPER|_LOWER) */
33 int __cdecl __isascii(int);
34 int __cdecl __iscsym(int);
35 int __cdecl __iscsymf(int);
36 int __cdecl __toascii(int);
37 int __cdecl _isctype(int,int);
38 int __cdecl _tolower(int);
39 int __cdecl _toupper(int);
40 int __cdecl isalnum(int);
41 int __cdecl isalpha(int);
42 int __cdecl iscntrl(int);
43 int __cdecl isdigit(int);
44 int __cdecl isgraph(int);
45 int __cdecl islower(int);
46 int __cdecl isprint(int);
47 int __cdecl ispunct(int);
48 int __cdecl isspace(int);
49 int __cdecl isupper(int);
50 int __cdecl isxdigit(int);
51 int __cdecl tolower(int);
52 int __cdecl toupper(int);
54 #ifndef _WCTYPE_DEFINED
55 #define _WCTYPE_DEFINED
56 int __cdecl is_wctype(wint_t,wctype_t);
57 int __cdecl isleadbyte(int);
58 int __cdecl iswalnum(wint_t);
59 int __cdecl iswalpha(wint_t);
60 int __cdecl iswascii(wint_t);
61 int __cdecl iswcntrl(wint_t);
62 int __cdecl iswctype(wint_t,wctype_t);
63 int __cdecl iswdigit(wint_t);
64 int __cdecl iswgraph(wint_t);
65 int __cdecl iswlower(wint_t);
66 int __cdecl iswprint(wint_t);
67 int __cdecl iswpunct(wint_t);
68 int __cdecl iswspace(wint_t);
69 int __cdecl iswupper(wint_t);
70 int __cdecl iswxdigit(wint_t);
71 wchar_t __cdecl towlower(wchar_t);
72 wchar_t __cdecl towupper(wchar_t);
73 #endif /* _WCTYPE_DEFINED */
75 #ifdef __cplusplus
77 #endif
80 static inline int isascii(int c) { return __isascii(c); }
81 static inline int iscsym(int c) { return __iscsym(c); }
82 static inline int iscsymf(int c) { return __iscsymf(c); }
83 static inline int toascii(int c) { return __toascii(c); }
85 #endif /* __WINE_CTYPE_H */