Richard Smith | f2b3629 | 2015-10-09 19:57:37 +0000 | [diff] [blame] | 1 | // -*- C++ -*- |
| 2 | //===--------------------------- wctype.h ---------------------------------===// |
| 3 | // |
| 4 | // The LLVM Compiler Infrastructure |
| 5 | // |
| 6 | // This file is dual licensed under the MIT and the University of Illinois Open |
| 7 | // Source Licenses. See LICENSE.TXT for details. |
| 8 | // |
| 9 | //===----------------------------------------------------------------------===// |
| 10 | |
| 11 | #ifndef _LIBCPP_WCTYPE_H |
| 12 | #define _LIBCPP_WCTYPE_H |
| 13 | |
| 14 | /* |
| 15 | wctype.h synopsis |
| 16 | |
| 17 | Macros: |
| 18 | |
| 19 | WEOF |
| 20 | |
| 21 | Types: |
| 22 | |
| 23 | wint_t |
| 24 | wctrans_t |
| 25 | wctype_t |
| 26 | |
| 27 | int iswalnum(wint_t wc); |
| 28 | int iswalpha(wint_t wc); |
| 29 | int iswblank(wint_t wc); // C99 |
| 30 | int iswcntrl(wint_t wc); |
| 31 | int iswdigit(wint_t wc); |
| 32 | int iswgraph(wint_t wc); |
| 33 | int iswlower(wint_t wc); |
| 34 | int iswprint(wint_t wc); |
| 35 | int iswpunct(wint_t wc); |
| 36 | int iswspace(wint_t wc); |
| 37 | int iswupper(wint_t wc); |
| 38 | int iswxdigit(wint_t wc); |
| 39 | int iswctype(wint_t wc, wctype_t desc); |
| 40 | wctype_t wctype(const char* property); |
| 41 | wint_t towlower(wint_t wc); |
| 42 | wint_t towupper(wint_t wc); |
| 43 | wint_t towctrans(wint_t wc, wctrans_t desc); |
| 44 | wctrans_t wctrans(const char* property); |
| 45 | |
| 46 | */ |
| 47 | |
| 48 | #include <__config> |
| 49 | |
| 50 | #if !defined(_LIBCPP_HAS_NO_PRAGMA_SYSTEM_HEADER) |
| 51 | #pragma GCC system_header |
| 52 | #endif |
| 53 | |
| 54 | #include_next <wctype.h> |
| 55 | |
| 56 | #ifdef __cplusplus |
| 57 | |
| 58 | #undef iswalnum |
| 59 | #undef iswalpha |
| 60 | #undef iswblank |
| 61 | #undef iswcntrl |
| 62 | #undef iswdigit |
| 63 | #undef iswgraph |
| 64 | #undef iswlower |
| 65 | #undef iswprint |
| 66 | #undef iswpunct |
| 67 | #undef iswspace |
| 68 | #undef iswupper |
| 69 | #undef iswxdigit |
| 70 | #undef iswctype |
| 71 | #undef wctype |
| 72 | #undef towlower |
| 73 | #undef towupper |
| 74 | #undef towctrans |
| 75 | #undef wctrans |
| 76 | |
| 77 | #endif // __cplusplus |
| 78 | |
| 79 | #endif // _LIBCPP_WCTYPE_H |