locale_facets.tcc (money_put<>::_M_insert): Restructure formatting of value component...
authorPaolo Carlini <pcarlini@suse.de>
Sun, 22 Feb 2004 11:13:27 +0000 (11:13 +0000)
committerPaolo Carlini <paolo@gcc.gnu.org>
Sun, 22 Feb 2004 11:13:27 +0000 (11:13 +0000)
commit20da06efdce4e245fe3e13524121fb545796d5f3
tree14b292290bd2f946b9786ef53eb4e649e98776f7
parent5904e65f293211ff7eb67e8eacfaf159a10570ab
locale_facets.tcc (money_put<>::_M_insert): Restructure formatting of value component...

2004-02-22  Paolo Carlini  <pcarlini@suse.de>

* include/bits/locale_facets.tcc (money_put<>::_M_insert):
Restructure formatting of value component, first dealing with
the non-decimal digits; use reserve.

2004-02-22  Paolo Carlini  <pcarlini@suse.de>

* include/bits/locale_facets.h (class money_get): Inherit
from money_base too; tweak declaration of _M_extract, now
parameterized on _Intl too.
* include/bits/locale_facets.tcc (money_get<>::_M_extract):
Update definition to use the cache; call reserve on __res to
avoid multiple reallocations; fix parsing of sign component
according to 22.2.6.1.2, p3.
(money_get<>::do_get(long double&),
money_get<>::do_get(string_type&)): Update calls of _M_extract.
* src/locale-inst.cc:  Add instantiations of
money_get::_M_extract<false> and money_get::_M_extract<true>.
* testsuite/22_locale/money_get/get/char/14.cc: New.
* testsuite/22_locale/money_get/get/wchar_t/14.cc: Ditto.

From-SVN: r78253
libstdc++-v3/ChangeLog
libstdc++-v3/include/bits/locale_facets.h
libstdc++-v3/include/bits/locale_facets.tcc
libstdc++-v3/src/locale-inst.cc
libstdc++-v3/testsuite/22_locale/money_get/get/char/14.cc [new file with mode: 0644]
libstdc++-v3/testsuite/22_locale/money_get/get/wchar_t/14.cc [new file with mode: 0644]