1 // Locale support -*- C++ -*-
3 // Copyright (C) 1999, 2000, 2001, 2002, 2003 Free Software Foundation, Inc.
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
8 // Free Software Foundation; either version 2, or (at your option)
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.
16 // You should have received a copy of the GNU General Public License along
17 // with this library; see the file COPYING. If not, write to the Free
18 // Software Foundation, 59 Temple Place - Suite 330, Boston, MA 02111-1307,
21 // As a special exception, you may use this file as part of a free software
22 // library without restriction. Specifically, if other files instantiate
23 // templates or use macros or inline functions from this file, or you compile
24 // this file and link it with other files to produce an executable, this
25 // file does not by itself cause the resulting executable to be covered by
26 // the GNU General Public License. This exception does not however
27 // invalidate any other reasons why the executable file might be covered by
28 // the GNU General Public License.
31 // ISO C++ 14882: 22.1 Locales
41 // moneypunct, money_get, and money_put
42 template class moneypunct<char, false>;
43 template class moneypunct<char, true>;
44 template struct __moneypunct_cache<char>;
45 template class moneypunct_byname<char, false>;
46 template class moneypunct_byname<char, true>;
47 template class money_get<char, istreambuf_iterator<char> >;
48 template class money_put<char, ostreambuf_iterator<char> >;
50 #ifdef _GLIBCXX_USE_WCHAR_T
51 template class moneypunct<wchar_t, false>;
52 template class moneypunct<wchar_t, true>;
53 template struct __moneypunct_cache<wchar_t>;
54 template class moneypunct_byname<wchar_t, false>;
55 template class moneypunct_byname<wchar_t, true>;
56 template class money_get<wchar_t, istreambuf_iterator<wchar_t> >;
57 template class money_put<wchar_t, ostreambuf_iterator<wchar_t> >;
60 // numpunct, numpunct_byname, num_get, and num_put
61 template class numpunct<char>;
62 template struct __numpunct_cache<char>;
63 template class numpunct_byname<char>;
64 template class num_get<char, istreambuf_iterator<char> >;
65 template class num_put<char, ostreambuf_iterator<char> >;
67 ostreambuf_iterator<char>
68 num_put<char, ostreambuf_iterator<char> >::
69 _M_insert_int(ostreambuf_iterator<char>, ios_base&, char,
73 ostreambuf_iterator<char>
74 num_put<char, ostreambuf_iterator<char> >::
75 _M_insert_int(ostreambuf_iterator<char>, ios_base&, char,
78 #ifdef _GLIBCXX_USE_LONG_LONG
80 ostreambuf_iterator<char>
81 num_put<char, ostreambuf_iterator<char> >::
82 _M_insert_int(ostreambuf_iterator<char>, ios_base&, char,
86 ostreambuf_iterator<char>
87 num_put<char, ostreambuf_iterator<char> >::
88 _M_insert_int(ostreambuf_iterator<char>, ios_base&, char,
89 unsigned long long) const;
93 ostreambuf_iterator<char>
94 num_put<char, ostreambuf_iterator<char> >::
95 _M_insert_float(ostreambuf_iterator<char>, ios_base&, char, char,
99 ostreambuf_iterator<char>
100 num_put<char, ostreambuf_iterator<char> >::
101 _M_insert_float(ostreambuf_iterator<char>, ios_base&, char, char,
104 #ifdef _GLIBCXX_USE_WCHAR_T
105 template class numpunct<wchar_t>;
106 template struct __numpunct_cache<wchar_t>;
107 template class numpunct_byname<wchar_t>;
108 template class num_get<wchar_t, istreambuf_iterator<wchar_t> >;
109 template class num_put<wchar_t, ostreambuf_iterator<wchar_t> >;
112 ostreambuf_iterator<wchar_t>
113 num_put<wchar_t, ostreambuf_iterator<wchar_t> >::
114 _M_insert_int(ostreambuf_iterator<wchar_t>, ios_base&, wchar_t,
118 ostreambuf_iterator<wchar_t>
119 num_put<wchar_t, ostreambuf_iterator<wchar_t> >::
120 _M_insert_int(ostreambuf_iterator<wchar_t>, ios_base&, wchar_t,
121 unsigned long) const;
123 #ifdef _GLIBCXX_USE_LONG_LONG
125 ostreambuf_iterator<wchar_t>
126 num_put<wchar_t, ostreambuf_iterator<wchar_t> >::
127 _M_insert_int(ostreambuf_iterator<wchar_t>, ios_base&, wchar_t,
131 ostreambuf_iterator<wchar_t>
132 num_put<wchar_t, ostreambuf_iterator<wchar_t> >::
133 _M_insert_int(ostreambuf_iterator<wchar_t>, ios_base&, wchar_t,
134 unsigned long long) const;
138 ostreambuf_iterator<wchar_t>
139 num_put<wchar_t, ostreambuf_iterator<wchar_t> >::
140 _M_insert_float(ostreambuf_iterator<wchar_t>, ios_base&, wchar_t, char,
144 ostreambuf_iterator<wchar_t>
145 num_put<wchar_t, ostreambuf_iterator<wchar_t> >::
146 _M_insert_float(ostreambuf_iterator<wchar_t>, ios_base&, wchar_t, char,
150 // time_get and time_put
151 template class __timepunct<char>;
152 template struct __timepunct_cache<char>;
153 template class time_put<char, ostreambuf_iterator<char> >;
154 template class time_put_byname<char, ostreambuf_iterator<char> >;
155 template class time_get<char, istreambuf_iterator<char> >;
156 template class time_get_byname<char, istreambuf_iterator<char> >;
158 #ifdef _GLIBCXX_USE_WCHAR_T
159 template class __timepunct<wchar_t>;
160 template struct __timepunct_cache<wchar_t>;
161 template class time_put<wchar_t, ostreambuf_iterator<wchar_t> >;
162 template class time_put_byname<wchar_t, ostreambuf_iterator<wchar_t> >;
163 template class time_get<wchar_t, istreambuf_iterator<wchar_t> >;
164 template class time_get_byname<wchar_t, istreambuf_iterator<wchar_t> >;
168 template class messages<char>;
169 template class messages_byname<char>;
170 #ifdef _GLIBCXX_USE_WCHAR_T
171 template class messages<wchar_t>;
172 template class messages_byname<wchar_t>;
176 inline template class __ctype_abstract_base<char>;
177 template class ctype_byname<char>;
178 #ifdef _GLIBCXX_USE_WCHAR_T
179 inline template class __ctype_abstract_base<wchar_t>;
180 template class ctype_byname<wchar_t>;
184 inline template class __codecvt_abstract_base<char, char, mbstate_t>;
185 template class codecvt_byname<char, char, mbstate_t>;
186 #ifdef _GLIBCXX_USE_WCHAR_T
187 inline template class __codecvt_abstract_base<wchar_t, char, mbstate_t>;
188 template class codecvt_byname<wchar_t, char, mbstate_t>;
192 template class collate<char>;
193 template class collate_byname<char>;
194 #ifdef _GLIBCXX_USE_WCHAR_T
195 template class collate<wchar_t>;
196 template class collate_byname<wchar_t>;
200 // NB: use_facet<ctype> is specialized
202 const codecvt<char, char, mbstate_t>&
203 use_facet<codecvt<char, char, mbstate_t> >(const locale&);
207 use_facet<collate<char> >(const locale&);
210 const numpunct<char>&
211 use_facet<numpunct<char> >(const locale&);
215 use_facet<num_put<char> >(const locale&);
219 use_facet<num_get<char> >(const locale&);
222 const moneypunct<char, true>&
223 use_facet<moneypunct<char, true> >(const locale&);
226 const moneypunct<char, false>&
227 use_facet<moneypunct<char, false> >(const locale&);
230 const money_put<char>&
231 use_facet<money_put<char> >(const locale&);
234 const money_get<char>&
235 use_facet<money_get<char> >(const locale&);
238 const __timepunct<char>&
239 use_facet<__timepunct<char> >(const locale&);
242 const time_put<char>&
243 use_facet<time_put<char> >(const locale&);
246 const time_get<char>&
247 use_facet<time_get<char> >(const locale&);
250 const messages<char>&
251 use_facet<messages<char> >(const locale&);
253 #ifdef _GLIBCXX_USE_WCHAR_T
255 const codecvt<wchar_t, char, mbstate_t>&
256 use_facet<codecvt<wchar_t, char, mbstate_t> >(locale const&);
259 const collate<wchar_t>&
260 use_facet<collate<wchar_t> >(const locale&);
263 const numpunct<wchar_t>&
264 use_facet<numpunct<wchar_t> >(const locale&);
267 const num_put<wchar_t>&
268 use_facet<num_put<wchar_t> >(const locale&);
271 const num_get<wchar_t>&
272 use_facet<num_get<wchar_t> >(const locale&);
275 const moneypunct<wchar_t, true>&
276 use_facet<moneypunct<wchar_t, true> >(const locale&);
279 const moneypunct<wchar_t, false>&
280 use_facet<moneypunct<wchar_t, false> >(const locale&);
283 const money_put<wchar_t>&
284 use_facet<money_put<wchar_t> >(const locale&);
287 const money_get<wchar_t>&
288 use_facet<money_get<wchar_t> >(const locale&);
291 const __timepunct<wchar_t>&
292 use_facet<__timepunct<wchar_t> >(const locale&);
295 const time_put<wchar_t>&
296 use_facet<time_put<wchar_t> >(const locale&);
299 const time_get<wchar_t>&
300 use_facet<time_get<wchar_t> >(const locale&);
303 const messages<wchar_t>&
304 use_facet<messages<wchar_t> >(const locale&);
310 has_facet<ctype<char> >(const locale&);
314 has_facet<codecvt<char, char, mbstate_t> >(const locale&);
318 has_facet<collate<char> >(const locale&);
322 has_facet<numpunct<char> >(const locale&);
326 has_facet<num_put<char> >(const locale&);
330 has_facet<num_get<char> >(const locale&);
334 has_facet<moneypunct<char> >(const locale&);
338 has_facet<money_put<char> >(const locale&);
342 has_facet<money_get<char> >(const locale&);
346 has_facet<__timepunct<char> >(const locale&);
350 has_facet<time_put<char> >(const locale&);
354 has_facet<time_get<char> >(const locale&);
358 has_facet<messages<char> >(const locale&);
360 #ifdef _GLIBCXX_USE_WCHAR_T
363 has_facet<ctype<wchar_t> >(const locale&);
367 has_facet<codecvt<wchar_t, char, mbstate_t> >(const locale&);
371 has_facet<collate<wchar_t> >(const locale&);
375 has_facet<numpunct<wchar_t> >(const locale&);
379 has_facet<num_put<wchar_t> >(const locale&);
383 has_facet<num_get<wchar_t> >(const locale&);
387 has_facet<moneypunct<wchar_t> >(const locale&);
391 has_facet<money_put<wchar_t> >(const locale&);
395 has_facet<money_get<wchar_t> >(const locale&);
399 has_facet<__timepunct<wchar_t> >(const locale&);
403 has_facet<time_put<wchar_t> >(const locale&);
407 has_facet<time_get<wchar_t> >(const locale&);
411 has_facet<messages<wchar_t> >(const locale&);
417 __add_grouping<char>(char*, char, char const*, char const*,
418 char const*, char const*);
422 __verify_grouping<char>(const basic_string<char>&, basic_string<char>&);
424 template class __pad<char, char_traits<char> >;
426 #ifdef _GLIBCXX_USE_WCHAR_T
429 __add_grouping<wchar_t>(wchar_t*, wchar_t, char const*, char const*,
430 wchar_t const*, wchar_t const*);
433 __verify_grouping<wchar_t>(const basic_string<wchar_t>&,
434 basic_string<wchar_t>&);
436 template class __pad<wchar_t, char_traits<wchar_t> >;
441 __convert_from_v(char*, const int, const char*, double,
442 const __c_locale&, int);
446 __convert_from_v(char*, const int, const char*, long double,
447 const __c_locale&, int);
451 __convert_from_v(char*, const int, const char*, long,
452 const __c_locale&, int);
456 __convert_from_v(char*, const int, const char*, unsigned long,
457 const __c_locale&, int);
459 #ifdef _GLIBCXX_USE_LONG_LONG
462 __convert_from_v(char*, const int, const char*, long long,
463 const __c_locale&, int);
467 __convert_from_v(char*, const int, const char*, unsigned long long,
468 const __c_locale&, int);
473 __int_to_char(char*, const int, unsigned long, const char*,
474 ios_base::fmtflags, bool);
476 #ifdef _GLIBCXX_USE_WCHAR_T
479 __int_to_char(wchar_t*, const int, unsigned long, const wchar_t*,
480 ios_base::fmtflags, bool);
483 #ifdef _GLIBCXX_USE_LONG_LONG
486 __int_to_char(char*, const int, unsigned long long, const char*,
487 ios_base::fmtflags, bool);
489 #ifdef _GLIBCXX_USE_WCHAR_T
492 __int_to_char(wchar_t*, const int, unsigned long long, const wchar_t*,
493 ios_base::fmtflags, bool);