xref: /haiku/headers/posix/wctype.h (revision 4a55cc230cf7566cadcbb23b1928eefff8aea9a2)
1 /*
2  * Copyright 2005-2012 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 <locale.h>
10 #include <wchar.h>
11 
12 typedef 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		iswcntrl(wint_t wc);
21 extern int		iswctype(wint_t wc, wctype_t desc);
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		iswblank(wint_t wc);
32 
33 extern wint_t	towctrans(wint_t wc, wctrans_t transition);
34 extern wint_t	towlower(wint_t wc);
35 extern wint_t	towupper(wint_t wc);
36 
37 extern wctrans_t wctrans(const char *charClass);
38 extern wctype_t	wctype(const char *property);
39 
40 
41 extern int		iswalnum_l(wint_t wc, locale_t locale);
42 extern int		iswalpha_l(wint_t wc, locale_t locale);
43 extern int		iswcntrl_l(wint_t wc, locale_t locale);
44 extern int		iswctype_l(wint_t wc, wctype_t desc, locale_t locale);
45 extern int		iswdigit_l(wint_t wc, locale_t locale);
46 extern int		iswgraph_l(wint_t wc, locale_t locale);
47 extern int		iswlower_l(wint_t wc, locale_t locale);
48 extern int		iswprint_l(wint_t wc, locale_t locale);
49 extern int		iswpunct_l(wint_t wc, locale_t locale);
50 extern int		iswspace_l(wint_t wc, locale_t locale);
51 extern int		iswupper_l(wint_t wc, locale_t locale);
52 extern int		iswxdigit_l(wint_t wc, locale_t locale);
53 
54 extern int		iswblank_l(wint_t wc, locale_t locale);
55 
56 extern wint_t	towctrans_l(wint_t wc, wctrans_t transition, locale_t locale);
57 extern wint_t	towlower_l(wint_t wc, locale_t locale);
58 extern wint_t	towupper_l(wint_t wc, locale_t locale);
59 
60 extern wctrans_t wctrans_l(const char *charClass, locale_t locale);
61 extern wctype_t	wctype_l(const char *property, locale_t locale);
62 
63 #ifdef __cplusplus
64 }
65 #endif
66 
67 #endif	/* _WCTYPE_H_ */
68