155714Skris// -*- C++ -*- forwarding header.
255714Skris
355714Skris// Copyright (C) 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005
455714Skris// Free Software Foundation, Inc.
555714Skris//
655714Skris// This file is part of the GNU ISO C++ Library.  This library is free
755714Skris// software; you can redistribute it and/or modify it under the
8280304Sjkim// terms of the GNU General Public License as published by the
955714Skris// Free Software Foundation; either version 2, or (at your option)
1055714Skris// any later version.
1155714Skris
1255714Skris// This library is distributed in the hope that it will be useful,
1355714Skris// but WITHOUT ANY WARRANTY; without even the implied warranty of
1455714Skris// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
15280304Sjkim// GNU General Public License for more details.
1655714Skris
1755714Skris// You should have received a copy of the GNU General Public License along
1855714Skris// with this library; see the file COPYING.  If not, write to the Free
1955714Skris// Software Foundation, 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301,
2055714Skris// USA.
2155714Skris
22280304Sjkim// As a special exception, you may use this file as part of a free software
2355714Skris// library without restriction.  Specifically, if other files instantiate
2455714Skris// templates or use macros or inline functions from this file, or you compile
2555714Skris// this file and link it with other files to produce an executable, this
2655714Skris// file does not by itself cause the resulting executable to be covered by
2755714Skris// the GNU General Public License.  This exception does not however
2855714Skris// invalidate any other reasons why the executable file might be covered by
2955714Skris// the GNU General Public License.
3055714Skris
3155714Skris/** @file include/cctype
3255714Skris *  This is a Standard C++ Library file.  You should @c #include this file
3355714Skris *  in your programs, rather than any of the "*.h" implementation files.
3455714Skris *
3555714Skris *  This is the C++ version of the Standard C Library header @c ctype.h,
3655714Skris *  and its contents are (mostly) the same as that header, but are all
37280304Sjkim *  contained in the namespace @c std (except for names which are defined
3855714Skris *  as macros in C).
3955714Skris */
40280304Sjkim
4155714Skris//
4255714Skris// ISO C++ 14882: <ccytpe>
4355714Skris//
4455714Skris
4555714Skris#ifndef _GLIBCXX_CCTYPE
4655714Skris#define _GLIBCXX_CCTYPE 1
4755714Skris
4855714Skris#pragma GCC system_header
4955714Skris
5055714Skris#include <bits/c++config.h>
5155714Skris#include <ctype.h>
52280304Sjkim
5355714Skris// Get rid of those macros defined in <ctype.h> in lieu of real functions.
5455714Skris#undef isalnum
5555714Skris#undef isalpha
5655714Skris#undef iscntrl
5755714Skris#undef isdigit
5855714Skris#undef isgraph
5955714Skris#undef islower
6055714Skris#undef isprint
61280304Sjkim#undef ispunct
62280304Sjkim#undef isspace
63280304Sjkim#undef isupper
64280304Sjkim#undef isxdigit
65280304Sjkim#undef tolower
6655714Skris#undef toupper
67109998Smarkm
68280304Sjkim_GLIBCXX_BEGIN_NAMESPACE(std)
69280304Sjkim
70280304Sjkim  using ::isalnum;
71280304Sjkim  using ::isalpha;
72280304Sjkim  using ::iscntrl;
73280304Sjkim  using ::isdigit;
74280304Sjkim  using ::isgraph;
75280304Sjkim  using ::islower;
76280304Sjkim  using ::isprint;
7755714Skris  using ::ispunct;
78280304Sjkim  using ::isspace;
79280304Sjkim  using ::isupper;
80280304Sjkim  using ::isxdigit;
81280304Sjkim  using ::tolower;
82280304Sjkim  using ::toupper;
83280304Sjkim
84280304Sjkim_GLIBCXX_END_NAMESPACE
85280304Sjkim
86280304Sjkim#endif
87280304Sjkim