wctype.h 1.9 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879
  1. #ifndef _WCTYPE_H
  2. #define _WCTYPE_H
  3. #ifdef __cplusplus
  4. extern "C" {
  5. #endif
  6. #include <features.h>
  7. #define __NEED_wint_t
  8. #define __NEED_wctype_t
  9. #if defined(_POSIX_SOURCE) || defined(_POSIX_C_SOURCE) \
  10. || defined(_XOPEN_SOURCE) || defined(_GNU_SOURCE) || defined(_BSD_SOURCE)
  11. #define __NEED_locale_t
  12. #endif
  13. #include <bits/alltypes.h>
  14. typedef const int * wctrans_t;
  15. #undef WEOF
  16. #define WEOF 0xffffffffU
  17. #undef iswdigit
  18. int iswalnum(wint_t);
  19. int iswalpha(wint_t);
  20. int iswblank(wint_t);
  21. int iswcntrl(wint_t);
  22. int iswdigit(wint_t);
  23. int iswgraph(wint_t);
  24. int iswlower(wint_t);
  25. int iswprint(wint_t);
  26. int iswpunct(wint_t);
  27. int iswspace(wint_t);
  28. int iswupper(wint_t);
  29. int iswxdigit(wint_t);
  30. int iswctype(wint_t, wctype_t);
  31. wint_t towctrans(wint_t, wctrans_t);
  32. wint_t towlower(wint_t);
  33. wint_t towupper(wint_t);
  34. wctrans_t wctrans(const char *);
  35. wctype_t wctype(const char *);
  36. #ifndef __cplusplus
  37. #undef iswdigit
  38. #define iswdigit(a) (0 ? iswdigit(a) : ((unsigned)(a)-'0') < 10)
  39. #endif
  40. #if defined(_POSIX_SOURCE) || defined(_POSIX_C_SOURCE) \
  41. || defined(_XOPEN_SOURCE) || defined(_GNU_SOURCE) || defined(_BSD_SOURCE)
  42. int iswalnum_l(wint_t, locale_t);
  43. int iswalpha_l(wint_t, locale_t);
  44. int iswblank_l(wint_t, locale_t);
  45. int iswcntrl_l(wint_t, locale_t);
  46. int iswdigit_l(wint_t, locale_t);
  47. int iswgraph_l(wint_t, locale_t);
  48. int iswlower_l(wint_t, locale_t);
  49. int iswprint_l(wint_t, locale_t);
  50. int iswpunct_l(wint_t, locale_t);
  51. int iswspace_l(wint_t, locale_t);
  52. int iswupper_l(wint_t, locale_t);
  53. int iswxdigit_l(wint_t, locale_t);
  54. int iswctype_l(wint_t, wctype_t, locale_t);
  55. wint_t towlower_l(wint_t, locale_t);
  56. wint_t towupper_l(wint_t, locale_t);
  57. wint_t towctrans_l(wint_t, wctrans_t, locale_t);
  58. wctrans_t wctrans_l(const char *, locale_t);
  59. wctype_t wctype_l(const char *, locale_t);
  60. #endif
  61. #ifdef __cplusplus
  62. }
  63. #endif
  64. #endif