gcc/libstdc++-v3/testsuite/27_io
Benjamin Kosnik 86ade44cb2 Numeric facets cleanup.
2001-11-27  Benjamin Kosnik  <bkoz@redhat.com>

	Numeric facets cleanup.
	* include/bits/locale_facets.h (__num_base::_S_atoms): Add, remove
	+ and - signs.
	(__num_base::_M_zero): Add
	(__num_base::_M_e): Add.
	(__num_base::_M_E): Add.
	* include/bits/locale_facets.tcc (num_get::_M_extract): Remove.
	(num_get::_M_extract_float): New.
	(num_get::_M_extract_int): New.
	* src/locale.cc (num_get::_M_extract): Remove.

	* include/bits/locale_facets.tcc (num_put::_M_insert_float):
	Simplify, use _M_insert.
	(num_put::do_put(bool)): Simplify, remove __pad.
	(__pad): Remove.
	(__pad_output): Change to __pad.
	* include/bits/ostream.tcc: And here.
	* src/locale-inst: Remove instantiations.

	* include/bits/locale_facets.h: Move helper functions in to class
	num_put.
	(num_put::_M_insert_float): Same, for __output_integer.
	(num_put::_M_insert_int): Same, for __output_float.
	(num_put::_M_insert): New.
	(__num_base): Add.
	(__num_base::_S_format_float): Move
	__build_float_format into class __num_base.
	(__num_base::_S_format_int): Move __build_int_format into class
	__num_base.
	* include/bits/locale_facets.tcc (__group_digits): Change to
	(__add_grouping): This.
	* src/locale-inst.cc: And here. Tweak instantiations.
	* src/misc-inst.cc: Remove instantiations.

	* include/bits/ostream.tcc (__pad_char): Rename, adjust inserters
	for new calling conventions, move to...
	* include/bits/locale_facets.tcc (__pad_output): Here. Adjust
	signature to make it useful for both ostream and num_put.
	(__pad_numeric): Remove.
	* src/misc-inst.cc: Remove instantiations.
	* src/locale-inst.cc: Same.

	* include/bits/locale_facets.h (_Numeric_get): Remove.
 	(_Numeric_put): Remove.
	(num_get::get(short)): Remove.
	(num_get::get(int)): Remove.
	(num_get::do_get(short)): Remove.
	(num_get::do_get(int)): Remove.
	* include/bits/istream.tcc (istream::operator>>(short)): Fix as
	per DR 118.
	(istream::operator>>(int)): Same.

	* include/bits/locale_facets.h (_Format_cache): Remove.
	* include/bits/locale_facets.tcc: Same.
	* src/locale.cc: Same.
	* src/locale-inst.cc: Same.
	* include/bits/ostream.tcc: Same.
	* src/ios.cc (ios_base::imbue): Remove here as well.

	* testsuite/22_locale/num_get.cc: New file.
	* testsuite/22_locale/num_get_members_char.cc: New file.
	* testsuite/22_locale/num_get_members_wchar_t.cc: New.
	* testsuite/22_locale/numpunct_members_wchar_t.cc: New file.
	* testsuite/22_locale/num_put.cc: New file.
	* testsuite/22_locale/num_put_members_char.cc: New file.
	* testsuite/22_locale/num_put_members_wchar_t.cc: New file.
	* testsuite/27_io/ostream_inserter_arith.cc: Fix.
	* testsuite/27_io/istream_extractor_arith.cc: Fix.

From-SVN: r47397
2001-11-28 04:07:11 +00:00
..
filebuf_members-1.tst
filebuf_members-1.txt
filebuf_members.cc
filebuf_virtuals.cc
filebuf-1.tst
filebuf-1.txt
filebuf-2.tst
filebuf-3.tst
filebuf.cc Intro.3: More notes. 2001-11-20 00:51:37 +00:00
fpos.cc
fstream_members.cc
ifstream_members-1.tst
ifstream_members-1.txt
ifstream_members.cc
ios_base_callbacks.cc
ios_base_members_static-1.tst
ios_base_members_static.cc
ios_base_storage.cc
ios_ctor.cc
ios_init.cc
ios_manip_basefield.cc
ios_manip_fmtflags.cc
ios_members.cc
istream_extractor_arith.cc Numeric facets cleanup. 2001-11-28 04:07:11 +00:00
istream_extractor_char.cc
istream_extractor_other-1.tst
istream_extractor_other-1.txt
istream_extractor_other-2.tst
istream_extractor_other.cc
istream_manip.cc
istream_seeks-1.tst
istream_seeks-1.txt
istream_seeks-2.tst
istream_seeks-3.tst
istream_seeks.cc
istream_sentry.cc
istream_unformatted-1.tst
istream_unformatted-1.txt
istream_unformatted.cc
istream.cc
istringstream_members.cc
narrow_stream_objects.cc
ofstream_members-1.tst
ofstream_members.cc
ostream_inserter_arith.cc Numeric facets cleanup. 2001-11-28 04:07:11 +00:00
ostream_inserter_char-1.tst
ostream_inserter_char-1.txt
ostream_inserter_char.cc
ostream_inserter_other-1.tst
ostream_inserter_other-2.tst
ostream_inserter_other.cc
ostream_manip.cc
ostream_seeks-1.tst
ostream_seeks.cc
ostream_unformatted.cc
ostream.cc
ostringstream_members.cc
streambuf.cc
stringbuf_virtuals.cc
stringbuf.cc
stringstream_members.cc
stringstream.cc
wide_stream_objects.cc