[RFC] One of those money_get corner cases...
Paolo Carlini
pcarlini@suse.de
Sat Mar 6 20:08:00 GMT 2004
Hi again,
this one is related to the correct interpretation of 22.2.6.1.2, p2 and
22.2.6.3, p2... which seem not completely consistent ;)
Anyway, the first one (money_get) says:
"Where _space_ or _none_ appears in the format pattern, except at the
end, optional white space (as recognized by ct.is) is consumed after
any required space."
The second one (moneypunct):
"Where _none_ or _space_ appears, white space is permitted in the format,
except where _none_ appears at the end, in which case no white space is
permitted. The value _space_ indicates that at least one space is required
at that position."
So... during the parsing, what shall we enforce, exactly? Shall we require
al least one space, where _space_ appears? And for _none_? No white space
or optional white space? Shall we deal specially with _none_ but not with
_space_, when at the end, or shall we treat both always the same way?
The current implementation follows quite closely the first citation
(money_get), but, if that one matters, not the latter, we have got a few
corner cases wrong for _symbol_. Otherwise, the situation is worse ;)
Paolo.
More information about the Libstdc++
mailing list