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