10 #define WCTYPE_LOWER 7
11 #define WCTYPE_PRINT 8
12 #define WCTYPE_PUNCT 9
13 #define WCTYPE_SPACE 10
14 #define WCTYPE_UPPER 11
15 #define WCTYPE_XDIGIT 12
17 int iswctype(wint_t wc
, wctype_t type
)
48 wctype_t wctype(const char *s
)
52 /* order must match! */
53 static const char names
[] =
54 "alnum\0" "alpha\0" "blank\0"
55 "cntrl\0" "digit\0" "graph\0"
56 "lower\0" "print\0" "punct\0"
57 "space\0" "upper\0" "xdigit";
58 for (i
=1, p
=names
; *p
; i
++, p
+=6)
59 if (*s
== *p
&& !strcmp(s
, p
))
64 int __iswctype_l(wint_t c
, wctype_t t
, locale_t l
)
66 return iswctype(c
, t
);
69 wctype_t __wctype_l(const char *s
, locale_t l
)
74 weak_alias(__iswctype_l
, iswctype_l
);
75 weak_alias(__wctype_l
, wctype_l
);