locale_facets.tcc (money_get<>::do_get(..., string_type&)): Use find_first_not_of...
authorPaolo Carlini <pcarlini@suse.de>
Thu, 23 Oct 2003 17:05:01 +0000 (17:05 +0000)
committerPaolo Carlini <paolo@gcc.gnu.org>
Thu, 23 Oct 2003 17:05:01 +0000 (17:05 +0000)
commit60aa9fc304fb2ac1d1cbdba543649a45a1482200
tree4a2e69daf81ca59127b07835c4cc1bf79218b081
parent0e67400ab4f95d41decb49c32975f49ceb1e9f8b
locale_facets.tcc (money_get<>::do_get(..., string_type&)): Use find_first_not_of to strip leading zeros...

2003-10-23  Paolo Carlini  <pcarlini@suse.de>

* include/bits/locale_facets.tcc (money_get<>::do_get(...,
string_type&)): Use find_first_not_of to strip leading
zeros; if __tmp_units == "0" never prefix it with '-';
always fail if __tmp_units is empty.
* testsuite/22_locale/money_get/get/char/10.cc: New.
* testsuite/22_locale/money_get/get/wchar_t/10.cc: Ditto.

From-SVN: r72860
libstdc++-v3/ChangeLog
libstdc++-v3/include/bits/locale_facets.tcc
libstdc++-v3/testsuite/22_locale/money_get/get/char/10.cc [new file with mode: 0644]
libstdc++-v3/testsuite/22_locale/money_get/get/wchar_t/10.cc [new file with mode: 0644]