1 /* Copyright (c) 2002 Jeff Johnston <jjohnstn@redhat.com> */ 2 #ifndef _WCTYPE_H_ 3 #define _WCTYPE_H_ 4 5 #include <_ansi.h> 6 #include <sys/_types.h> 7 8 #define __need_wint_t 9 #include <stddef.h> 10 11 #if __POSIX_VISIBLE >= 200809 12 #include <sys/_locale.h> 13 #endif 14 15 #ifndef WEOF 16 # define WEOF ((wint_t)-1) 17 #endif 18 19 _BEGIN_STD_C 20 21 #ifndef _WCTYPE_T 22 #define _WCTYPE_T 23 typedef int wctype_t; 24 #endif 25 26 #ifndef _WCTRANS_T 27 #define _WCTRANS_T 28 typedef int wctrans_t; 29 #endif 30 31 int iswalpha (wint_t); 32 int iswalnum (wint_t); 33 #if __ISO_C_VISIBLE >= 1999 34 int iswblank (wint_t); 35 #endif 36 int iswcntrl (wint_t); 37 int iswctype (wint_t, wctype_t); 38 int iswdigit (wint_t); 39 int iswgraph (wint_t); 40 int iswlower (wint_t); 41 int iswprint (wint_t); 42 int iswpunct (wint_t); 43 int iswspace (wint_t); 44 int iswupper (wint_t); 45 int iswxdigit (wint_t); 46 wint_t towctrans (wint_t, wctrans_t); 47 wint_t towupper (wint_t); 48 wint_t towlower (wint_t); 49 wctrans_t wctrans (const char *); 50 wctype_t wctype (const char *); 51 52 #if __POSIX_VISIBLE >= 200809 53 extern int iswalpha_l (wint_t, locale_t); 54 extern int iswalnum_l (wint_t, locale_t); 55 extern int iswblank_l (wint_t, locale_t); 56 extern int iswcntrl_l (wint_t, locale_t); 57 extern int iswctype_l (wint_t, wctype_t, locale_t); 58 extern int iswdigit_l (wint_t, locale_t); 59 extern int iswgraph_l (wint_t, locale_t); 60 extern int iswlower_l (wint_t, locale_t); 61 extern int iswprint_l (wint_t, locale_t); 62 extern int iswpunct_l (wint_t, locale_t); 63 extern int iswspace_l (wint_t, locale_t); 64 extern int iswupper_l (wint_t, locale_t); 65 extern int iswxdigit_l (wint_t, locale_t); 66 extern wint_t towctrans_l (wint_t, wctrans_t, locale_t); 67 extern wint_t towupper_l (wint_t, locale_t); 68 extern wint_t towlower_l (wint_t, locale_t); 69 extern wctrans_t wctrans_l (const char *, locale_t); 70 extern wctype_t wctype_l (const char *, locale_t); 71 #endif 72 73 _END_STD_C 74 75 #endif /* _WCTYPE_H_ */ 76