Implement std::money_put.
authorBenjamin Kosnik <bkoz@redhat.com>
Mon, 10 Sep 2001 01:00:27 +0000 (01:00 +0000)
committerBenjamin Kosnik <bkoz@gcc.gnu.org>
Mon, 10 Sep 2001 01:00:27 +0000 (01:00 +0000)
commit69971cd850625b888f40dacdb4fc122b57602e9b
treeb815e508219cc05c103ba813878fb45c805615db
parent1650fcade99016be5813646d3b10461f1d28bf8b
Implement std::money_put.

2001-09-09  Benjamin Kosnik  <bkoz@redhat.com>

Implement std::money_put.
* include/bits/locale_facets.h
(moneypunct::_M_initialize_moneypunct): Split up specializations
to account for _Intl.  More grody hacking to get around the
ill-considered use of const bool as a template parameter.
* config/locale/moneypunct_members_gnu.cc: And here.
* config/locale/moneypunct_members_generic.cc: And here.
* testsuite/22_locale/moneypunct_members_char.cc: Add tests.
* testsuite/22_locale/moneypunct.cc: Add tests.
* testsuite/22_locale/money_put_members_wchar_t.cc: New file.
* testsuite/22_locale/moneypunct_members_wchar_t.cc: New file.

* src/locale.cc (money_base::_S_construct_pattern): Move into
gnu-specific file.
* config/locale/moneypunct_members_gnu.cc: Add here.
* config/locale/moneypunct_members_generic.cc: Add generic version
here.

* include/bits/locale_facets.tcc (money_put::do_put): Move member
function definitions here.
* include/bits/locale_facets.h (money_put): Implement.
* src/locale-inst.cc: Add use_facet instantiations for moneypunct.
Correct money_get, money_put instantiations.
* src/locale.cc (money_base::_S_construct_pattern): Handle case
where __posn == 0.
* testsuite/22_locale/money_put_members_char.cc: Add tests.

From-SVN: r45496
14 files changed:
libstdc++-v3/ChangeLog
libstdc++-v3/config/locale/moneypunct_members_generic.cc
libstdc++-v3/config/locale/moneypunct_members_gnu.cc
libstdc++-v3/include/bits/locale_facets.h
libstdc++-v3/include/bits/locale_facets.tcc
libstdc++-v3/include/bits/std_iosfwd.h
libstdc++-v3/src/locale-inst.cc
libstdc++-v3/src/locale.cc
libstdc++-v3/src/localename.cc
libstdc++-v3/testsuite/22_locale/money_put_members_char.cc
libstdc++-v3/testsuite/22_locale/money_put_members_wchar_t.cc [new file with mode: 0644]
libstdc++-v3/testsuite/22_locale/moneypunct.cc
libstdc++-v3/testsuite/22_locale/moneypunct_members_char.cc
libstdc++-v3/testsuite/22_locale/moneypunct_members_wchar_t.cc [new file with mode: 0644]