132 lines · plain
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-exception7//8//===----------------------------------------------------------------------===//9 10#ifndef _LIBCPP_CCTYPE11#define _LIBCPP_CCTYPE12 13/*14 cctype synopsis15 16namespace std17{18 19int isalnum(int c);20int isalpha(int c);21int isblank(int c); // C9922int iscntrl(int c);23int isdigit(int c);24int isgraph(int c);25int islower(int c);26int isprint(int c);27int ispunct(int c);28int isspace(int c);29int isupper(int c);30int isxdigit(int c);31int tolower(int c);32int toupper(int c);33 34} // std35*/36 37#if __cplusplus < 201103L && defined(_LIBCPP_USE_FROZEN_CXX03_HEADERS)38# include <__cxx03/cctype>39#else40# include <__config>41 42# include <ctype.h>43 44# ifndef _LIBCPP_CTYPE_H45# error <cctype> tried including <ctype.h> but didn't find libc++'s <ctype.h> header. \46 This usually means that your header search paths are not configured properly. \47 The header search paths should contain the C++ Standard Library headers before \48 any C Standard Library.49# endif50 51# if !defined(_LIBCPP_HAS_NO_PRAGMA_SYSTEM_HEADER)52# pragma GCC system_header53# endif54 55_LIBCPP_BEGIN_NAMESPACE_STD56 57# ifdef isalnum58# undef isalnum59# endif60 61# ifdef isalpha62# undef isalpha63# endif64 65# ifdef isblank66# undef isblank67# endif68 69# ifdef iscntrl70# undef iscntrl71# endif72 73# ifdef isdigit74# undef isdigit75# endif76 77# ifdef isgraph78# undef isgraph79# endif80 81# ifdef islower82# undef islower83# endif84 85# ifdef isprint86# undef isprint87# endif88 89# ifdef ispunct90# undef ispunct91# endif92 93# ifdef isspace94# undef isspace95# endif96 97# ifdef isupper98# undef isupper99# endif100 101# ifdef isxdigit102# undef isxdigit103# endif104 105# ifdef tolower106# undef tolower107# endif108 109# ifdef toupper110# undef toupper111# endif112 113using ::isalnum _LIBCPP_USING_IF_EXISTS;114using ::isalpha _LIBCPP_USING_IF_EXISTS;115using ::isblank _LIBCPP_USING_IF_EXISTS;116using ::iscntrl _LIBCPP_USING_IF_EXISTS;117using ::isdigit _LIBCPP_USING_IF_EXISTS;118using ::isgraph _LIBCPP_USING_IF_EXISTS;119using ::islower _LIBCPP_USING_IF_EXISTS;120using ::isprint _LIBCPP_USING_IF_EXISTS;121using ::ispunct _LIBCPP_USING_IF_EXISTS;122using ::isspace _LIBCPP_USING_IF_EXISTS;123using ::isupper _LIBCPP_USING_IF_EXISTS;124using ::isxdigit _LIBCPP_USING_IF_EXISTS;125using ::tolower _LIBCPP_USING_IF_EXISTS;126using ::toupper _LIBCPP_USING_IF_EXISTS;127 128_LIBCPP_END_NAMESPACE_STD129#endif // __cplusplus < 201103L && defined(_LIBCPP_USE_FROZEN_CXX03_HEADERS)130 131#endif // _LIBCPP_CCTYPE132