]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/blob - contrib/libc++/include/cctype
Merge llvm, clang, compiler-rt, libc++, libunwind, lld, lldb and openmp
[FreeBSD/FreeBSD.git] / contrib / libc++ / include / cctype
1 // -*- C++ -*-
2 //===---------------------------- cctype ----------------------------------===//
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 #include <__config>
38 #include <ctype.h>
39
40 #if !defined(_LIBCPP_HAS_NO_PRAGMA_SYSTEM_HEADER)
41 #pragma GCC system_header
42 #endif
43
44 _LIBCPP_BEGIN_NAMESPACE_STD
45
46 #ifdef isalnum
47 #undef isalnum
48 #endif
49
50 #ifdef isalpha
51 #undef isalpha
52 #endif
53
54 #ifdef isblank
55 #undef isblank
56 #endif
57
58 #ifdef iscntrl
59 #undef iscntrl
60 #endif
61
62 #ifdef isdigit
63 #undef isdigit
64 #endif
65
66 #ifdef isgraph
67 #undef isgraph
68 #endif
69
70 #ifdef islower
71 #undef islower
72 #endif
73
74 #ifdef isprint
75 #undef isprint
76 #endif
77
78 #ifdef ispunct
79 #undef ispunct
80 #endif
81
82 #ifdef isspace
83 #undef isspace
84 #endif
85
86 #ifdef isupper
87 #undef isupper
88 #endif
89
90 #ifdef isxdigit
91 #undef isxdigit
92 #endif
93
94 #ifdef tolower
95 #undef tolower
96 #endif
97
98 #ifdef toupper
99 #undef toupper
100 #endif
101
102
103 using ::isalnum;
104 using ::isalpha;
105 using ::isblank;
106 using ::iscntrl;
107 using ::isdigit;
108 using ::isgraph;
109 using ::islower;
110 using ::isprint;
111 using ::ispunct;
112 using ::isspace;
113 using ::isupper;
114 using ::isxdigit;
115 using ::tolower;
116 using ::toupper;
117
118 _LIBCPP_END_NAMESPACE_STD
119
120 #endif  // _LIBCPP_CCTYPE