]>
gcc.gnu.org Git - gcc.git/blob - libstdc++-v3/src/locale-inst.cc
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 class moneypunct_byname
<char, false>;
45 template class moneypunct_byname
<char, true>;
46 template class money_get
<char, istreambuf_iterator
<char> >;
47 template class money_put
<char, ostreambuf_iterator
<char> >;
49 #ifdef _GLIBCPP_USE_WCHAR_T
50 template class moneypunct
<wchar_t, false>;
51 template class moneypunct
<wchar_t, true>;
52 template class moneypunct_byname
<wchar_t, false>;
53 template class moneypunct_byname
<wchar_t, true>;
54 template class money_get
<wchar_t, istreambuf_iterator
<wchar_t> >;
55 template class money_put
<wchar_t, ostreambuf_iterator
<wchar_t> >;
58 // numpunct, numpunct_byname, num_get, and num_put
59 template class numpunct
<char>;
60 template class numpunct_byname
<char>;
61 template class num_get
<char, istreambuf_iterator
<char> >;
62 template class num_put
<char, ostreambuf_iterator
<char> >;
64 ostreambuf_iterator
<char>
65 num_put
<char, ostreambuf_iterator
<char> >::
66 _M_convert_int(ostreambuf_iterator
<char>, ios_base
&, char,
70 ostreambuf_iterator
<char>
71 num_put
<char, ostreambuf_iterator
<char> >::
72 _M_convert_int(ostreambuf_iterator
<char>, ios_base
&, char,
75 #ifdef _GLIBCPP_USE_LONG_LONG
77 ostreambuf_iterator
<char>
78 num_put
<char, ostreambuf_iterator
<char> >::
79 _M_convert_int(ostreambuf_iterator
<char>, ios_base
&, char,
83 ostreambuf_iterator
<char>
84 num_put
<char, ostreambuf_iterator
<char> >::
85 _M_convert_int(ostreambuf_iterator
<char>, ios_base
&, char,
86 unsigned long long) const;
90 ostreambuf_iterator
<char>
91 num_put
<char, ostreambuf_iterator
<char> >::
92 _M_convert_float(ostreambuf_iterator
<char>, ios_base
&, char, char,
96 ostreambuf_iterator
<char>
97 num_put
<char, ostreambuf_iterator
<char> >::
98 _M_convert_float(ostreambuf_iterator
<char>, ios_base
&, char, char,
101 #ifdef _GLIBCPP_USE_WCHAR_T
102 template class numpunct
<wchar_t>;
103 template class numpunct_byname
<wchar_t>;
104 template class num_get
<wchar_t, istreambuf_iterator
<wchar_t> >;
105 template class num_put
<wchar_t, ostreambuf_iterator
<wchar_t> >;
108 ostreambuf_iterator
<wchar_t>
109 num_put
<wchar_t, ostreambuf_iterator
<wchar_t> >::
110 _M_convert_int(ostreambuf_iterator
<wchar_t>, ios_base
&, wchar_t,
114 ostreambuf_iterator
<wchar_t>
115 num_put
<wchar_t, ostreambuf_iterator
<wchar_t> >::
116 _M_convert_int(ostreambuf_iterator
<wchar_t>, ios_base
&, wchar_t,
117 unsigned long) const;
119 #ifdef _GLIBCPP_USE_LONG_LONG
121 ostreambuf_iterator
<wchar_t>
122 num_put
<wchar_t, ostreambuf_iterator
<wchar_t> >::
123 _M_convert_int(ostreambuf_iterator
<wchar_t>, ios_base
&, wchar_t,
127 ostreambuf_iterator
<wchar_t>
128 num_put
<wchar_t, ostreambuf_iterator
<wchar_t> >::
129 _M_convert_int(ostreambuf_iterator
<wchar_t>, ios_base
&, wchar_t,
130 unsigned long long) const;
134 ostreambuf_iterator
<wchar_t>
135 num_put
<wchar_t, ostreambuf_iterator
<wchar_t> >::
136 _M_convert_float(ostreambuf_iterator
<wchar_t>, ios_base
&, wchar_t, char,
140 ostreambuf_iterator
<wchar_t>
141 num_put
<wchar_t, ostreambuf_iterator
<wchar_t> >::
142 _M_convert_float(ostreambuf_iterator
<wchar_t>, ios_base
&, wchar_t, char,
146 // time_get and time_put
147 template class __timepunct
<char>;
148 template class time_put
<char, ostreambuf_iterator
<char> >;
149 template class time_put_byname
<char, ostreambuf_iterator
<char> >;
150 template class time_get
<char, istreambuf_iterator
<char> >;
151 template class time_get_byname
<char, istreambuf_iterator
<char> >;
153 #ifdef _GLIBCPP_USE_WCHAR_T
154 template class __timepunct
<wchar_t>;
155 template class time_put
<wchar_t, ostreambuf_iterator
<wchar_t> >;
156 template class time_put_byname
<wchar_t, ostreambuf_iterator
<wchar_t> >;
157 template class time_get
<wchar_t, istreambuf_iterator
<wchar_t> >;
158 template class time_get_byname
<wchar_t, istreambuf_iterator
<wchar_t> >;
162 template class messages
<char>;
163 template class messages_byname
<char>;
164 #ifdef _GLIBCPP_USE_WCHAR_T
165 template class messages
<wchar_t>;
166 template class messages_byname
<wchar_t>;
170 inline template class __ctype_abstract_base
<char>;
171 template class ctype_byname
<char>;
172 #ifdef _GLIBCPP_USE_WCHAR_T
173 inline template class __ctype_abstract_base
<wchar_t>;
174 template class ctype_byname
<wchar_t>;
178 inline template class __codecvt_abstract_base
<char, char, mbstate_t>;
179 template class codecvt_byname
<char, char, mbstate_t>;
180 #ifdef _GLIBCPP_USE_WCHAR_T
181 inline template class __codecvt_abstract_base
<wchar_t, char, mbstate_t>;
182 template class codecvt_byname
<wchar_t, char, mbstate_t>;
186 template class collate
<char>;
187 template class collate_byname
<char>;
188 #ifdef _GLIBCPP_USE_WCHAR_T
189 template class collate
<wchar_t>;
190 template class collate_byname
<wchar_t>;
194 // NB: use_facet<ctype> is specialized
196 const codecvt
<char, char, mbstate_t>&
197 use_facet
<codecvt
<char, char, mbstate_t> >(const locale
&);
201 use_facet
<collate
<char> >(const locale
&);
204 const numpunct
<char>&
205 use_facet
<numpunct
<char> >(const locale
&);
209 use_facet
<num_put
<char> >(const locale
&);
213 use_facet
<num_get
<char> >(const locale
&);
216 const moneypunct
<char, true>&
217 use_facet
<moneypunct
<char, true> >(const locale
&);
220 const moneypunct
<char, false>&
221 use_facet
<moneypunct
<char, false> >(const locale
&);
224 const money_put
<char>&
225 use_facet
<money_put
<char> >(const locale
&);
228 const money_get
<char>&
229 use_facet
<money_get
<char> >(const locale
&);
232 const __timepunct
<char>&
233 use_facet
<__timepunct
<char> >(const locale
&);
236 const time_put
<char>&
237 use_facet
<time_put
<char> >(const locale
&);
240 const time_get
<char>&
241 use_facet
<time_get
<char> >(const locale
&);
244 const messages
<char>&
245 use_facet
<messages
<char> >(const locale
&);
247 #ifdef _GLIBCPP_USE_WCHAR_T
249 const codecvt
<wchar_t, char, mbstate_t>&
250 use_facet
<codecvt
<wchar_t, char, mbstate_t> >(locale
const&);
253 const collate
<wchar_t>&
254 use_facet
<collate
<wchar_t> >(const locale
&);
257 const numpunct
<wchar_t>&
258 use_facet
<numpunct
<wchar_t> >(const locale
&);
261 const num_put
<wchar_t>&
262 use_facet
<num_put
<wchar_t> >(const locale
&);
265 const num_get
<wchar_t>&
266 use_facet
<num_get
<wchar_t> >(const locale
&);
269 const moneypunct
<wchar_t, true>&
270 use_facet
<moneypunct
<wchar_t, true> >(const locale
&);
273 const moneypunct
<wchar_t, false>&
274 use_facet
<moneypunct
<wchar_t, false> >(const locale
&);
277 const money_put
<wchar_t>&
278 use_facet
<money_put
<wchar_t> >(const locale
&);
281 const money_get
<wchar_t>&
282 use_facet
<money_get
<wchar_t> >(const locale
&);
285 const __timepunct
<wchar_t>&
286 use_facet
<__timepunct
<wchar_t> >(const locale
&);
289 const time_put
<wchar_t>&
290 use_facet
<time_put
<wchar_t> >(const locale
&);
293 const time_get
<wchar_t>&
294 use_facet
<time_get
<wchar_t> >(const locale
&);
297 const messages
<wchar_t>&
298 use_facet
<messages
<wchar_t> >(const locale
&);
304 has_facet
<ctype
<char> >(const locale
&);
308 has_facet
<codecvt
<char, char, mbstate_t> >(const locale
&);
312 has_facet
<collate
<char> >(const locale
&);
316 has_facet
<numpunct
<char> >(const locale
&);
320 has_facet
<num_put
<char> >(const locale
&);
324 has_facet
<num_get
<char> >(const locale
&);
328 has_facet
<moneypunct
<char> >(const locale
&);
332 has_facet
<money_put
<char> >(const locale
&);
336 has_facet
<money_get
<char> >(const locale
&);
340 has_facet
<__timepunct
<char> >(const locale
&);
344 has_facet
<time_put
<char> >(const locale
&);
348 has_facet
<time_get
<char> >(const locale
&);
352 has_facet
<messages
<char> >(const locale
&);
354 #ifdef _GLIBCPP_USE_WCHAR_T
357 has_facet
<ctype
<wchar_t> >(const locale
&);
361 has_facet
<codecvt
<wchar_t, char, mbstate_t> >(const locale
&);
365 has_facet
<collate
<wchar_t> >(const locale
&);
369 has_facet
<numpunct
<wchar_t> >(const locale
&);
373 has_facet
<num_put
<wchar_t> >(const locale
&);
377 has_facet
<num_get
<wchar_t> >(const locale
&);
381 has_facet
<moneypunct
<wchar_t> >(const locale
&);
385 has_facet
<money_put
<wchar_t> >(const locale
&);
389 has_facet
<money_get
<wchar_t> >(const locale
&);
393 has_facet
<__timepunct
<wchar_t> >(const locale
&);
397 has_facet
<time_put
<wchar_t> >(const locale
&);
401 has_facet
<time_get
<wchar_t> >(const locale
&);
405 has_facet
<messages
<wchar_t> >(const locale
&);
411 __add_grouping
<char>(char*, char, char const*, char const*,
412 char const*, char const*);
416 __verify_grouping
<char>(const basic_string
<char>&, basic_string
<char>&);
418 template class __pad
<char, char_traits
<char> >;
420 #ifdef _GLIBCPP_USE_WCHAR_T
423 __add_grouping
<wchar_t>(wchar_t*, wchar_t, char const*, char const*,
424 wchar_t const*, wchar_t const*);
427 __verify_grouping
<wchar_t>(const basic_string
<wchar_t>&,
428 basic_string
<wchar_t>&);
430 template class __pad
<wchar_t, char_traits
<wchar_t> >;
435 __convert_from_v(char*, const int, const char*, double,
436 const __c_locale
&, int);
440 __convert_from_v(char*, const int, const char*, long double,
441 const __c_locale
&, int);
445 __convert_from_v(char*, const int, const char*, long,
446 const __c_locale
&, int);
450 __convert_from_v(char*, const int, const char*, unsigned long,
451 const __c_locale
&, int);
453 #ifdef _GLIBCPP_USE_LONG_LONG
456 __convert_from_v(char*, const int, const char*, long long,
457 const __c_locale
&, int);
461 __convert_from_v(char*, const int, const char*, unsigned long long,
462 const __c_locale
&, int);
467 __int_to_char(char*, const int, unsigned long, const char*,
468 ios_base::fmtflags
, bool);
470 #ifdef _GLIBCPP_USE_WCHAR_T
473 __int_to_char(wchar_t*, const int, unsigned long, const wchar_t*,
474 ios_base::fmtflags
, bool);
477 #ifdef _GLIBCPP_USE_LONG_LONG
480 __int_to_char(char*, const int, unsigned long long, const char*,
481 ios_base::fmtflags
, bool);
483 #ifdef _GLIBCPP_USE_WCHAR_T
486 __int_to_char(wchar_t*, const int, unsigned long long, const wchar_t*,
487 ios_base::fmtflags
, bool);
This page took 0.063442 seconds and 6 git commands to generate.