xref: /haiku/headers/posix/wctype.h (revision f2b4344867e97c3f4e742a1b4a15e6879644601a)
1 /*
2  * Copyright 2005-2011 Haiku Inc. All Rights Reserved.
3  * Distributed under the terms of the MIT License.
4  */
5 #ifndef _WCTYPE_H_
6 #define _WCTYPE_H_
7 
8 
9 #include <wchar.h>
10 
11 typedef int wctrans_t;
12 
13 #ifdef __cplusplus
14 extern "C" {
15 #endif
16 
17 extern int		iswalnum(wint_t wc);
18 extern int		iswalpha(wint_t wc);
19 extern int		iswcntrl(wint_t wc);
20 extern int		iswctype(wint_t wc, wctype_t desc);
21 extern int		iswdigit(wint_t wc);
22 extern int		iswgraph(wint_t wc);
23 extern int		iswlower(wint_t wc);
24 extern int		iswprint(wint_t wc);
25 extern int		iswpunct(wint_t wc);
26 extern int		iswspace(wint_t wc);
27 extern int		iswupper(wint_t wc);
28 extern int		iswxdigit(wint_t wc);
29 
30 extern int		iswblank(wint_t wc);
31 
32 extern wint_t	towctrans(wint_t wc, wctrans_t transition);
33 extern wint_t	towlower(wint_t wc);
34 extern wint_t	towupper(wint_t wc);
35 
36 extern wctrans_t wctrans(const char *charClass);
37 extern wctype_t	wctype(const char *property);
38 
39 #ifdef __cplusplus
40 }
41 #endif
42 
43 #endif	/* _WCTYPE_H_ */
44