Home | History | Annotate | Download | only in include
      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 
     17 namespace std
     18 {
     19 
     20 int isalnum(int c);
     21 int isalpha(int c);
     22 int isblank(int c);  // C99
     23 int iscntrl(int c);
     24 int isdigit(int c);
     25 int isgraph(int c);
     26 int islower(int c);
     27 int isprint(int c);
     28 int ispunct(int c);
     29 int isspace(int c);
     30 int isupper(int c);
     31 int isxdigit(int c);
     32 int tolower(int c);
     33 int 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 
    104 using ::isalnum;
    105 using ::isalpha;
    106 using ::isblank;
    107 using ::iscntrl;
    108 using ::isdigit;
    109 using ::isgraph;
    110 using ::islower;
    111 using ::isprint;
    112 using ::ispunct;
    113 using ::isspace;
    114 using ::isupper;
    115 using ::isxdigit;
    116 using ::tolower;
    117 using ::toupper;
    118 
    119 _LIBCPP_END_NAMESPACE_STD
    120 
    121 #endif  // _LIBCPP_CCTYPE
    122