2011-02-12 05:22:29 +00:00
|
|
|
#ifndef _WCTYPE_H
|
|
|
|
#define _WCTYPE_H
|
|
|
|
|
|
|
|
#ifdef __cplusplus
|
|
|
|
extern "C" {
|
|
|
|
#endif
|
|
|
|
|
2012-09-08 03:13:55 +00:00
|
|
|
#include <features.h>
|
|
|
|
|
2011-02-12 05:22:29 +00:00
|
|
|
#define __NEED_wint_t
|
|
|
|
#define __NEED_wctrans_t
|
|
|
|
#define __NEED_wctype_t
|
|
|
|
|
2012-02-07 02:29:31 +00:00
|
|
|
#if defined(_POSIX_SOURCE) || defined(_POSIX_C_SOURCE) \
|
|
|
|
|| defined(_XOPEN_SOURCE) || defined(_GNU_SOURCE)
|
|
|
|
#define __NEED_locale_t
|
|
|
|
#endif
|
|
|
|
|
2011-02-12 05:22:29 +00:00
|
|
|
#include <bits/alltypes.h>
|
|
|
|
|
|
|
|
#undef WEOF
|
|
|
|
#define WEOF (-1)
|
|
|
|
|
|
|
|
#undef iswdigit
|
|
|
|
|
|
|
|
int iswalnum(wint_t);
|
|
|
|
int iswalpha(wint_t);
|
|
|
|
int iswblank(wint_t);
|
|
|
|
int iswcntrl(wint_t);
|
|
|
|
int iswdigit(wint_t);
|
|
|
|
int iswgraph(wint_t);
|
|
|
|
int iswlower(wint_t);
|
|
|
|
int iswprint(wint_t);
|
|
|
|
int iswpunct(wint_t);
|
|
|
|
int iswspace(wint_t);
|
|
|
|
int iswupper(wint_t);
|
|
|
|
int iswxdigit(wint_t);
|
|
|
|
int iswctype(wint_t, wctype_t);
|
|
|
|
wint_t towctrans(wint_t, wctrans_t);
|
|
|
|
wint_t towlower(wint_t);
|
|
|
|
wint_t towupper(wint_t);
|
|
|
|
wctrans_t wctrans(const char *);
|
|
|
|
wctype_t wctype(const char *);
|
|
|
|
|
2011-02-15 00:33:11 +00:00
|
|
|
#undef iswdigit
|
2011-09-26 22:56:56 +00:00
|
|
|
#define iswdigit(a) (((unsigned)(a)-L'0') < 10)
|
2011-02-12 05:22:29 +00:00
|
|
|
|
2012-02-07 02:33:40 +00:00
|
|
|
#if defined(_POSIX_SOURCE) || defined(_POSIX_C_SOURCE) \
|
|
|
|
|| defined(_XOPEN_SOURCE) || defined(_GNU_SOURCE)
|
|
|
|
|
|
|
|
int iswalnum_l(wint_t, locale_t);
|
|
|
|
int iswalpha_l(wint_t, locale_t);
|
|
|
|
int iswblank_l(wint_t, locale_t);
|
|
|
|
int iswcntrl_l(wint_t, locale_t);
|
|
|
|
int iswdigit_l(wint_t, locale_t);
|
|
|
|
int iswgraph_l(wint_t, locale_t);
|
|
|
|
int iswlower_l(wint_t, locale_t);
|
|
|
|
int iswprint_l(wint_t, locale_t);
|
|
|
|
int iswpunct_l(wint_t, locale_t);
|
|
|
|
int iswspace_l(wint_t, locale_t);
|
|
|
|
int iswupper_l(wint_t, locale_t);
|
|
|
|
int iswxdigit_l(wint_t, locale_t);
|
|
|
|
int iswctype_l(wint_t, wctype_t, locale_t);
|
|
|
|
wint_t towlower_l(wint_t, locale_t);
|
|
|
|
wint_t towupper_l(wint_t, locale_t);
|
|
|
|
wint_t towctrans_l(wint_t, wctrans_t, locale_t);
|
|
|
|
wctrans_t wctrans_l(const char *, locale_t);
|
|
|
|
wctype_t wctype_l(const char *, locale_t);
|
|
|
|
|
|
|
|
#endif
|
|
|
|
|
2011-02-12 05:22:29 +00:00
|
|
|
#ifdef __cplusplus
|
|
|
|
}
|
|
|
|
#endif
|
|
|
|
|
|
|
|
#endif
|