]> rtime.felk.cvut.cz Git - l4.git/blob - l4/pkg/libstdc++-v3/contrib/libstdc++-v3-4.3.3/include/bits/localefwd.h
update
[l4.git] / l4 / pkg / libstdc++-v3 / contrib / libstdc++-v3-4.3.3 / include / bits / localefwd.h
1 // Locale support -*- C++ -*-
2
3 // Copyright (C) 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005,
4 // 2006, 2007
5 // Free Software Foundation, Inc.
6 //
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 2, or (at your option)
11 // any later version.
12
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.
17
18 // You should have received a copy of the GNU General Public License along
19 // with this library; see the file COPYING.  If not, write to the Free
20 // Software Foundation, 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301,
21 // USA.
22
23 // As a special exception, you may use this file as part of a free software
24 // library without restriction.  Specifically, if other files instantiate
25 // templates or use macros or inline functions from this file, or you compile
26 // this file and link it with other files to produce an executable, this
27 // file does not by itself cause the resulting executable to be covered by
28 // the GNU General Public License.  This exception does not however
29 // invalidate any other reasons why the executable file might be covered by
30 // the GNU General Public License.
31
32 /** @file localefwd.h
33  *  This is an internal header file, included by other library headers.
34  *  You should not attempt to use it directly.
35  */
36
37 //
38 // ISO C++ 14882: 22.1  Locales
39 //
40
41 #ifndef _LOCALE_FWD_H
42 #define _LOCALE_FWD_H 1
43
44 #pragma GCC system_header
45
46 #include <bits/c++config.h>
47 #include <bits/c++locale.h>  // Defines __c_locale, config-specific include
48 #include <iosfwd>            // For ostreambuf_iterator, istreambuf_iterator
49 #include <cctype>
50
51 _GLIBCXX_BEGIN_NAMESPACE(std)
52
53   // 22.1.1 Locale
54   class locale;
55
56   template<typename _Facet>
57     bool
58     has_facet(const locale&) throw();
59
60   template<typename _Facet>
61     const _Facet&
62     use_facet(const locale&);
63
64   // 22.1.3 Convenience interfaces
65   template<typename _CharT>
66     bool
67     isspace(_CharT, const locale&);
68
69   template<typename _CharT>
70     bool
71     isprint(_CharT, const locale&);
72
73   template<typename _CharT>
74     bool
75     iscntrl(_CharT, const locale&);
76
77   template<typename _CharT>
78     bool
79     isupper(_CharT, const locale&);
80
81   template<typename _CharT>
82     bool
83     islower(_CharT, const locale&);
84
85   template<typename _CharT>
86     bool
87     isalpha(_CharT, const locale&);
88
89   template<typename _CharT>
90     bool
91     isdigit(_CharT, const locale&);
92
93   template<typename _CharT>
94     bool
95     ispunct(_CharT, const locale&);
96
97   template<typename _CharT>
98     bool
99     isxdigit(_CharT, const locale&);
100
101   template<typename _CharT>
102     bool
103     isalnum(_CharT, const locale&);
104
105   template<typename _CharT>
106     bool
107     isgraph(_CharT, const locale&);
108
109   template<typename _CharT>
110     _CharT
111     toupper(_CharT, const locale&);
112
113   template<typename _CharT>
114     _CharT
115     tolower(_CharT, const locale&);
116
117   // 22.2.1 and 22.2.1.3 ctype
118   class ctype_base;
119   template<typename _CharT>
120     class ctype;
121   template<> class ctype<char>;
122 #ifdef _GLIBCXX_USE_WCHAR_T
123   template<> class ctype<wchar_t>;
124 #endif
125   template<typename _CharT>
126     class ctype_byname;
127   // NB: Specialized for char and wchar_t in locale_facets.h.
128
129   class codecvt_base;
130   template<typename _InternT, typename _ExternT, typename _StateT>
131     class codecvt;
132   template<> class codecvt<char, char, mbstate_t>;
133 #ifdef _GLIBCXX_USE_WCHAR_T
134   template<> class codecvt<wchar_t, char, mbstate_t>;
135 #endif
136   template<typename _InternT, typename _ExternT, typename _StateT>
137     class codecvt_byname;
138
139   // 22.2.2 and 22.2.3 numeric
140 _GLIBCXX_BEGIN_LDBL_NAMESPACE
141   template<typename _CharT, typename _InIter = istreambuf_iterator<_CharT> >
142     class num_get;
143   template<typename _CharT, typename _OutIter = ostreambuf_iterator<_CharT> >
144     class num_put;
145 _GLIBCXX_END_LDBL_NAMESPACE
146   template<typename _CharT> class numpunct;
147   template<typename _CharT> class numpunct_byname;
148
149   // 22.2.4 collation
150   template<typename _CharT>
151     class collate;
152   template<typename _CharT> class
153     collate_byname;
154
155   // 22.2.5 date and time
156   class time_base;
157   template<typename _CharT, typename _InIter =  istreambuf_iterator<_CharT> >
158     class time_get;
159   template<typename _CharT, typename _InIter =  istreambuf_iterator<_CharT> >
160     class time_get_byname;
161   template<typename _CharT, typename _OutIter = ostreambuf_iterator<_CharT> >
162     class time_put;
163   template<typename _CharT, typename _OutIter = ostreambuf_iterator<_CharT> >
164     class time_put_byname;
165
166   // 22.2.6 money
167   class money_base;
168 _GLIBCXX_BEGIN_LDBL_NAMESPACE
169   template<typename _CharT, typename _InIter =  istreambuf_iterator<_CharT> >
170     class money_get;
171   template<typename _CharT, typename _OutIter = ostreambuf_iterator<_CharT> >
172     class money_put;
173 _GLIBCXX_END_LDBL_NAMESPACE
174   template<typename _CharT, bool _Intl = false>
175     class moneypunct;
176   template<typename _CharT, bool _Intl = false>
177     class moneypunct_byname;
178
179   // 22.2.7 message retrieval
180   class messages_base;
181   template<typename _CharT>
182     class messages;
183   template<typename _CharT>
184     class messages_byname;
185
186 _GLIBCXX_END_NAMESPACE
187
188 #endif