Commit 6d4925e3 by Paolo Carlini Committed by Paolo Carlini

locale_facets.tcc (num_get<>::_M_extract_float, [...]): Simplify grouping fidelity conditional.

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

	* include/bits/locale_facets.tcc (num_get<>::_M_extract_float,
	num_get<>::_M_extract_int, money_get<>::do_get): Simplify
	grouping fidelity conditional.

From-SVN: r77948
parent fd1146d4
2004-02-17 Paolo Carlini <pcarlini@suse.de>
* include/bits/locale_facets.tcc (num_get<>::_M_extract_float,
num_get<>::_M_extract_int, money_get<>::do_get): Simplify
grouping fidelity conditional.
2004-02-16 Paolo Carlini <pcarlini@suse.de> 2004-02-16 Paolo Carlini <pcarlini@suse.de>
* testsuite/27_io/basic_filebuf/overflow/char/13858.cc: * testsuite/27_io/basic_filebuf/overflow/char/13858.cc:
......
...@@ -299,7 +299,7 @@ namespace std ...@@ -299,7 +299,7 @@ namespace std
// Digit grouping is checked. If grouping and found_grouping don't // Digit grouping is checked. If grouping and found_grouping don't
// match, then get very very upset, and set failbit. // match, then get very very upset, and set failbit.
if (__lc->_M_use_grouping && __found_grouping.size()) if (__found_grouping.size())
{ {
// Add the ending grouping if a decimal wasn't found. // Add the ending grouping if a decimal wasn't found.
if (!__found_dec) if (!__found_dec)
...@@ -492,7 +492,7 @@ namespace std ...@@ -492,7 +492,7 @@ namespace std
// Digit grouping is checked. If grouping and found_grouping don't // Digit grouping is checked. If grouping and found_grouping don't
// match, then get very very upset, and set failbit. // match, then get very very upset, and set failbit.
if (__lc->_M_use_grouping && __found_grouping.size()) if (__found_grouping.size())
{ {
// Add the ending grouping. // Add the ending grouping.
__found_grouping += static_cast<char>(__sep_pos); __found_grouping += static_cast<char>(__sep_pos);
...@@ -1320,7 +1320,7 @@ namespace std ...@@ -1320,7 +1320,7 @@ namespace std
__tmp_units.insert(__tmp_units.begin(), __ctype.widen('-')); __tmp_units.insert(__tmp_units.begin(), __ctype.widen('-'));
// Test for grouping fidelity. // Test for grouping fidelity.
if (__grouping.size() && __grouping_tmp.size()) if (__grouping_tmp.size())
{ {
// Add the ending grouping if a decimal wasn't found. // Add the ending grouping if a decimal wasn't found.
if (!__testdecfound) if (!__testdecfound)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment