1// -*- C++ -*- 2//===---------------------------- cctype ----------------------------------===// 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_CCTYPE 12#define _LIBCPP_CCTYPE 13 14/* 15 cctype synopsis 16 17namespace std 18{ 19 20int isalnum(int c); 21int isalpha(int c); 22int isblank(int c); // C99 23int iscntrl(int c); 24int isdigit(int c); 25int isgraph(int c); 26int islower(int c); 27int isprint(int c); 28int ispunct(int c); 29int isspace(int c); 30int isupper(int c); 31int isxdigit(int c); 32int tolower(int c); 33int toupper(int c); 34 35} // std 36*/ 37 38#include <__config> 39#include <ctype.h> 40 41#if !defined(_LIBCPP_HAS_NO_PRAGMA_SYSTEM_HEADER) 42#pragma GCC system_header 43#endif 44 45_LIBCPP_BEGIN_NAMESPACE_STD 46 47#ifdef isalnum 48#undef isalnum 49#endif 50 51#ifdef isalpha 52#undef isalpha 53#endif 54 55#ifdef isblank 56#undef isblank 57#endif 58 59#ifdef iscntrl 60#undef iscntrl 61#endif 62 63#ifdef isdigit 64#undef isdigit 65#endif 66 67#ifdef isgraph 68#undef isgraph 69#endif 70 71#ifdef islower 72#undef islower 73#endif 74 75#ifdef isprint 76#undef isprint 77#endif 78 79#ifdef ispunct 80#undef ispunct 81#endif 82 83#ifdef isspace 84#undef isspace 85#endif 86 87#ifdef isupper 88#undef isupper 89#endif 90 91#ifdef isxdigit 92#undef isxdigit 93#endif 94 95#ifdef tolower 96#undef tolower 97#endif 98 99#ifdef toupper 100#undef toupper 101#endif 102 103 104using ::isalnum; 105using ::isalpha; 106using ::isblank; 107using ::iscntrl; 108using ::isdigit; 109using ::isgraph; 110using ::islower; 111using ::isprint; 112using ::ispunct; 113using ::isspace; 114using ::isupper; 115using ::isxdigit; 116using ::tolower; 117using ::toupper; 118 119_LIBCPP_END_NAMESPACE_STD 120 121#endif // _LIBCPP_CCTYPE 122