You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

75 lines
1.7KB

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