1*38fd1498Szrj // <locale> Forward declarations -*- C++ -*-
2*38fd1498Szrj
3*38fd1498Szrj // Copyright (C) 1997-2018 Free Software Foundation, Inc.
4*38fd1498Szrj //
5*38fd1498Szrj // This file is part of the GNU ISO C++ Library. This library is free
6*38fd1498Szrj // software; you can redistribute it and/or modify it under the
7*38fd1498Szrj // terms of the GNU General Public License as published by the
8*38fd1498Szrj // Free Software Foundation; either version 3, or (at your option)
9*38fd1498Szrj // any later version.
10*38fd1498Szrj
11*38fd1498Szrj // This library is distributed in the hope that it will be useful,
12*38fd1498Szrj // but WITHOUT ANY WARRANTY; without even the implied warranty of
13*38fd1498Szrj // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14*38fd1498Szrj // GNU General Public License for more details.
15*38fd1498Szrj
16*38fd1498Szrj // Under Section 7 of GPL version 3, you are granted additional
17*38fd1498Szrj // permissions described in the GCC Runtime Library Exception, version
18*38fd1498Szrj // 3.1, as published by the Free Software Foundation.
19*38fd1498Szrj
20*38fd1498Szrj // You should have received a copy of the GNU General Public License and
21*38fd1498Szrj // a copy of the GCC Runtime Library Exception along with this program;
22*38fd1498Szrj // see the files COPYING3 and COPYING.RUNTIME respectively. If not, see
23*38fd1498Szrj // <http://www.gnu.org/licenses/>.
24*38fd1498Szrj
25*38fd1498Szrj /** @file bits/localefwd.h
26*38fd1498Szrj * This is an internal header file, included by other library headers.
27*38fd1498Szrj * Do not attempt to use it directly. @headername{locale}
28*38fd1498Szrj */
29*38fd1498Szrj
30*38fd1498Szrj //
31*38fd1498Szrj // ISO C++ 14882: 22.1 Locales
32*38fd1498Szrj //
33*38fd1498Szrj
34*38fd1498Szrj #ifndef _LOCALE_FWD_H
35*38fd1498Szrj #define _LOCALE_FWD_H 1
36*38fd1498Szrj
37*38fd1498Szrj #pragma GCC system_header
38*38fd1498Szrj
39*38fd1498Szrj #include <bits/c++config.h>
40*38fd1498Szrj #include <bits/c++locale.h> // Defines __c_locale, config-specific include
41*38fd1498Szrj #include <iosfwd> // For ostreambuf_iterator, istreambuf_iterator
42*38fd1498Szrj #include <cctype>
43*38fd1498Szrj
_GLIBCXX_VISIBILITY(default)44*38fd1498Szrj namespace std _GLIBCXX_VISIBILITY(default)
45*38fd1498Szrj {
46*38fd1498Szrj _GLIBCXX_BEGIN_NAMESPACE_VERSION
47*38fd1498Szrj
48*38fd1498Szrj /**
49*38fd1498Szrj * @defgroup locales Locales
50*38fd1498Szrj *
51*38fd1498Szrj * Classes and functions for internationalization and localization.
52*38fd1498Szrj */
53*38fd1498Szrj
54*38fd1498Szrj // 22.1.1 Locale
55*38fd1498Szrj class locale;
56*38fd1498Szrj
57*38fd1498Szrj template<typename _Facet>
58*38fd1498Szrj bool
59*38fd1498Szrj has_facet(const locale&) throw();
60*38fd1498Szrj
61*38fd1498Szrj template<typename _Facet>
62*38fd1498Szrj const _Facet&
63*38fd1498Szrj use_facet(const locale&);
64*38fd1498Szrj
65*38fd1498Szrj // 22.1.3 Convenience interfaces
66*38fd1498Szrj template<typename _CharT>
67*38fd1498Szrj bool
68*38fd1498Szrj isspace(_CharT, const locale&);
69*38fd1498Szrj
70*38fd1498Szrj template<typename _CharT>
71*38fd1498Szrj bool
72*38fd1498Szrj isprint(_CharT, const locale&);
73*38fd1498Szrj
74*38fd1498Szrj template<typename _CharT>
75*38fd1498Szrj bool
76*38fd1498Szrj iscntrl(_CharT, const locale&);
77*38fd1498Szrj
78*38fd1498Szrj template<typename _CharT>
79*38fd1498Szrj bool
80*38fd1498Szrj isupper(_CharT, const locale&);
81*38fd1498Szrj
82*38fd1498Szrj template<typename _CharT>
83*38fd1498Szrj bool
84*38fd1498Szrj islower(_CharT, const locale&);
85*38fd1498Szrj
86*38fd1498Szrj template<typename _CharT>
87*38fd1498Szrj bool
88*38fd1498Szrj isalpha(_CharT, const locale&);
89*38fd1498Szrj
90*38fd1498Szrj template<typename _CharT>
91*38fd1498Szrj bool
92*38fd1498Szrj isdigit(_CharT, const locale&);
93*38fd1498Szrj
94*38fd1498Szrj template<typename _CharT>
95*38fd1498Szrj bool
96*38fd1498Szrj ispunct(_CharT, const locale&);
97*38fd1498Szrj
98*38fd1498Szrj template<typename _CharT>
99*38fd1498Szrj bool
100*38fd1498Szrj isxdigit(_CharT, const locale&);
101*38fd1498Szrj
102*38fd1498Szrj template<typename _CharT>
103*38fd1498Szrj bool
104*38fd1498Szrj isalnum(_CharT, const locale&);
105*38fd1498Szrj
106*38fd1498Szrj template<typename _CharT>
107*38fd1498Szrj bool
108*38fd1498Szrj isgraph(_CharT, const locale&);
109*38fd1498Szrj
110*38fd1498Szrj #if __cplusplus >= 201103L
111*38fd1498Szrj template<typename _CharT>
112*38fd1498Szrj bool
113*38fd1498Szrj isblank(_CharT, const locale&);
114*38fd1498Szrj #endif
115*38fd1498Szrj
116*38fd1498Szrj template<typename _CharT>
117*38fd1498Szrj _CharT
118*38fd1498Szrj toupper(_CharT, const locale&);
119*38fd1498Szrj
120*38fd1498Szrj template<typename _CharT>
121*38fd1498Szrj _CharT
122*38fd1498Szrj tolower(_CharT, const locale&);
123*38fd1498Szrj
124*38fd1498Szrj // 22.2.1 and 22.2.1.3 ctype
125*38fd1498Szrj class ctype_base;
126*38fd1498Szrj template<typename _CharT>
127*38fd1498Szrj class ctype;
128*38fd1498Szrj template<> class ctype<char>;
129*38fd1498Szrj #ifdef _GLIBCXX_USE_WCHAR_T
130*38fd1498Szrj template<> class ctype<wchar_t>;
131*38fd1498Szrj #endif
132*38fd1498Szrj template<typename _CharT>
133*38fd1498Szrj class ctype_byname;
134*38fd1498Szrj // NB: Specialized for char and wchar_t in locale_facets.h.
135*38fd1498Szrj
136*38fd1498Szrj class codecvt_base;
137*38fd1498Szrj template<typename _InternT, typename _ExternT, typename _StateT>
138*38fd1498Szrj class codecvt;
139*38fd1498Szrj template<> class codecvt<char, char, mbstate_t>;
140*38fd1498Szrj #ifdef _GLIBCXX_USE_WCHAR_T
141*38fd1498Szrj template<> class codecvt<wchar_t, char, mbstate_t>;
142*38fd1498Szrj #endif
143*38fd1498Szrj template<typename _InternT, typename _ExternT, typename _StateT>
144*38fd1498Szrj class codecvt_byname;
145*38fd1498Szrj
146*38fd1498Szrj // 22.2.2 and 22.2.3 numeric
147*38fd1498Szrj _GLIBCXX_BEGIN_NAMESPACE_LDBL
148*38fd1498Szrj template<typename _CharT, typename _InIter = istreambuf_iterator<_CharT> >
149*38fd1498Szrj class num_get;
150*38fd1498Szrj template<typename _CharT, typename _OutIter = ostreambuf_iterator<_CharT> >
151*38fd1498Szrj class num_put;
152*38fd1498Szrj _GLIBCXX_END_NAMESPACE_LDBL
153*38fd1498Szrj _GLIBCXX_BEGIN_NAMESPACE_CXX11
154*38fd1498Szrj template<typename _CharT> class numpunct;
155*38fd1498Szrj template<typename _CharT> class numpunct_byname;
156*38fd1498Szrj _GLIBCXX_END_NAMESPACE_CXX11
157*38fd1498Szrj
158*38fd1498Szrj _GLIBCXX_BEGIN_NAMESPACE_CXX11
159*38fd1498Szrj // 22.2.4 collation
160*38fd1498Szrj template<typename _CharT>
161*38fd1498Szrj class collate;
162*38fd1498Szrj template<typename _CharT>
163*38fd1498Szrj class collate_byname;
164*38fd1498Szrj _GLIBCXX_END_NAMESPACE_CXX11
165*38fd1498Szrj
166*38fd1498Szrj // 22.2.5 date and time
167*38fd1498Szrj class time_base;
168*38fd1498Szrj _GLIBCXX_BEGIN_NAMESPACE_CXX11
169*38fd1498Szrj template<typename _CharT, typename _InIter = istreambuf_iterator<_CharT> >
170*38fd1498Szrj class time_get;
171*38fd1498Szrj template<typename _CharT, typename _InIter = istreambuf_iterator<_CharT> >
172*38fd1498Szrj class time_get_byname;
173*38fd1498Szrj _GLIBCXX_END_NAMESPACE_CXX11
174*38fd1498Szrj template<typename _CharT, typename _OutIter = ostreambuf_iterator<_CharT> >
175*38fd1498Szrj class time_put;
176*38fd1498Szrj template<typename _CharT, typename _OutIter = ostreambuf_iterator<_CharT> >
177*38fd1498Szrj class time_put_byname;
178*38fd1498Szrj
179*38fd1498Szrj // 22.2.6 money
180*38fd1498Szrj class money_base;
181*38fd1498Szrj _GLIBCXX_BEGIN_NAMESPACE_LDBL_OR_CXX11
182*38fd1498Szrj template<typename _CharT, typename _InIter = istreambuf_iterator<_CharT> >
183*38fd1498Szrj class money_get;
184*38fd1498Szrj template<typename _CharT, typename _OutIter = ostreambuf_iterator<_CharT> >
185*38fd1498Szrj class money_put;
186*38fd1498Szrj _GLIBCXX_END_NAMESPACE_LDBL_OR_CXX11
187*38fd1498Szrj _GLIBCXX_BEGIN_NAMESPACE_CXX11
188*38fd1498Szrj template<typename _CharT, bool _Intl = false>
189*38fd1498Szrj class moneypunct;
190*38fd1498Szrj template<typename _CharT, bool _Intl = false>
191*38fd1498Szrj class moneypunct_byname;
192*38fd1498Szrj _GLIBCXX_END_NAMESPACE_CXX11
193*38fd1498Szrj
194*38fd1498Szrj // 22.2.7 message retrieval
195*38fd1498Szrj class messages_base;
196*38fd1498Szrj _GLIBCXX_BEGIN_NAMESPACE_CXX11
197*38fd1498Szrj template<typename _CharT>
198*38fd1498Szrj class messages;
199*38fd1498Szrj template<typename _CharT>
200*38fd1498Szrj class messages_byname;
201*38fd1498Szrj _GLIBCXX_END_NAMESPACE_CXX11
202*38fd1498Szrj
203*38fd1498Szrj _GLIBCXX_END_NAMESPACE_VERSION
204*38fd1498Szrj } // namespace std
205*38fd1498Szrj
206*38fd1498Szrj #endif
207