xref: /haiku/headers/posix/wctype.h (revision fef6144999c2fa611f59ee6ffe6dd7999501385c)
1 /*
2  * Copyright 2005, 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 
12 typedef const int *wctrans_t;
13 
14 #ifdef __cplusplus
15 extern "C" {
16 #endif
17 
18 extern int		iswalnum(wint_t wc);
19 extern int		iswalpha(wint_t wc);
20 extern int		iswblank(wint_t wc);
21 extern int		iswcntrl(wint_t wc);
22 extern int		iswdigit(wint_t wc);
23 extern int		iswgraph(wint_t wc);
24 extern int		iswlower(wint_t wc);
25 extern int		iswprint(wint_t wc);
26 extern int		iswpunct(wint_t wc);
27 extern int		iswspace(wint_t wc);
28 extern int		iswupper(wint_t wc);
29 extern int		iswxdigit(wint_t wc);
30 
31 extern int		iswctype(wint_t wc, wctype_t charClass);
32 extern wint_t	towctrans(wint_t wc, wctrans_t charClass);
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 #ifndef __cplusplus
40 }
41 #endif
42 
43 #endif	/* _WCTYPE_H_ */
44