xref: /llvm-project-15.0.7/libcxx/include/cctype (revision 385cc25a)
13e519524SHoward Hinnant// -*- C++ -*-
2eb8650a7SLouis Dionne//===----------------------------------------------------------------------===//
33e519524SHoward Hinnant//
457b08b09SChandler Carruth// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
557b08b09SChandler Carruth// See https://llvm.org/LICENSE.txt for license information.
657b08b09SChandler Carruth// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
73e519524SHoward Hinnant//
83e519524SHoward Hinnant//===----------------------------------------------------------------------===//
93e519524SHoward Hinnant
103e519524SHoward Hinnant#ifndef _LIBCPP_CCTYPE
113e519524SHoward Hinnant#define _LIBCPP_CCTYPE
123e519524SHoward Hinnant
133e519524SHoward Hinnant/*
143e519524SHoward Hinnant    cctype synopsis
153e519524SHoward Hinnant
163e519524SHoward Hinnantnamespace std
173e519524SHoward Hinnant{
183e519524SHoward Hinnant
193e519524SHoward Hinnantint isalnum(int c);
203e519524SHoward Hinnantint isalpha(int c);
213e519524SHoward Hinnantint isblank(int c);  // C99
223e519524SHoward Hinnantint iscntrl(int c);
233e519524SHoward Hinnantint isdigit(int c);
243e519524SHoward Hinnantint isgraph(int c);
253e519524SHoward Hinnantint islower(int c);
263e519524SHoward Hinnantint isprint(int c);
273e519524SHoward Hinnantint ispunct(int c);
283e519524SHoward Hinnantint isspace(int c);
293e519524SHoward Hinnantint isupper(int c);
303e519524SHoward Hinnantint isxdigit(int c);
313e519524SHoward Hinnantint tolower(int c);
323e519524SHoward Hinnantint toupper(int c);
333e519524SHoward Hinnant
343e519524SHoward Hinnant}  // std
353e519524SHoward Hinnant*/
363e519524SHoward Hinnant
37*385cc25aSLouis Dionne#include <__assert> // all public C++ headers provide the assertion handler
383e519524SHoward Hinnant#include <__config>
393e519524SHoward Hinnant#include <ctype.h>
403e519524SHoward Hinnant
41073458b1SHoward Hinnant#if !defined(_LIBCPP_HAS_NO_PRAGMA_SYSTEM_HEADER)
423e519524SHoward Hinnant#  pragma GCC system_header
43073458b1SHoward Hinnant#endif
443e519524SHoward Hinnant
453e519524SHoward Hinnant_LIBCPP_BEGIN_NAMESPACE_STD
463e519524SHoward Hinnant
47bb8c6653SMarshall Clow#ifdef isalnum
48bb8c6653SMarshall Clow#undef isalnum
49bb8c6653SMarshall Clow#endif
50bb8c6653SMarshall Clow
51bb8c6653SMarshall Clow#ifdef isalpha
52bb8c6653SMarshall Clow#undef isalpha
53bb8c6653SMarshall Clow#endif
54bb8c6653SMarshall Clow
55bb8c6653SMarshall Clow#ifdef isblank
56bb8c6653SMarshall Clow#undef isblank
57bb8c6653SMarshall Clow#endif
58bb8c6653SMarshall Clow
59bb8c6653SMarshall Clow#ifdef iscntrl
60bb8c6653SMarshall Clow#undef iscntrl
61bb8c6653SMarshall Clow#endif
62bb8c6653SMarshall Clow
63bb8c6653SMarshall Clow#ifdef isdigit
64bb8c6653SMarshall Clow#undef isdigit
65bb8c6653SMarshall Clow#endif
66bb8c6653SMarshall Clow
67bb8c6653SMarshall Clow#ifdef isgraph
68bb8c6653SMarshall Clow#undef isgraph
69bb8c6653SMarshall Clow#endif
70bb8c6653SMarshall Clow
71bb8c6653SMarshall Clow#ifdef islower
72bb8c6653SMarshall Clow#undef islower
73bb8c6653SMarshall Clow#endif
74bb8c6653SMarshall Clow
75bb8c6653SMarshall Clow#ifdef isprint
76bb8c6653SMarshall Clow#undef isprint
77bb8c6653SMarshall Clow#endif
78bb8c6653SMarshall Clow
79bb8c6653SMarshall Clow#ifdef ispunct
80bb8c6653SMarshall Clow#undef ispunct
81bb8c6653SMarshall Clow#endif
82bb8c6653SMarshall Clow
83bb8c6653SMarshall Clow#ifdef isspace
84bb8c6653SMarshall Clow#undef isspace
85bb8c6653SMarshall Clow#endif
86bb8c6653SMarshall Clow
87bb8c6653SMarshall Clow#ifdef isupper
88bb8c6653SMarshall Clow#undef isupper
89bb8c6653SMarshall Clow#endif
90bb8c6653SMarshall Clow
91bb8c6653SMarshall Clow#ifdef isxdigit
92bb8c6653SMarshall Clow#undef isxdigit
93bb8c6653SMarshall Clow#endif
94bb8c6653SMarshall Clow
95bb8c6653SMarshall Clow#ifdef tolower
96bb8c6653SMarshall Clow#undef tolower
97bb8c6653SMarshall Clow#endif
98bb8c6653SMarshall Clow
99bb8c6653SMarshall Clow#ifdef toupper
100bb8c6653SMarshall Clow#undef toupper
101bb8c6653SMarshall Clow#endif
102bb8c6653SMarshall Clow
103bb8c6653SMarshall Clow
104a9c9183cSLouis Dionneusing ::isalnum _LIBCPP_USING_IF_EXISTS;
105a9c9183cSLouis Dionneusing ::isalpha _LIBCPP_USING_IF_EXISTS;
106a9c9183cSLouis Dionneusing ::isblank _LIBCPP_USING_IF_EXISTS;
107a9c9183cSLouis Dionneusing ::iscntrl _LIBCPP_USING_IF_EXISTS;
108a9c9183cSLouis Dionneusing ::isdigit _LIBCPP_USING_IF_EXISTS;
109a9c9183cSLouis Dionneusing ::isgraph _LIBCPP_USING_IF_EXISTS;
110a9c9183cSLouis Dionneusing ::islower _LIBCPP_USING_IF_EXISTS;
111a9c9183cSLouis Dionneusing ::isprint _LIBCPP_USING_IF_EXISTS;
112a9c9183cSLouis Dionneusing ::ispunct _LIBCPP_USING_IF_EXISTS;
113a9c9183cSLouis Dionneusing ::isspace _LIBCPP_USING_IF_EXISTS;
114a9c9183cSLouis Dionneusing ::isupper _LIBCPP_USING_IF_EXISTS;
115a9c9183cSLouis Dionneusing ::isxdigit _LIBCPP_USING_IF_EXISTS;
116a9c9183cSLouis Dionneusing ::tolower _LIBCPP_USING_IF_EXISTS;
117a9c9183cSLouis Dionneusing ::toupper _LIBCPP_USING_IF_EXISTS;
1183e519524SHoward Hinnant
1193e519524SHoward Hinnant_LIBCPP_END_NAMESPACE_STD
1203e519524SHoward Hinnant
1213e519524SHoward Hinnant#endif // _LIBCPP_CCTYPE
122