# 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
    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 2, 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 // You should have received a copy of the GNU General Public License along
    00019 // with this library; see the file COPYING.  If not, write to the Free
    00020 // Software Foundation, 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301,
    00021 // USA.
    00022
    00023 // As a special exception, you may use this file as part of a free software
    00024 // library without restriction.  Specifically, if other files instantiate
    00025 // templates or use macros or inline functions from this file, or you compile
    00026 // this file and link it with other files to produce an executable, this
    00027 // file does not by itself cause the resulting executable to be covered by
    00028 // the GNU General Public License.  This exception does not however
    00029 // invalidate any other reasons why the executable file might be covered by
    00030 // the GNU General Public License.
    00031
    00032 /** @file localefwd.h
    00033  *  This is an internal header file, included by other library headers.
    00034  *  You should not attempt to use it directly.
    00035  */
    00036
    00037 //
    00038 // ISO C++ 14882: 22.1  Locales
    00039 //
    00040
    00041 #ifndef _LOCALE_FWD_H
    00042 #define _LOCALE_FWD_H 1
    00043
    00044 #pragma GCC system_header
    00045
    00046 #include <bits/c++config.h>
    00047 #include <bits/c++locale.h>  // Defines __c_locale, config-specific include
    00048 #include <iosfwd>            // For ostreambuf_iterator, istreambuf_iterator
    00049 #include <cctype>
    00050
    00051 _GLIBCXX_BEGIN_NAMESPACE(std)
    00052
    00053   // 22.1.1 Locale
    00054   class locale;
    00055
    00056   template<typename _Facet>
    00057     bool
    00058     has_facet(const locale&) throw();
    00059
    00060   template<typename _Facet>
    00061     const _Facet&
    00062     use_facet(const locale&);
    00063
    00064   // 22.1.3 Convenience interfaces
    00065   template<typename _CharT>
    00066     bool
    00067     isspace(_CharT, const locale&);
    00068
    00069   template<typename _CharT>
    00070     bool
    00071     isprint(_CharT, const locale&);
    00072
    00073   template<typename _CharT>
    00074     bool
    00075     iscntrl(_CharT, const locale&);
    00076
    00077   template<typename _CharT>
    00078     bool
    00079     isupper(_CharT, const locale&);
    00080
    00081   template<typename _CharT>
    00082     bool
    00083     islower(_CharT, const locale&);
    00084
    00085   template<typename _CharT>
    00086     bool
    00087     isalpha(_CharT, const locale&);
    00088
    00089   template<typename _CharT>
    00090     bool
    00091     isdigit(_CharT, const locale&);
    00092
    00093   template<typename _CharT>
    00094     bool
    00095     ispunct(_CharT, const locale&);
    00096
    00097   template<typename _CharT>
    00098     bool
    00099     isxdigit(_CharT, const locale&);
    00100
    00101   template<typename _CharT>
    00102     bool
    00103     isalnum(_CharT, const locale&);
    00104
    00105   template<typename _CharT>
    00106     bool
    00107     isgraph(_CharT, const locale&);
    00108
    00109   template<typename _CharT>
    00110     _CharT
    00111     toupper(_CharT, const locale&);
    00112
    00113   template<typename _CharT>
    00114     _CharT
    00115     tolower(_CharT, const locale&);
    00116
    00117   // 22.2.1 and 22.2.1.3 ctype
    00118   class ctype_base;
    00119   template<typename _CharT>
    00120     class ctype;
    00121   template<> class ctype<char>;
    00122 #ifdef _GLIBCXX_USE_WCHAR_T
    00123   template<> class ctype<wchar_t>;
    00124 #endif
    00125   template<typename _CharT>
    00126     class ctype_byname;
    00127   // NB: Specialized for char and wchar_t in locale_facets.h.
    00128
    00129   class codecvt_base;
    00130   template<typename _InternT, typename _ExternT, typename _StateT>
    00131     class codecvt;
    00132   template<> class codecvt<char, char, mbstate_t>;
    00133 #ifdef _GLIBCXX_USE_WCHAR_T
    00134   template<> class codecvt<wchar_t, char, mbstate_t>;
    00135 #endif
    00136   template<typename _InternT, typename _ExternT, typename _StateT>
    00137     class codecvt_byname;
    00138
    00139   // 22.2.2 and 22.2.3 numeric
    00140 _GLIBCXX_BEGIN_LDBL_NAMESPACE
    00141   template<typename _CharT, typename _InIter = istreambuf_iterator<_CharT> >
    00142     class num_get;
    00143   template<typename _CharT, typename _OutIter = ostreambuf_iterator<_CharT> >
    00144     class num_put;
    00145 _GLIBCXX_END_LDBL_NAMESPACE
    00146   template<typename _CharT> class numpunct;
    00147   template<typename _CharT> class numpunct_byname;
    00148
    00149   // 22.2.4 collation
    00150   template<typename _CharT>
    00151     class collate;
    00152   template<typename _CharT> class
    00153     collate_byname;
    00154
    00155   // 22.2.5 date and time
    00156   class time_base;
    00157   template<typename _CharT, typename _InIter =  istreambuf_iterator<_CharT> >
    00158     class time_get;
    00159   template<typename _CharT, typename _InIter =  istreambuf_iterator<_CharT> >
    00160     class time_get_byname;
    00161   template<typename _CharT, typename _OutIter = ostreambuf_iterator<_CharT> >
    00162     class time_put;
    00163   template<typename _CharT, typename _OutIter = ostreambuf_iterator<_CharT> >
    00164     class time_put_byname;
    00165
    00166   // 22.2.6 money
    00167   class money_base;
    00168 _GLIBCXX_BEGIN_LDBL_NAMESPACE
    00169   template<typename _CharT, typename _InIter =  istreambuf_iterator<_CharT> >
    00170     class money_get;
    00171   template<typename _CharT, typename _OutIter = ostreambuf_iterator<_CharT> >
    00172     class money_put;
    00173 _GLIBCXX_END_LDBL_NAMESPACE
    00174   template<typename _CharT, bool _Intl = false>
    00175     class moneypunct;
    00176   template<typename _CharT, bool _Intl = false>
    00177     class moneypunct_byname;
    00178
    00179   // 22.2.7 message retrieval
    00180   class messages_base;
    00181   template<typename _CharT>
    00182     class messages;
    00183   template<typename _CharT>
    00184     class messages_byname;
    00185
    00186 _GLIBCXX_END_NAMESPACE
    00187
    00188 #endif