gcc/libstdc++-v3/testsuite/22_locale
Paolo Carlini fe932e504b 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 09:26:35 +00:00
..
codecvt locale_facets.tcc: Tweak to avoid warnings. 2003-09-23 20:03:30 +00:00
codecvt_byname locale_facets.h: Correct byname facets for "C" locale. 2003-10-22 18:58:35 +00:00
collate 2.cc: Change input-charset from iso-8859-1 to ISO8859-1. 2004-02-19 17:07:55 -05:00
collate_byname locale_facets.h: Correct byname facets for "C" locale. 2003-10-22 18:58:35 +00:00
ctype locale_facets.h: Correct byname facets for "C" locale. 2003-10-22 18:58:35 +00:00
ctype_base locale_facets.h: Correct byname facets for "C" locale. 2003-10-22 18:58:35 +00:00
ctype_byname locale_facets.h: Correct byname facets for "C" locale. 2003-10-22 18:58:35 +00:00
facet locale_facets.tcc: Tweak to avoid warnings. 2003-09-23 20:03:30 +00:00
global_templates locale_facets.tcc: Tweak to avoid warnings. 2003-09-23 20:03:30 +00:00
locale re PR libstdc++/14071 (locale::global doesn't always call setlocale) 2004-02-09 23:10:47 +00:00
messages locale_facets.tcc: Tweak to avoid warnings. 2003-09-23 20:03:30 +00:00
messages_byname locale_facets.h: Correct byname facets for "C" locale. 2003-10-22 18:58:35 +00:00
money_get locale_facets.tcc (money_get::do_get(string_type&)): Fix parsing of the remaining sign characters. 2004-02-16 16:46:26 +00:00
money_put locale_facets.h (class money_base): Add { _S_minus, _S_zero, _S_end } enum, _S_atoms. 2004-02-21 09:26:35 +00:00
moneypunct locale_facets.tcc: Tweak to avoid warnings. 2003-09-23 20:03:30 +00:00
moneypunct_byname locale_facets.h: Correct byname facets for "C" locale. 2003-10-22 18:58:35 +00:00
num_get locale_facets.tcc (num_get::_M_extract_int, [...]): According to 22.2.2.1.2... 2003-12-31 08:28:10 +00:00
num_put 8.cc: New test, summarizing the discussion ensuing libstdc++/12988. 2003-11-17 08:39:57 +00:00
numpunct re PR libstdc++/14072 (basic_ios::imbue leaves dangling pointers) 2004-02-09 09:02:52 +00:00
numpunct_byname locale_facets.h: Correct byname facets for "C" locale. 2003-10-22 18:58:35 +00:00
time_get locale_facets.tcc (time_get::_M_extract_via_format): Use narrow to get from __format[__i] a char __c representing a formatting code... 2003-12-17 22:14:09 +00:00
time_put re PR libstdc++/12439 (Problems in time_put::put) 2003-10-01 14:32:05 +00:00