2000-04-21 22:33:34 +02:00
|
|
|
// Locale support -*- C++ -*-
|
|
|
|
|
locale_facets.h (class money_base): Add { _S_minus, _S_zero, _S_end } enum, _S_atoms.
2004-02-21 Paolo Carlini <pcarlini@suse.de>
* include/bits/locale_facets.h (class money_base): Add { _S_minus,
_S_zero, _S_end } enum, _S_atoms.
(struct __moneypunct_cache<>): Parameterize on _Intl too; add
_M_grouping_size, _M_curr_symbol_size, _M_positive_sign_size,
_M_negative_sign_size, _M_atoms; tweak constructor consistently.
(__moneypunct_cache<>::~__moneypunct_cache): Update.
(__moneypunct_cache<>::_M_cache): Fill the cache.
(class moneypunct): Tweak __cache_type typedef.
(class money_put): Inherit from money_base too; tweak declaration
of _M_insert, now parameterized on _Intl.
* include/bits/locale_facets.tcc
(struct __use_cache<__moneypunct_cache<_CharT, _Intl> >): New.
(money_put<>::_M_insert): Update definition to use the cache;
call reserve on __res to avoid multiple reallocations.
(money_put<>::do_put(long double),
money_put<>::do_put(const string_type&): Update calls of _M_insert.
* config/locale/generic/monetary_members.cc
(moneypunct<char, true>::_M_initialize_moneypunct,
moneypunct<char, false>::_M_initialize_moneypunct,
moneypunct<wchar_t, true>::_M_initialize_moneypunct,
moneypunct<wchar_t, false>::_M_initialize_moneypunct): Update.
* config/locale/gnu/monetary_members.cc: Likewise.
* config/locale/gnu/monetary_members.cc
(moneypunct<wchar_t, true>::~moneypunct(),
moneypunct<wchar_t, false>::~moneypunct()): Likewise.
* src/globals_locale.cc: Tweak fake_money_cache_c.
* src/locale-inst.cc: Add instantiations for
money_put::_M_insert<false> and money_put::_M_insert<true> and
__moneypunct_cache<C, false>, __moneypunct_cache<C, true>.
* src/locale_facets.cc: Define money_base::_S_atoms.
* src/locale_init.cc: Update placement new of
__moneypunct_cache<char, false>, __moneypunct_cache<char, true>,
__moneypunct_cache<wchar_t, false>, __moneypunct_cache<wchar_T, true>.
* config/locale/generic/numeric_members.cc: Clean up.
* config/locale/gnu/numeric_members.cc: Likewise.
* testsuite/22_locale/money_put/put/char/1.cc: Likewise.
* testsuite/22_locale/money_put/put/char/2.cc: Likewise.
* testsuite/22_locale/money_put/put/char/3.cc: Likewise.
* testsuite/22_locale/money_put/put/wchar_t/1.cc: Likewise.
* testsuite/22_locale/money_put/put/wchar_t/2.cc: Likewise.
* testsuite/22_locale/money_put/put/wchar_t/3.cc: Likewise.
From-SVN: r78216
2004-02-21 10:26:35 +01:00
|
|
|
// Copyright (C) 1999, 2000, 2001, 2002, 2003, 2004
|
|
|
|
// Free Software Foundation, Inc.
|
2000-04-21 22:33:34 +02:00
|
|
|
//
|
|
|
|
// This file is part of the GNU ISO C++ Library. This library is free
|
|
|
|
// software; you can redistribute it and/or modify it under the
|
|
|
|
// terms of the GNU General Public License as published by the
|
|
|
|
// Free Software Foundation; either version 2, or (at your option)
|
|
|
|
// any later version.
|
|
|
|
|
|
|
|
// This library is distributed in the hope that it will be useful,
|
|
|
|
// but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
|
|
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
|
|
// GNU General Public License for more details.
|
|
|
|
|
|
|
|
// You should have received a copy of the GNU General Public License along
|
|
|
|
// with this library; see the file COPYING. If not, write to the Free
|
2005-08-17 04:28:44 +02:00
|
|
|
// Software Foundation, 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301,
|
2000-04-21 22:33:34 +02:00
|
|
|
// USA.
|
|
|
|
|
|
|
|
// As a special exception, you may use this file as part of a free software
|
|
|
|
// library without restriction. Specifically, if other files instantiate
|
|
|
|
// templates or use macros or inline functions from this file, or you compile
|
|
|
|
// this file and link it with other files to produce an executable, this
|
|
|
|
// file does not by itself cause the resulting executable to be covered by
|
|
|
|
// the GNU General Public License. This exception does not however
|
|
|
|
// invalidate any other reasons why the executable file might be covered by
|
|
|
|
// the GNU General Public License.
|
|
|
|
|
|
|
|
//
|
|
|
|
// ISO C++ 14882: 22.1 Locales
|
|
|
|
//
|
|
|
|
|
Makefile.am (std_headers): Remove cXXX from list.
2002-01-04 Benjamin Kosnik <bkoz@redhat.com>
* include/Makefile.am (std_headers): Remove cXXX from list.
(c_base_srcdir): No bits subdirectory.
(c_base_builddir): Same.
(c_base_headers): Adjust names, add ciso646.
(bits_headers): Remove std_xxx.h headers.
* include/Makefile.in: Regenerate.
* include/ext/iterator: Adjust includes.
* include/ext/ropeimpl.h: Same.
* include/ext/stl_hash_fun.h: Same.
* include/ext/algorithm: Same.
* include/backward/bvector.h: Adjust includes.
* include/backward/vector.h: Same.
* include/backward/strstream: Same.
* include/backward/streambuf.h: Same.
* include/backward/stack.h: Same.
* include/backward/set.h: Same.
* include/backward/queue.h: Same.
* include/backward/multiset.h: Same.
* include/backward/multimap.h: Same.
* include/backward/map.h: Same.
* include/backward/list.h: Same.
* include/backward/iterator.h: Same.
* include/backward/iostream.h: Same.
* include/backward/iomanip.h: Same.
* include/backward/fstream.h: Same.
* include/backward/deque.h: Same.
* include/backward/complex.h: Same.
* include/bits/std_algorithm.h: Move to...
* include/std/algorithm: ...here.
* include/bits/std_iosfwd.h, std_locale.h, std_stack.h,
std_bitset.h, std_ios.h, std_map.h, std_stdexcept.h,
std_complex.h, std_iostream.h, std_memory.h, std_streambuf.h,
std_deque.h, std_istream.h, std_numeric.h, std_string.h,
std_fstream.h, std_ostream.h, std_utility.h, std_iterator.h,
std_queue.h, std_valarray.h, std_functional.h, std_limits.h,
std_set.h, std_vector.h, std_iomanip.h, std_list.h, std_sstream.h:
Same.
* include/c_std/bits/std_cassert.h: Move to...
* include/c_std/cassert: Here.
* include/c_std/std_cctype.h, std_cerrno.h, std_cfloat.h,
std_climits.h, std_clocale.h, std_cmath.h, std_csetjmp.h,
std_csignal.h, std_cstdarg.h, std_cstddef.h, std_cstdio.h,
std_cstdlib.h, std_cstring.h, std_ctime.h, std_cwchar.h,
std_cwctype.h: Same.
* include/c_std/cmath: Adjust cmath.tcc include.
* include/c_std/cstdlib: Adjust includes.
* include/c_std/cwchar: Same.
* include/c_std/ctime: Same.
* include/c_std/cstring: Same.
* include/c_std/cstdio: Same.
* include/c_std/bits: Remove directory.
* include/c/bits/std_cassert.h: Move to...
* include/c/cassert: Here.
* include/c/std_cctype.h, std_cerrno.h, std_cfloat.h,
std_climits.h, std_clocale.h, std_cmath.h, std_csetjmp.h,
std_csignal.h, std_cstdarg.h, std_cstddef.h, std_cstdio.h,
std_cstdlib.h, std_cstring.h, std_ctime.h, std_cwchar.h,
std_cwctype.h: Same.
* include/c/bits: Remove directory.
* include/std/cwctype: Remove.
* include/std/cwchar: Remove.
* include/std/ctime: Remove.
* include/std/cstring: Remove.
* include/std/cstdlib: Remove.
* include/std/cstdio: Remove.
* include/std/cstddef: Remove.
* include/std/cstdarg: Remove.
* include/std/csignal: Remove.
* include/std/csetjmp: Remove.
* include/std/cmath: Remove.
* include/std/clocale: Remove.
* include/std/climits: Remove.
* include/std/ciso646: Remove.
* include/std/cfloat: Remove.
* include/std/cerrno: Remove.
* include/std/cctype: Remove.
* include/std/cassert: Remove.
* include/bits/fpos.h: Adjust includes, removing <bits/std_xxx.h>
files and subsituting <.xxx>
* include/bits/valarray_array.h: Same.
* include/bits/stl_uninitialized.h: Same.
* include/bits/stl_alloc.h: Same.
* include/bits/stl_algobase.h: Same.
* include/bits/sstream.tcc: Same.
* include/bits/pthread_allocimpl.h: Same.
* include/bits/ostream.tcc: Same.
* include/bits/localefwd.h: Same.
* include/bits/locale_facets.tcc: Same.
* include/bits/locale_facets.h: Same.
* include/bits/istream.tcc: Same.
* include/bits/char_traits.h: Same.
* include/bits/boost_concept_check.h: Same.
* include/bits/basic_file.h: Same.
* include/std/bitset: Same.
* include/std/complex: Same.
* include/std/fstream: Same.
* include/std/functional: Same.
* include/std/ios: Same.
* include/std/iostream: Same.
* include/std/ostream: Same.
* include/std/sstream: Same.
* include/std/streambuf: Same.
* include/std/string: Same.
* include/std/iterator: Same.
* include/std/valarray: Same.
* src/ios.cc: Adjust includes.
* src/valarray-inst.cc: Same.
* src/string-inst.cc: Same.
* src/stl-inst.cc: Same.
* src/stdexcept.cc: Same.
* src/misc-inst.cc: Same.
* src/localename.cc: Same.
* src/locale-inst.cc: Same.
* src/locale.cc: Same.
* src/limits.cc: Same.
* src/concept-inst.cc: Same.
* src/complex_io.cc: Same.
* src/codecvt.cc: Same.
* src/bitset.cc: Same.
* src/cmath.cc: Same.
From-SVN: r48544
2002-01-04 22:27:36 +01:00
|
|
|
#include <locale>
|
2000-04-21 22:33:34 +02:00
|
|
|
|
2003-10-17 16:47:30 +02:00
|
|
|
// Instantiation configuration.
|
|
|
|
#ifndef C
|
|
|
|
# define C char
|
|
|
|
#endif
|
|
|
|
|
2001-03-04 22:34:02 +01:00
|
|
|
namespace std
|
|
|
|
{
|
2000-04-21 22:33:34 +02:00
|
|
|
// moneypunct, money_get, and money_put
|
2003-10-17 16:47:30 +02:00
|
|
|
template class moneypunct<C, false>;
|
|
|
|
template class moneypunct<C, true>;
|
locale_facets.h (class money_base): Add { _S_minus, _S_zero, _S_end } enum, _S_atoms.
2004-02-21 Paolo Carlini <pcarlini@suse.de>
* include/bits/locale_facets.h (class money_base): Add { _S_minus,
_S_zero, _S_end } enum, _S_atoms.
(struct __moneypunct_cache<>): Parameterize on _Intl too; add
_M_grouping_size, _M_curr_symbol_size, _M_positive_sign_size,
_M_negative_sign_size, _M_atoms; tweak constructor consistently.
(__moneypunct_cache<>::~__moneypunct_cache): Update.
(__moneypunct_cache<>::_M_cache): Fill the cache.
(class moneypunct): Tweak __cache_type typedef.
(class money_put): Inherit from money_base too; tweak declaration
of _M_insert, now parameterized on _Intl.
* include/bits/locale_facets.tcc
(struct __use_cache<__moneypunct_cache<_CharT, _Intl> >): New.
(money_put<>::_M_insert): Update definition to use the cache;
call reserve on __res to avoid multiple reallocations.
(money_put<>::do_put(long double),
money_put<>::do_put(const string_type&): Update calls of _M_insert.
* config/locale/generic/monetary_members.cc
(moneypunct<char, true>::_M_initialize_moneypunct,
moneypunct<char, false>::_M_initialize_moneypunct,
moneypunct<wchar_t, true>::_M_initialize_moneypunct,
moneypunct<wchar_t, false>::_M_initialize_moneypunct): Update.
* config/locale/gnu/monetary_members.cc: Likewise.
* config/locale/gnu/monetary_members.cc
(moneypunct<wchar_t, true>::~moneypunct(),
moneypunct<wchar_t, false>::~moneypunct()): Likewise.
* src/globals_locale.cc: Tweak fake_money_cache_c.
* src/locale-inst.cc: Add instantiations for
money_put::_M_insert<false> and money_put::_M_insert<true> and
__moneypunct_cache<C, false>, __moneypunct_cache<C, true>.
* src/locale_facets.cc: Define money_base::_S_atoms.
* src/locale_init.cc: Update placement new of
__moneypunct_cache<char, false>, __moneypunct_cache<char, true>,
__moneypunct_cache<wchar_t, false>, __moneypunct_cache<wchar_T, true>.
* config/locale/generic/numeric_members.cc: Clean up.
* config/locale/gnu/numeric_members.cc: Likewise.
* testsuite/22_locale/money_put/put/char/1.cc: Likewise.
* testsuite/22_locale/money_put/put/char/2.cc: Likewise.
* testsuite/22_locale/money_put/put/char/3.cc: Likewise.
* testsuite/22_locale/money_put/put/wchar_t/1.cc: Likewise.
* testsuite/22_locale/money_put/put/wchar_t/2.cc: Likewise.
* testsuite/22_locale/money_put/put/wchar_t/3.cc: Likewise.
From-SVN: r78216
2004-02-21 10:26:35 +01:00
|
|
|
template struct __moneypunct_cache<C, false>;
|
|
|
|
template struct __moneypunct_cache<C, true>;
|
2003-10-17 16:47:30 +02:00
|
|
|
template class moneypunct_byname<C, false>;
|
|
|
|
template class moneypunct_byname<C, true>;
|
|
|
|
template class money_get<C, istreambuf_iterator<C> >;
|
|
|
|
template class money_put<C, ostreambuf_iterator<C> >;
|
2004-02-22 12:13:27 +01:00
|
|
|
template
|
|
|
|
istreambuf_iterator<C>
|
|
|
|
money_get<C, istreambuf_iterator<C> >::
|
|
|
|
_M_extract<true>(istreambuf_iterator<C>, istreambuf_iterator<C>,
|
2004-02-27 11:12:01 +01:00
|
|
|
ios_base&, ios_base::iostate&, string&) const;
|
2004-02-22 12:13:27 +01:00
|
|
|
|
|
|
|
template
|
|
|
|
istreambuf_iterator<C>
|
|
|
|
money_get<C, istreambuf_iterator<C> >::
|
|
|
|
_M_extract<false>(istreambuf_iterator<C>, istreambuf_iterator<C>,
|
2004-02-27 11:12:01 +01:00
|
|
|
ios_base&, ios_base::iostate&, string&) const;
|
2004-02-22 12:13:27 +01:00
|
|
|
|
locale_facets.h (class money_base): Add { _S_minus, _S_zero, _S_end } enum, _S_atoms.
2004-02-21 Paolo Carlini <pcarlini@suse.de>
* include/bits/locale_facets.h (class money_base): Add { _S_minus,
_S_zero, _S_end } enum, _S_atoms.
(struct __moneypunct_cache<>): Parameterize on _Intl too; add
_M_grouping_size, _M_curr_symbol_size, _M_positive_sign_size,
_M_negative_sign_size, _M_atoms; tweak constructor consistently.
(__moneypunct_cache<>::~__moneypunct_cache): Update.
(__moneypunct_cache<>::_M_cache): Fill the cache.
(class moneypunct): Tweak __cache_type typedef.
(class money_put): Inherit from money_base too; tweak declaration
of _M_insert, now parameterized on _Intl.
* include/bits/locale_facets.tcc
(struct __use_cache<__moneypunct_cache<_CharT, _Intl> >): New.
(money_put<>::_M_insert): Update definition to use the cache;
call reserve on __res to avoid multiple reallocations.
(money_put<>::do_put(long double),
money_put<>::do_put(const string_type&): Update calls of _M_insert.
* config/locale/generic/monetary_members.cc
(moneypunct<char, true>::_M_initialize_moneypunct,
moneypunct<char, false>::_M_initialize_moneypunct,
moneypunct<wchar_t, true>::_M_initialize_moneypunct,
moneypunct<wchar_t, false>::_M_initialize_moneypunct): Update.
* config/locale/gnu/monetary_members.cc: Likewise.
* config/locale/gnu/monetary_members.cc
(moneypunct<wchar_t, true>::~moneypunct(),
moneypunct<wchar_t, false>::~moneypunct()): Likewise.
* src/globals_locale.cc: Tweak fake_money_cache_c.
* src/locale-inst.cc: Add instantiations for
money_put::_M_insert<false> and money_put::_M_insert<true> and
__moneypunct_cache<C, false>, __moneypunct_cache<C, true>.
* src/locale_facets.cc: Define money_base::_S_atoms.
* src/locale_init.cc: Update placement new of
__moneypunct_cache<char, false>, __moneypunct_cache<char, true>,
__moneypunct_cache<wchar_t, false>, __moneypunct_cache<wchar_T, true>.
* config/locale/generic/numeric_members.cc: Clean up.
* config/locale/gnu/numeric_members.cc: Likewise.
* testsuite/22_locale/money_put/put/char/1.cc: Likewise.
* testsuite/22_locale/money_put/put/char/2.cc: Likewise.
* testsuite/22_locale/money_put/put/char/3.cc: Likewise.
* testsuite/22_locale/money_put/put/wchar_t/1.cc: Likewise.
* testsuite/22_locale/money_put/put/wchar_t/2.cc: Likewise.
* testsuite/22_locale/money_put/put/wchar_t/3.cc: Likewise.
From-SVN: r78216
2004-02-21 10:26:35 +01:00
|
|
|
template
|
|
|
|
ostreambuf_iterator<C>
|
|
|
|
money_put<C, ostreambuf_iterator<C> >::
|
|
|
|
_M_insert<true>(ostreambuf_iterator<C>, ios_base&, C,
|
|
|
|
const string_type&) const;
|
|
|
|
|
|
|
|
template
|
|
|
|
ostreambuf_iterator<C>
|
|
|
|
money_put<C, ostreambuf_iterator<C> >::
|
|
|
|
_M_insert<false>(ostreambuf_iterator<C>, ios_base&, C,
|
|
|
|
const string_type&) const;
|
2000-04-21 22:33:34 +02:00
|
|
|
|
|
|
|
// numpunct, numpunct_byname, num_get, and num_put
|
2003-10-17 16:47:30 +02:00
|
|
|
template class numpunct<C>;
|
|
|
|
template struct __numpunct_cache<C>;
|
|
|
|
template class numpunct_byname<C>;
|
|
|
|
template class num_get<C, istreambuf_iterator<C> >;
|
|
|
|
template class num_put<C, ostreambuf_iterator<C> >;
|
c_locale.cc (__convert_to_v(long&), [...]): Remove.
2003-12-08 Paolo Carlini <pcarlini@suse.de>
* config/locale/generic/c_locale.cc (__convert_to_v(long&),
__convert_to_v(unsigned long&), __convert_to_v(long long&),
__convert_to_v(unsigned long long&): Remove.
(__convert_to_v(float&), __convert_to_v(double&),
__convert_to_v(long double&)): Remove last unused parameter.
* config/locale/gnu/c_locale.cc: Likewise.
* include/bits/locale_facets.h: Likewise.
(num_get::_M_extract_int): Update declaration.
(class __num_base): Tweak _S_ie and _S_iE according to the
_S_atoms_in changes.
* include/bits/locale_facets.tcc (num_get::_M_extract_int):
Provide directly the final _ValueT, not a string: accumulate
the result checking for overflow at each digit.
(num_get::do_get(bool&), num_get::do_get(long&),
num_get::do_get(unsigned short&), num_get::do_get(unsigned int&),
num_get::do_get(unsigned long&), num_get::do_get(long long&),
num_get::do_get(unsigned long long&), num_get::do_get(void*&)):
Use the new _M_extract_int, simplify.
* src/locale-inst.cc (num_get::_M_extract_int(long&),
num_get::_M_extract_int(unsigned short&),
num_get::_M_extract_int(unsigned int&),
num_get::_M_extract_int(unsigned long&),
num_get::_M_extract_int(long long&),
num_get::_M_extract_int(unsigned long long&): Instantiate.
* src/locale_facets.cc (__num_base::_S_atoms_in): Reorder
the chars in the natural order: abcdefABCDEF.
From-SVN: r74423
2003-12-08 16:37:03 +01:00
|
|
|
template
|
|
|
|
istreambuf_iterator<C>
|
|
|
|
num_get<C, istreambuf_iterator<C> >::
|
|
|
|
_M_extract_int(istreambuf_iterator<C>, istreambuf_iterator<C>,
|
|
|
|
ios_base&, ios_base::iostate&,
|
|
|
|
long&) const;
|
|
|
|
|
|
|
|
template
|
|
|
|
istreambuf_iterator<C>
|
|
|
|
num_get<C, istreambuf_iterator<C> >::
|
|
|
|
_M_extract_int(istreambuf_iterator<C>, istreambuf_iterator<C>,
|
|
|
|
ios_base&, ios_base::iostate&,
|
|
|
|
unsigned short&) const;
|
|
|
|
|
|
|
|
template
|
|
|
|
istreambuf_iterator<C>
|
|
|
|
num_get<C, istreambuf_iterator<C> >::
|
|
|
|
_M_extract_int(istreambuf_iterator<C>, istreambuf_iterator<C>,
|
|
|
|
ios_base&, ios_base::iostate&,
|
|
|
|
unsigned int&) const;
|
|
|
|
|
|
|
|
template
|
|
|
|
istreambuf_iterator<C>
|
|
|
|
num_get<C, istreambuf_iterator<C> >::
|
|
|
|
_M_extract_int(istreambuf_iterator<C>, istreambuf_iterator<C>,
|
|
|
|
ios_base&, ios_base::iostate&,
|
|
|
|
unsigned long&) const;
|
|
|
|
|
|
|
|
#ifdef _GLIBCXX_USE_LONG_LONG
|
|
|
|
template
|
|
|
|
istreambuf_iterator<C>
|
|
|
|
num_get<C, istreambuf_iterator<C> >::
|
|
|
|
_M_extract_int(istreambuf_iterator<C>, istreambuf_iterator<C>,
|
|
|
|
ios_base&, ios_base::iostate&,
|
|
|
|
long long&) const;
|
|
|
|
|
|
|
|
template
|
|
|
|
istreambuf_iterator<C>
|
|
|
|
num_get<C, istreambuf_iterator<C> >::
|
|
|
|
_M_extract_int(istreambuf_iterator<C>, istreambuf_iterator<C>,
|
|
|
|
ios_base&, ios_base::iostate&,
|
|
|
|
unsigned long long&) const;
|
|
|
|
#endif
|
|
|
|
|
2003-10-17 16:47:30 +02:00
|
|
|
template
|
|
|
|
ostreambuf_iterator<C>
|
|
|
|
num_put<C, ostreambuf_iterator<C> >::
|
|
|
|
_M_insert_int(ostreambuf_iterator<C>, ios_base&, C,
|
2003-07-17 03:54:44 +02:00
|
|
|
long) const;
|
2001-11-28 05:07:11 +01:00
|
|
|
|
|
|
|
template
|
2003-10-17 16:47:30 +02:00
|
|
|
ostreambuf_iterator<C>
|
|
|
|
num_put<C, ostreambuf_iterator<C> >::
|
|
|
|
_M_insert_int(ostreambuf_iterator<C>, ios_base&, C,
|
2003-07-17 03:54:44 +02:00
|
|
|
unsigned long) const;
|
2001-11-28 05:07:11 +01:00
|
|
|
|
2003-07-05 06:05:45 +02:00
|
|
|
#ifdef _GLIBCXX_USE_LONG_LONG
|
2001-11-28 05:07:11 +01:00
|
|
|
template
|
2003-10-17 16:47:30 +02:00
|
|
|
ostreambuf_iterator<C>
|
|
|
|
num_put<C, ostreambuf_iterator<C> >::
|
|
|
|
_M_insert_int(ostreambuf_iterator<C>, ios_base&, C,
|
2003-07-17 03:54:44 +02:00
|
|
|
long long) const;
|
2001-11-28 05:07:11 +01:00
|
|
|
|
|
|
|
template
|
2003-10-17 16:47:30 +02:00
|
|
|
ostreambuf_iterator<C>
|
|
|
|
num_put<C, ostreambuf_iterator<C> >::
|
|
|
|
_M_insert_int(ostreambuf_iterator<C>, ios_base&, C,
|
2003-07-17 03:54:44 +02:00
|
|
|
unsigned long long) const;
|
2001-11-28 05:07:11 +01:00
|
|
|
#endif
|
|
|
|
|
|
|
|
template
|
2003-10-17 16:47:30 +02:00
|
|
|
ostreambuf_iterator<C>
|
|
|
|
num_put<C, ostreambuf_iterator<C> >::
|
|
|
|
_M_insert_float(ostreambuf_iterator<C>, ios_base&, C, char,
|
2003-07-17 03:54:44 +02:00
|
|
|
double) const;
|
2001-11-28 05:07:11 +01:00
|
|
|
|
|
|
|
template
|
2003-10-17 16:47:30 +02:00
|
|
|
ostreambuf_iterator<C>
|
|
|
|
num_put<C, ostreambuf_iterator<C> >::
|
|
|
|
_M_insert_float(ostreambuf_iterator<C>, ios_base&, C, char,
|
2003-07-17 03:54:44 +02:00
|
|
|
long double) const;
|
2003-02-11 22:55:49 +01:00
|
|
|
|
2000-04-21 22:33:34 +02:00
|
|
|
// time_get and time_put
|
2003-10-17 16:47:30 +02:00
|
|
|
template class __timepunct<C>;
|
|
|
|
template struct __timepunct_cache<C>;
|
|
|
|
template class time_put<C, ostreambuf_iterator<C> >;
|
|
|
|
template class time_put_byname<C, ostreambuf_iterator<C> >;
|
|
|
|
template class time_get<C, istreambuf_iterator<C> >;
|
|
|
|
template class time_get_byname<C, istreambuf_iterator<C> >;
|
2000-04-21 22:33:34 +02:00
|
|
|
|
|
|
|
// messages
|
2003-10-17 16:47:30 +02:00
|
|
|
template class messages<C>;
|
|
|
|
template class messages_byname<C>;
|
2000-04-21 22:33:34 +02:00
|
|
|
|
|
|
|
// ctype
|
2003-10-17 16:47:30 +02:00
|
|
|
inline template class __ctype_abstract_base<C>;
|
|
|
|
template class ctype_byname<C>;
|
2000-04-21 22:33:34 +02:00
|
|
|
|
2000-08-16 06:12:51 +02:00
|
|
|
// codecvt
|
2003-10-17 16:47:30 +02:00
|
|
|
inline template class __codecvt_abstract_base<C, char, mbstate_t>;
|
|
|
|
template class codecvt_byname<C, char, mbstate_t>;
|
2000-08-16 06:12:51 +02:00
|
|
|
|
2000-04-21 22:33:34 +02:00
|
|
|
// collate
|
2003-10-17 16:47:30 +02:00
|
|
|
template class collate<C>;
|
|
|
|
template class collate_byname<C>;
|
2000-04-21 22:33:34 +02:00
|
|
|
|
|
|
|
// use_facet
|
2002-03-08 07:05:21 +01:00
|
|
|
// NB: use_facet<ctype> is specialized
|
2000-04-21 22:33:34 +02:00
|
|
|
template
|
2003-10-17 16:47:30 +02:00
|
|
|
const codecvt<C, char, mbstate_t>&
|
|
|
|
use_facet<codecvt<C, char, mbstate_t> >(const locale&);
|
2001-09-20 10:30:01 +02:00
|
|
|
|
2001-02-07 02:54:21 +01:00
|
|
|
template
|
2003-10-17 16:47:30 +02:00
|
|
|
const collate<C>&
|
|
|
|
use_facet<collate<C> >(const locale&);
|
2001-09-20 10:30:01 +02:00
|
|
|
|
2002-03-08 07:05:21 +01:00
|
|
|
template
|
2003-10-17 16:47:30 +02:00
|
|
|
const numpunct<C>&
|
|
|
|
use_facet<numpunct<C> >(const locale&);
|
2002-03-08 07:05:21 +01:00
|
|
|
|
|
|
|
template
|
2003-10-17 16:47:30 +02:00
|
|
|
const num_put<C>&
|
|
|
|
use_facet<num_put<C> >(const locale&);
|
2002-03-08 07:05:21 +01:00
|
|
|
|
|
|
|
template
|
2003-10-17 16:47:30 +02:00
|
|
|
const num_get<C>&
|
|
|
|
use_facet<num_get<C> >(const locale&);
|
2002-03-08 07:05:21 +01:00
|
|
|
|
2001-09-10 03:00:27 +02:00
|
|
|
template
|
2003-10-17 16:47:30 +02:00
|
|
|
const moneypunct<C, true>&
|
|
|
|
use_facet<moneypunct<C, true> >(const locale&);
|
2001-09-20 10:30:01 +02:00
|
|
|
|
2001-09-10 03:00:27 +02:00
|
|
|
template
|
2003-10-17 16:47:30 +02:00
|
|
|
const moneypunct<C, false>&
|
|
|
|
use_facet<moneypunct<C, false> >(const locale&);
|
2001-09-20 10:30:01 +02:00
|
|
|
|
2002-03-08 07:05:21 +01:00
|
|
|
template
|
2003-10-17 16:47:30 +02:00
|
|
|
const money_put<C>&
|
|
|
|
use_facet<money_put<C> >(const locale&);
|
2002-03-08 07:05:21 +01:00
|
|
|
|
|
|
|
template
|
2003-10-17 16:47:30 +02:00
|
|
|
const money_get<C>&
|
|
|
|
use_facet<money_get<C> >(const locale&);
|
2002-03-08 07:05:21 +01:00
|
|
|
|
2001-09-20 10:30:01 +02:00
|
|
|
template
|
2003-10-17 16:47:30 +02:00
|
|
|
const __timepunct<C>&
|
|
|
|
use_facet<__timepunct<C> >(const locale&);
|
2001-09-20 10:30:01 +02:00
|
|
|
|
2002-03-08 07:05:21 +01:00
|
|
|
template
|
2003-10-17 16:47:30 +02:00
|
|
|
const time_put<C>&
|
|
|
|
use_facet<time_put<C> >(const locale&);
|
2001-09-20 10:30:01 +02:00
|
|
|
|
2000-04-21 22:33:34 +02:00
|
|
|
template
|
2003-10-17 16:47:30 +02:00
|
|
|
const time_get<C>&
|
|
|
|
use_facet<time_get<C> >(const locale&);
|
2001-09-20 10:30:01 +02:00
|
|
|
|
2000-04-21 22:33:34 +02:00
|
|
|
template
|
2003-10-17 16:47:30 +02:00
|
|
|
const messages<C>&
|
|
|
|
use_facet<messages<C> >(const locale&);
|
2000-04-21 22:33:34 +02:00
|
|
|
|
|
|
|
// has_facet
|
2002-03-08 07:05:21 +01:00
|
|
|
template
|
|
|
|
bool
|
2003-10-17 16:47:30 +02:00
|
|
|
has_facet<ctype<C> >(const locale&);
|
2002-03-08 07:05:21 +01:00
|
|
|
|
2001-05-31 14:14:56 +02:00
|
|
|
template
|
|
|
|
bool
|
2003-10-17 16:47:30 +02:00
|
|
|
has_facet<codecvt<C, char, mbstate_t> >(const locale&);
|
2002-03-08 07:05:21 +01:00
|
|
|
|
2001-05-31 14:14:56 +02:00
|
|
|
template
|
|
|
|
bool
|
2003-10-17 16:47:30 +02:00
|
|
|
has_facet<collate<C> >(const locale&);
|
2002-03-08 07:05:21 +01:00
|
|
|
|
2001-05-31 14:14:56 +02:00
|
|
|
template
|
|
|
|
bool
|
2003-10-17 16:47:30 +02:00
|
|
|
has_facet<numpunct<C> >(const locale&);
|
2002-03-08 07:05:21 +01:00
|
|
|
|
|
|
|
template
|
|
|
|
bool
|
2003-10-17 16:47:30 +02:00
|
|
|
has_facet<num_put<C> >(const locale&);
|
2002-03-08 07:05:21 +01:00
|
|
|
|
|
|
|
template
|
|
|
|
bool
|
2003-10-17 16:47:30 +02:00
|
|
|
has_facet<num_get<C> >(const locale&);
|
2002-03-08 07:05:21 +01:00
|
|
|
|
|
|
|
template
|
|
|
|
bool
|
2003-10-17 16:47:30 +02:00
|
|
|
has_facet<moneypunct<C> >(const locale&);
|
2002-03-08 07:05:21 +01:00
|
|
|
|
|
|
|
template
|
|
|
|
bool
|
2003-10-17 16:47:30 +02:00
|
|
|
has_facet<money_put<C> >(const locale&);
|
2002-03-08 07:05:21 +01:00
|
|
|
|
|
|
|
template
|
|
|
|
bool
|
2003-10-17 16:47:30 +02:00
|
|
|
has_facet<money_get<C> >(const locale&);
|
2002-03-08 07:05:21 +01:00
|
|
|
|
|
|
|
template
|
|
|
|
bool
|
2003-10-17 16:47:30 +02:00
|
|
|
has_facet<__timepunct<C> >(const locale&);
|
2002-03-08 07:05:21 +01:00
|
|
|
|
2000-04-21 22:33:34 +02:00
|
|
|
template
|
|
|
|
bool
|
2003-10-17 16:47:30 +02:00
|
|
|
has_facet<time_put<C> >(const locale&);
|
2002-03-08 07:05:21 +01:00
|
|
|
|
2001-05-31 14:14:56 +02:00
|
|
|
template
|
|
|
|
bool
|
2003-10-17 16:47:30 +02:00
|
|
|
has_facet<time_get<C> >(const locale&);
|
2002-03-08 07:05:21 +01:00
|
|
|
|
2001-05-31 14:14:56 +02:00
|
|
|
template
|
|
|
|
bool
|
2003-10-17 16:47:30 +02:00
|
|
|
has_facet<messages<C> >(const locale&);
|
2002-03-08 07:05:21 +01:00
|
|
|
|
2000-11-08 21:00:36 +01:00
|
|
|
|
2003-10-17 16:47:30 +02:00
|
|
|
// locale functions.
|
2000-04-21 22:33:34 +02:00
|
|
|
template
|
2003-10-17 16:47:30 +02:00
|
|
|
C*
|
locale_facets.h (struct __numpunct_cache): Add member _M_grouping_size, caching the length of _M_grouping.
2004-01-14 Paolo Carlini <pcarlini@suse.de>
* include/bits/locale_facets.h (struct __numpunct_cache):
Add member _M_grouping_size, caching the length of _M_grouping.
(__numpunct_cache<>::_M_cache): Assign the latter.
(__verify_grouping): Move declaration...
* include/bits/locale_facets.tcc (__verify_grouping):
... here, change signature to take a const char* and a size_t
for the grouping; not a template anymore.
(__add_grouping, num_put::_M_group_int, num_put::_M_group_float):
Likewise change signature and tweak consistently.
(num_get::_M_extract_float, num_get::_M_extract_int,
num_put::_M_insert_int, num_put::_M_insert_float,
money_get::do_get(string_type&), money_get::do_put(string_type)):
Update callers.
* config/locale/generic/numeric_members.cc
(numpunct<>::_M_initialize_numpunct): Assign the new member.
* config/locale/gnu/numeric_members.cc
(numpunct<>::_M_initialize_numpunct): Likewise.
* src/locale-inst.cc (__add_grouping): Tweak signature.
(__verify_grouping): Don't instantiate, not a template anymore.
* include/bits/locale_facets.h: Rename _M_truename_len ->
_M_truename_size, _M_falsename_len -> _M_falsename_size.
* include/bits/locale_facets.tcc: Likewise.
* config/locale/generic/numeric_members.cc: Likewise.
* config/locale/gnu/numeric_members.cc: Likewise.
From-SVN: r75876
2004-01-14 20:14:39 +01:00
|
|
|
__add_grouping<C>(C*, C, char const*, size_t,
|
2003-10-17 16:47:30 +02:00
|
|
|
C const*, C const*);
|
2000-04-21 22:33:34 +02:00
|
|
|
|
2003-10-17 16:47:30 +02:00
|
|
|
template class __pad<C, char_traits<C> >;
|
2000-04-21 22:33:34 +02:00
|
|
|
|
2003-02-11 22:55:49 +01:00
|
|
|
template
|
|
|
|
int
|
2003-10-22 23:53:21 +02:00
|
|
|
__int_to_char(C*, unsigned long, const C*,
|
2003-02-11 22:55:49 +01:00
|
|
|
ios_base::fmtflags, bool);
|
|
|
|
|
2003-07-05 06:05:45 +02:00
|
|
|
#ifdef _GLIBCXX_USE_LONG_LONG
|
2003-02-11 22:55:49 +01:00
|
|
|
template
|
|
|
|
int
|
2003-10-22 23:53:21 +02:00
|
|
|
__int_to_char(C*, unsigned long long, const C*,
|
2003-02-11 22:55:49 +01:00
|
|
|
ios_base::fmtflags, bool);
|
|
|
|
#endif
|
2001-03-04 22:34:02 +01:00
|
|
|
} // namespace std
|