# localefwd.h

Go to the documentation of this file.

    00001 // Locale support -*- C++ -*-
    00002
    00003 // Copyright (C) 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005,
    00004 // 2006, 2007, 2009, 2010
    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 localefwd.h
    00028  *  This is an internal header file, included by other library headers.
    00029  *  You should not attempt to use it directly.
    00030  */
    00031
    00032 //
    00033 // ISO C++ 14882: 22.1  Locales
    00034 //
    00035
    00036 #ifndef _LOCALE_FWD_H
    00037 #define _LOCALE_FWD_H 1
    00038
    00039 #pragma GCC system_header
    00040
    00041 #include <bits/c++config.h>
    00042 #include <bits/c++locale.h>  // Defines __c_locale, config-specific include
    00043 #include <iosfwd>            // For ostreambuf_iterator, istreambuf_iterator
    00044 #include <cctype>
    00045
    00046 _GLIBCXX_BEGIN_NAMESPACE(std)
    00047
    00048   /**
    00049    *  @defgroup locales Locales
    00050    *
    00051    *  Classes and functions for internationalization and localization.
    00052    */
    00053
    00054   // 22.1.1 Locale
    00055   class locale;
    00056
    00057   template<typename _Facet>
    00058     bool
    00059     has_facet(const locale&) throw();
    00060
    00061   template<typename _Facet>
    00062     const _Facet&
    00063     use_facet(const locale&);
    00064
    00065   // 22.1.3 Convenience interfaces
    00066   template<typename _CharT>
    00067     bool
    00068     isspace(_CharT, const locale&);
    00069
    00070   template<typename _CharT>
    00071     bool
    00072     isprint(_CharT, const locale&);
    00073
    00074   template<typename _CharT>
    00075     bool
    00076     iscntrl(_CharT, const locale&);
    00077
    00078   template<typename _CharT>
    00079     bool
    00080     isupper(_CharT, const locale&);
    00081
    00082   template<typename _CharT>
    00083     bool
    00084     islower(_CharT, const locale&);
    00085
    00086   template<typename _CharT>
    00087     bool
    00088     isalpha(_CharT, const locale&);
    00089
    00090   template<typename _CharT>
    00091     bool
    00092     isdigit(_CharT, const locale&);
    00093
    00094   template<typename _CharT>
    00095     bool
    00096     ispunct(_CharT, const locale&);
    00097
    00098   template<typename _CharT>
    00099     bool
    00100     isxdigit(_CharT, const locale&);
    00101
    00102   template<typename _CharT>
    00103     bool
    00104     isalnum(_CharT, const locale&);
    00105
    00106   template<typename _CharT>
    00107     bool
    00108     isgraph(_CharT, const locale&);
    00109
    00110   template<typename _CharT>
    00111     _CharT
    00112     toupper(_CharT, const locale&);
    00113
    00114   template<typename _CharT>
    00115     _CharT
    00116     tolower(_CharT, const locale&);
    00117
    00118   // 22.2.1 and 22.2.1.3 ctype
    00119   class ctype_base;
    00120   template<typename _CharT>
    00121     class ctype;
    00122   template<> class ctype<char>;
    00123 #ifdef _GLIBCXX_USE_WCHAR_T
    00124   template<> class ctype<wchar_t>;
    00125 #endif
    00126   template<typename _CharT>
    00127     class ctype_byname;
    00128   // NB: Specialized for char and wchar_t in locale_facets.h.
    00129
    00130   class codecvt_base;
    00131   template<typename _InternT, typename _ExternT, typename _StateT>
    00132     class codecvt;
    00133   template<> class codecvt<char, char, mbstate_t>;
    00134 #ifdef _GLIBCXX_USE_WCHAR_T
    00135   template<> class codecvt<wchar_t, char, mbstate_t>;
    00136 #endif
    00137   template<typename _InternT, typename _ExternT, typename _StateT>
    00138     class codecvt_byname;
    00139
    00140   // 22.2.2 and 22.2.3 numeric
    00141 _GLIBCXX_BEGIN_LDBL_NAMESPACE
    00142   template<typename _CharT, typename _InIter = istreambuf_iterator<_CharT> >
    00143     class num_get;
    00144   template<typename _CharT, typename _OutIter = ostreambuf_iterator<_CharT> >
    00145     class num_put;
    00146 _GLIBCXX_END_LDBL_NAMESPACE
    00147   template<typename _CharT> class numpunct;
    00148   template<typename _CharT> class numpunct_byname;
    00149
    00150   // 22.2.4 collation
    00151   template<typename _CharT>
    00152     class collate;
    00153   template<typename _CharT> class
    00154     collate_byname;
    00155
    00156   // 22.2.5 date and time
    00157   class time_base;
    00158   template<typename _CharT, typename _InIter =  istreambuf_iterator<_CharT> >
    00159     class time_get;
    00160   template<typename _CharT, typename _InIter =  istreambuf_iterator<_CharT> >
    00161     class time_get_byname;
    00162   template<typename _CharT, typename _OutIter = ostreambuf_iterator<_CharT> >
    00163     class time_put;
    00164   template<typename _CharT, typename _OutIter = ostreambuf_iterator<_CharT> >
    00165     class time_put_byname;
    00166
    00167   // 22.2.6 money
    00168   class money_base;
    00169 _GLIBCXX_BEGIN_LDBL_NAMESPACE
    00170   template<typename _CharT, typename _InIter =  istreambuf_iterator<_CharT> >
    00171     class money_get;
    00172   template<typename _CharT, typename _OutIter = ostreambuf_iterator<_CharT> >
    00173     class money_put;
    00174 _GLIBCXX_END_LDBL_NAMESPACE
    00175   template<typename _CharT, bool _Intl = false>
    00176     class moneypunct;
    00177   template<typename _CharT, bool _Intl = false>
    00178     class moneypunct_byname;
    00179
    00180   // 22.2.7 message retrieval
    00181   class messages_base;
    00182   template<typename _CharT>
    00183     class messages;
    00184   template<typename _CharT>
    00185     class messages_byname;
    00186
    00187 _GLIBCXX_END_NAMESPACE
    00188
    00189 #endif