xref: /llvm-project/libcxx/include/ctype.h (revision b9a2658a3e8bd13b0f9e7a8a440832a95b377216)
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_CTYPE_H
11 #define _LIBCPP_CTYPE_H
12 
13 /*
14     ctype.h synopsis
15 
16 int isalnum(int c);
17 int isalpha(int c);
18 int isblank(int c);  // C99
19 int iscntrl(int c);
20 int isdigit(int c);
21 int isgraph(int c);
22 int islower(int c);
23 int isprint(int c);
24 int ispunct(int c);
25 int isspace(int c);
26 int isupper(int c);
27 int isxdigit(int c);
28 int tolower(int c);
29 int toupper(int c);
30 */
31 
32 #if defined(__cplusplus) && __cplusplus < 201103L && defined(_LIBCPP_USE_FROZEN_CXX03_HEADERS)
33 #  include <__cxx03/ctype.h>
34 #else
35 #  include <__config>
36 
37 #  if !defined(_LIBCPP_HAS_NO_PRAGMA_SYSTEM_HEADER)
38 #    pragma GCC system_header
39 #  endif
40 
41 #  if __has_include_next(<ctype.h>)
42 #    include_next <ctype.h>
43 #  endif
44 
45 #  ifdef __cplusplus
46 
47 #    undef isalnum
48 #    undef isalpha
49 #    undef isblank
50 #    undef iscntrl
51 #    undef isdigit
52 #    undef isgraph
53 #    undef islower
54 #    undef isprint
55 #    undef ispunct
56 #    undef isspace
57 #    undef isupper
58 #    undef isxdigit
59 #    undef tolower
60 #    undef toupper
61 
62 #  endif
63 #endif // defined(__cplusplus) && __cplusplus < 201103L && defined(_LIBCPP_USE_FROZEN_CXX03_HEADERS)
64 
65 #endif // _LIBCPP_CTYPE_H
66