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