| 1 | // -*- C++ -*- |
| 2 | //===----------------------------------------------------------------------===// |
| 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 | |
| 10 | #ifndef _LIBCPP_CCTYPE |
| 11 | #define _LIBCPP_CCTYPE |
| 12 | |
| 13 | /* |
| 14 | cctype synopsis |
| 15 | |
| 16 | namespace std |
| 17 | { |
| 18 | |
| 19 | int isalnum(int c); |
| 20 | int isalpha(int c); |
| 21 | int isblank(int c); // C99 |
| 22 | int iscntrl(int c); |
| 23 | int isdigit(int c); |
| 24 | int isgraph(int c); |
| 25 | int islower(int c); |
| 26 | int isprint(int c); |
| 27 | int ispunct(int c); |
| 28 | int isspace(int c); |
| 29 | int isupper(int c); |
| 30 | int isxdigit(int c); |
| 31 | int tolower(int c); |
| 32 | int toupper(int c); |
| 33 | |
| 34 | } // std |
| 35 | */ |
| 36 | |
| 37 | #if __cplusplus < 201103L && defined(_LIBCPP_USE_FROZEN_CXX03_HEADERS) |
| 38 | # include <__cxx03/cctype> |
| 39 | #else |
| 40 | # include <__config> |
| 41 | |
| 42 | # if __has_include(<ctype.h>) |
| 43 | # include <ctype.h> |
| 44 | # ifdef _LIBCPP_CTYPE_H |
| 45 | # error "If libc++ starts defining <ctype.h>, the __has_include check should move to libc++'s <ctype.h>" |
| 46 | # endif |
| 47 | # endif |
| 48 | |
| 49 | # if !defined(_LIBCPP_HAS_NO_PRAGMA_SYSTEM_HEADER) |
| 50 | # pragma GCC system_header |
| 51 | # endif |
| 52 | |
| 53 | _LIBCPP_BEGIN_NAMESPACE_STD |
| 54 | |
| 55 | using ::isalnum _LIBCPP_USING_IF_EXISTS; |
| 56 | using ::isalpha _LIBCPP_USING_IF_EXISTS; |
| 57 | using ::isblank _LIBCPP_USING_IF_EXISTS; |
| 58 | using ::iscntrl _LIBCPP_USING_IF_EXISTS; |
| 59 | using ::isdigit _LIBCPP_USING_IF_EXISTS; |
| 60 | using ::isgraph _LIBCPP_USING_IF_EXISTS; |
| 61 | using ::islower _LIBCPP_USING_IF_EXISTS; |
| 62 | using ::isprint _LIBCPP_USING_IF_EXISTS; |
| 63 | using ::ispunct _LIBCPP_USING_IF_EXISTS; |
| 64 | using ::isspace _LIBCPP_USING_IF_EXISTS; |
| 65 | using ::isupper _LIBCPP_USING_IF_EXISTS; |
| 66 | using ::isxdigit _LIBCPP_USING_IF_EXISTS; |
| 67 | using ::tolower _LIBCPP_USING_IF_EXISTS; |
| 68 | using ::toupper _LIBCPP_USING_IF_EXISTS; |
| 69 | |
| 70 | _LIBCPP_END_NAMESPACE_STD |
| 71 | #endif // __cplusplus < 201103L && defined(_LIBCPP_USE_FROZEN_CXX03_HEADERS) |
| 72 | |
| 73 | #endif // _LIBCPP_CCTYPE |