# cwctype

Go to the documentation of this file.

    00001 // -*- C++ -*- forwarding header.
    00002
    00003 // Copyright (C) 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005,
    00004 // 2006, 2007, 2008, 2009
    00005 // Free Software Foundation, Inc.
    00006 //
    00007 // This file is part of the GNU ISO C++ Library.  This library is free
    00008 // software; you can redistribute it and/or modify it under the
    00009 // terms of the GNU General Public License as published by the
    00010 // Free Software Foundation; either version 3, or (at your option)
    00011 // any later version.
    00012
    00013 // This library is distributed in the hope that it will be useful,
    00014 // but WITHOUT ANY WARRANTY; without even the implied warranty of
    00015 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
    00016 // GNU General Public License for more details.
    00017
    00018 // Under Section 7 of GPL version 3, you are granted additional
    00019 // permissions described in the GCC Runtime Library Exception, version
    00020 // 3.1, as published by the Free Software Foundation.
    00021
    00022 // You should have received a copy of the GNU General Public License and
    00023 // a copy of the GCC Runtime Library Exception along with this program;
    00024 // see the files COPYING3 and COPYING.RUNTIME respectively.  If not, see
    00025 // <http://www.gnu.org/licenses/>.
    00026
    00027 /** @file include/cwctype
    00028  *  This is a Standard C++ Library file.  You should @c #include this file
    00029  *  in your programs, rather than any of the "*.h" implementation files.
    00030  *
    00031  *  This is the C++ version of the Standard C Library header @c wctype.h,
    00032  *  and its contents are (mostly) the same as that header, but are all
    00033  *  contained in the namespace @c std (except for names which are defined
    00034  *  as macros in C).
    00035  */
    00036
    00037 //
    00038 // ISO C++ 14882: <cwctype>
    00039 //
    00040
    00041 #pragma GCC system_header
    00042
    00043 #include <bits/c++config.h>
    00044
    00045 #if _GLIBCXX_HAVE_WCTYPE_H
    00046 #include <wctype.h>
    00047 #endif
    00048
    00049 #ifndef _GLIBCXX_CWCTYPE
    00050 #define _GLIBCXX_CWCTYPE 1
    00051
    00052 // Get rid of those macros defined in <wctype.h> in lieu of real functions.
    00053 #undef iswalnum
    00054 #undef iswalpha
    00055 #if _GLIBCXX_HAVE_ISWBLANK
    00056 # undef iswblank
    00057 #endif
    00058 #undef iswcntrl
    00059 #undef iswctype
    00060 #undef iswdigit
    00061 #undef iswgraph
    00062 #undef iswlower
    00063 #undef iswprint
    00064 #undef iswpunct
    00065 #undef iswspace
    00066 #undef iswupper
    00067 #undef iswxdigit
    00068 #undef towctrans
    00069 #undef towlower
    00070 #undef towupper
    00071 #undef wctrans
    00072 #undef wctype
    00073
    00074 #if _GLIBCXX_USE_WCHAR_T
    00075
    00076 _GLIBCXX_BEGIN_NAMESPACE(std)
    00077
    00078   using ::wctrans_t;
    00079   using ::wctype_t;
    00080   using ::wint_t;
    00081
    00082   using ::iswalnum;
    00083   using ::iswalpha;
    00084 #if _GLIBCXX_HAVE_ISWBLANK
    00085   using ::iswblank;
    00086 #endif
    00087   using ::iswcntrl;
    00088   using ::iswctype;
    00089   using ::iswdigit;
    00090   using ::iswgraph;
    00091   using ::iswlower;
    00092   using ::iswprint;
    00093   using ::iswpunct;
    00094   using ::iswspace;
    00095   using ::iswupper;
    00096   using ::iswxdigit;
    00097   using ::towctrans;
    00098   using ::towlower;
    00099   using ::towupper;
    00100   using ::wctrans;
    00101   using ::wctype;
    00102
    00103 _GLIBCXX_END_NAMESPACE
    00104
    00105 #endif //_GLIBCXX_USE_WCHAR_T
    00106
    00107 #ifdef __GXX_EXPERIMENTAL_CXX0X__
    00108 #  if defined(_GLIBCXX_INCLUDE_AS_TR1)
    00109 #    error C++0x header cannot be included from TR1 header
    00110 #  endif
    00111 #  if defined(_GLIBCXX_INCLUDE_AS_CXX0X)
    00112 #    include <tr1_impl/cwctype>
    00113 #  else
    00114 #    define _GLIBCXX_INCLUDE_AS_CXX0X
    00115 #    define _GLIBCXX_BEGIN_NAMESPACE_TR1
    00116 #    define _GLIBCXX_END_NAMESPACE_TR1
    00117 #    define _GLIBCXX_TR1
    00118 #    include <tr1_impl/cwctype>
    00119 #    undef _GLIBCXX_TR1
    00120 #    undef _GLIBCXX_END_NAMESPACE_TR1
    00121 #    undef _GLIBCXX_BEGIN_NAMESPACE_TR1
    00122 #    undef _GLIBCXX_INCLUDE_AS_CXX0X
    00123 #  endif
    00124 #endif
    00125
    00126 #endif