Nick Hounsome said:
Anybody have any idea why the std has support (or at least hooks) for
formatting money in a
locale dependent way and yet has no class that makes use of it?
It's the same in C...LC_MONETARY was provided for choosing specific
monetary formats with setlocale(), then you could use localconv() to
get the currency_symbol etc. etc. But you had to do all the work
yourself, including grouping, decimal point selection (if different to
decimal point for non-monetry selection) etc. etc. It would seem
obvious enough to have printf-support printing monetary values, or
indeed formatting according to locale-conventions, and even proper
parsing (only the decimal point specifier is actually used by
atof/strtod - you can't use thousands grouping or different sign
formats). Of course there is strfmon, but no part of standard C, only
POSIX (I believe).
Dylan