Cygwin: mmap: allow remapping part of an existing anonymous mapping
[newlib-cygwin.git] / newlib / libc / include / wctype.h
blobe5452bfc31495e62ba574e15e506a8744be3a815
1 #ifndef _WCTYPE_H_
2 #define _WCTYPE_H_
4 #include <_ansi.h>
5 #include <sys/_types.h>
7 #define __need_wint_t
8 #include <stddef.h>
10 #if __POSIX_VISIBLE >= 200809
11 #include <sys/_locale.h>
12 #endif
14 #ifndef WEOF
15 # define WEOF ((wint_t)-1)
16 #endif
18 _BEGIN_STD_C
20 #ifndef _WCTYPE_T
21 #define _WCTYPE_T
22 typedef int wctype_t;
23 #endif
25 #ifndef _WCTRANS_T
26 #define _WCTRANS_T
27 typedef int wctrans_t;
28 #endif
30 int iswalpha (wint_t);
31 int iswalnum (wint_t);
32 #if __ISO_C_VISIBLE >= 1999
33 int iswblank (wint_t);
34 #endif
35 int iswcntrl (wint_t);
36 int iswctype (wint_t, wctype_t);
37 int iswdigit (wint_t);
38 int iswgraph (wint_t);
39 int iswlower (wint_t);
40 int iswprint (wint_t);
41 int iswpunct (wint_t);
42 int iswspace (wint_t);
43 int iswupper (wint_t);
44 int iswxdigit (wint_t);
45 wint_t towctrans (wint_t, wctrans_t);
46 wint_t towupper (wint_t);
47 wint_t towlower (wint_t);
48 wctrans_t wctrans (const char *);
49 wctype_t wctype (const char *);
51 #if __POSIX_VISIBLE >= 200809
52 extern int iswalpha_l (wint_t, locale_t);
53 extern int iswalnum_l (wint_t, locale_t);
54 extern int iswblank_l (wint_t, locale_t);
55 extern int iswcntrl_l (wint_t, locale_t);
56 extern int iswctype_l (wint_t, wctype_t, locale_t);
57 extern int iswdigit_l (wint_t, locale_t);
58 extern int iswgraph_l (wint_t, locale_t);
59 extern int iswlower_l (wint_t, locale_t);
60 extern int iswprint_l (wint_t, locale_t);
61 extern int iswpunct_l (wint_t, locale_t);
62 extern int iswspace_l (wint_t, locale_t);
63 extern int iswupper_l (wint_t, locale_t);
64 extern int iswxdigit_l (wint_t, locale_t);
65 extern wint_t towctrans_l (wint_t, wctrans_t, locale_t);
66 extern wint_t towupper_l (wint_t, locale_t);
67 extern wint_t towlower_l (wint_t, locale_t);
68 extern wctrans_t wctrans_l (const char *, locale_t);
69 extern wctype_t wctype_l (const char *, locale_t);
70 #endif
72 _END_STD_C
74 #endif /* _WCTYPE_H_ */