1 // Locale support -*- C++ -*-
3 // Copyright (C) 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005,
5 // Free Software Foundation, Inc.
7 // This file is part of the GNU ISO C++ Library. This library is free
8 // software; you can redistribute it and/or modify it under the
9 // terms of the GNU General Public License as published by the
10 // Free Software Foundation; either version 3, or (at your option)
13 // This library is distributed in the hope that it will be useful,
14 // but WITHOUT ANY WARRANTY; without even the implied warranty of
15 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
16 // GNU General Public License for more details.
18 // Under Section 7 of GPL version 3, you are granted additional
19 // permissions described in the GCC Runtime Library Exception, version
20 // 3.1, as published by the Free Software Foundation.
22 // You should have received a copy of the GNU General Public License and
23 // a copy of the GCC Runtime Library Exception along with this program;
24 // see the files COPYING3 and COPYING.RUNTIME respectively. If not, see
25 // <http://www.gnu.org/licenses/>.
28 * This is an internal header file, included by other library headers.
29 * You should not attempt to use it directly.
33 // ISO C++ 14882: 22.1 Locales
37 #define _LOCALE_FWD_H 1
39 #pragma GCC system_header
41 #include <bits/c++config.h>
42 #include <bits/c++locale.h> // Defines __c_locale, config-specific include
43 #include <iosfwd> // For ostreambuf_iterator, istreambuf_iterator
46 _GLIBCXX_BEGIN_NAMESPACE(std)
51 template<typename _Facet>
53 has_facet(const locale&) throw();
55 template<typename _Facet>
57 use_facet(const locale&);
59 // 22.1.3 Convenience interfaces
60 template<typename _CharT>
62 isspace(_CharT, const locale&);
64 template<typename _CharT>
66 isprint(_CharT, const locale&);
68 template<typename _CharT>
70 iscntrl(_CharT, const locale&);
72 template<typename _CharT>
74 isupper(_CharT, const locale&);
76 template<typename _CharT>
78 islower(_CharT, const locale&);
80 template<typename _CharT>
82 isalpha(_CharT, const locale&);
84 template<typename _CharT>
86 isdigit(_CharT, const locale&);
88 template<typename _CharT>
90 ispunct(_CharT, const locale&);
92 template<typename _CharT>
94 isxdigit(_CharT, const locale&);
96 template<typename _CharT>
98 isalnum(_CharT, const locale&);
100 template<typename _CharT>
102 isgraph(_CharT, const locale&);
104 template<typename _CharT>
106 toupper(_CharT, const locale&);
108 template<typename _CharT>
110 tolower(_CharT, const locale&);
112 // 22.2.1 and 22.2.1.3 ctype
114 template<typename _CharT>
116 template<> class ctype<char>;
117 #ifdef _GLIBCXX_USE_WCHAR_T
118 template<> class ctype<wchar_t>;
120 template<typename _CharT>
122 // NB: Specialized for char and wchar_t in locale_facets.h.
125 template<typename _InternT, typename _ExternT, typename _StateT>
127 template<> class codecvt<char, char, mbstate_t>;
128 #ifdef _GLIBCXX_USE_WCHAR_T
129 template<> class codecvt<wchar_t, char, mbstate_t>;
131 template<typename _InternT, typename _ExternT, typename _StateT>
132 class codecvt_byname;
134 // 22.2.2 and 22.2.3 numeric
135 _GLIBCXX_BEGIN_LDBL_NAMESPACE
136 template<typename _CharT, typename _InIter = istreambuf_iterator<_CharT> >
138 template<typename _CharT, typename _OutIter = ostreambuf_iterator<_CharT> >
140 _GLIBCXX_END_LDBL_NAMESPACE
141 template<typename _CharT> class numpunct;
142 template<typename _CharT> class numpunct_byname;
145 template<typename _CharT>
147 template<typename _CharT> class
150 // 22.2.5 date and time
152 template<typename _CharT, typename _InIter = istreambuf_iterator<_CharT> >
154 template<typename _CharT, typename _InIter = istreambuf_iterator<_CharT> >
155 class time_get_byname;
156 template<typename _CharT, typename _OutIter = ostreambuf_iterator<_CharT> >
158 template<typename _CharT, typename _OutIter = ostreambuf_iterator<_CharT> >
159 class time_put_byname;
163 _GLIBCXX_BEGIN_LDBL_NAMESPACE
164 template<typename _CharT, typename _InIter = istreambuf_iterator<_CharT> >
166 template<typename _CharT, typename _OutIter = ostreambuf_iterator<_CharT> >
168 _GLIBCXX_END_LDBL_NAMESPACE
169 template<typename _CharT, bool _Intl = false>
171 template<typename _CharT, bool _Intl = false>
172 class moneypunct_byname;
174 // 22.2.7 message retrieval
176 template<typename _CharT>
178 template<typename _CharT>
179 class messages_byname;
181 _GLIBCXX_END_NAMESPACE