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
16namespace std
17{
18
19int isalnum(int c);
20int isalpha(int c);
21int isblank(int c); // C99
22int 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} // 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
103using ::isalnum;
104using ::isalpha;
105using ::isblank;
106using ::iscntrl;
107using ::isdigit;
108using ::isgraph;
109using ::islower;
110using ::isprint;
111using ::ispunct;
112using ::isspace;
113using ::isupper;
114using ::isxdigit;
115using ::tolower;
116using ::toupper;
117
118_LIBCPP_END_NAMESPACE_STD
119
120#endif // _LIBCPP_CCTYPE
121