wctype.h 1.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778
  1. // -*- C++ -*-
  2. //===--------------------------- wctype.h ---------------------------------===//
  3. //
  4. // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
  5. // See https://llvm.org/LICENSE.txt for license information.
  6. // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
  7. //
  8. //===----------------------------------------------------------------------===//
  9. #ifndef _LIBCPP_WCTYPE_H
  10. #define _LIBCPP_WCTYPE_H
  11. /*
  12. wctype.h synopsis
  13. Macros:
  14. WEOF
  15. Types:
  16. wint_t
  17. wctrans_t
  18. wctype_t
  19. int iswalnum(wint_t wc);
  20. int iswalpha(wint_t wc);
  21. int iswblank(wint_t wc); // C99
  22. int iswcntrl(wint_t wc);
  23. int iswdigit(wint_t wc);
  24. int iswgraph(wint_t wc);
  25. int iswlower(wint_t wc);
  26. int iswprint(wint_t wc);
  27. int iswpunct(wint_t wc);
  28. int iswspace(wint_t wc);
  29. int iswupper(wint_t wc);
  30. int iswxdigit(wint_t wc);
  31. int iswctype(wint_t wc, wctype_t desc);
  32. wctype_t wctype(const char* property);
  33. wint_t towlower(wint_t wc);
  34. wint_t towupper(wint_t wc);
  35. wint_t towctrans(wint_t wc, wctrans_t desc);
  36. wctrans_t wctrans(const char* property);
  37. */
  38. #include <__config>
  39. #if !defined(_LIBCPP_HAS_NO_PRAGMA_SYSTEM_HEADER)
  40. #pragma GCC system_header
  41. #endif
  42. #include_next <wctype.h>
  43. #ifdef __cplusplus
  44. #undef iswalnum
  45. #undef iswalpha
  46. #undef iswblank
  47. #undef iswcntrl
  48. #undef iswdigit
  49. #undef iswgraph
  50. #undef iswlower
  51. #undef iswprint
  52. #undef iswpunct
  53. #undef iswspace
  54. #undef iswupper
  55. #undef iswxdigit
  56. #undef iswctype
  57. #undef wctype
  58. #undef towlower
  59. #undef towupper
  60. #undef towctrans
  61. #undef wctrans
  62. #endif // __cplusplus
  63. #endif // _LIBCPP_WCTYPE_H