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_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#if __cplusplus < 201103L && defined(_LIBCPP_USE_FROZEN_CXX03_HEADERS)
38# include <__cxx03/cctype>
39#else
40# include <__config>
41
42# if __has_include(<ctype.h>)
43# include <ctype.h>
44# ifdef _LIBCPP_CTYPE_H
45# error "If libc++ starts defining <ctype.h>, the __has_include check should move to libc++'s <ctype.h>"
46# endif
47# endif
48
49# if !defined(_LIBCPP_HAS_NO_PRAGMA_SYSTEM_HEADER)
50# pragma GCC system_header
51# endif
52
53_LIBCPP_BEGIN_NAMESPACE_STD
54
55using ::isalnum _LIBCPP_USING_IF_EXISTS;
56using ::isalpha _LIBCPP_USING_IF_EXISTS;
57using ::isblank _LIBCPP_USING_IF_EXISTS;
58using ::iscntrl _LIBCPP_USING_IF_EXISTS;
59using ::isdigit _LIBCPP_USING_IF_EXISTS;
60using ::isgraph _LIBCPP_USING_IF_EXISTS;
61using ::islower _LIBCPP_USING_IF_EXISTS;
62using ::isprint _LIBCPP_USING_IF_EXISTS;
63using ::ispunct _LIBCPP_USING_IF_EXISTS;
64using ::isspace _LIBCPP_USING_IF_EXISTS;
65using ::isupper _LIBCPP_USING_IF_EXISTS;
66using ::isxdigit _LIBCPP_USING_IF_EXISTS;
67using ::tolower _LIBCPP_USING_IF_EXISTS;
68using ::toupper _LIBCPP_USING_IF_EXISTS;
69
70_LIBCPP_END_NAMESPACE_STD
71#endif // __cplusplus < 201103L && defined(_LIBCPP_USE_FROZEN_CXX03_HEADERS)
72
73#endif // _LIBCPP_CCTYPE