Difference between revisions of "cpp/locale/numpunct"
(→Member functions: oops) |
m (+its own sidebar, -todo for a diagram, not that complicated) |
||
Line 1: | Line 1: | ||
{{cpp/title | numpunct}} | {{cpp/title | numpunct}} | ||
− | {{cpp/locale/sidebar}} | + | {{cpp/locale/numpunct/sidebar}} |
{{ddcl list begin}} | {{ddcl list begin}} | ||
{{ddcl list header | locale}} | {{ddcl list header | locale}} | ||
Line 8: | Line 8: | ||
}} | }} | ||
{{ddcl list end}} | {{ddcl list end}} | ||
− | |||
− | |||
The facet {{cpp|std::numpunct}} encapsulates numeric punctuation preferences. Stream I/O operations use {{cpp|std::numpunct}} through {{cpp|std::num_get}} and {{cpp|std::num_put}} for parsing numeric input and formatting numeric output. | The facet {{cpp|std::numpunct}} encapsulates numeric punctuation preferences. Stream I/O operations use {{cpp|std::numpunct}} through {{cpp|std::num_get}} and {{cpp|std::num_put}} for parsing numeric input and formatting numeric output. |
Revision as of 11:21, 18 November 2011
Template:cpp/locale/numpunct/sidebar Template:ddcl list begin <tr class="t-dsc-header">
<td><locale>
<td></td> <td></td> </tr> <tr class="t-dcl ">
<td class="t-dcl-nopad">class numpunct : public std::locale::facet;
<td class="t-dcl-nopad"> </td> <td class="t-dcl-nopad"> </td> </tr> Template:ddcl list end
The facet Template:cpp encapsulates numeric punctuation preferences. Stream I/O operations use Template:cpp through Template:cpp and Template:cpp for parsing numeric input and formatting numeric output.
Two specializations are provided by the standard library
Template:tdcl list begin Template:tdcl list header Template:tdcl list item Template:tdcl list item Template:tdcl list end
Contents |
Member types
Template:tdcl list begin Template:tdcl list hitem Template:tdcl list item Template:tdcl list item Template:tdcl list end
Member objects
Template:tdcl list begin Template:tdcl list hitem Template:tdcl list item Template:tdcl list end
Member functions
constructs a new numpunct facet (public member function) | |
destructs a numpunct facet (protected member function) | |
| |
invokes do_decimal_point (public member function) | |
invokes do_thousands_sep (public member function) | |
invokes do_grouping (public member function) | |
invokes do_truename (public member function) | |
invokes do_falsename (public member function) |
Protected member functions
[virtual] |
provides the character to use as decimal point (virtual protected member function) |
[virtual] |
provides the character to use as thousands separator (virtual protected member function) |
[virtual] |
provides the numbers of digits between each pair of thousands separators (virtual protected member function) |
[virtual] |
provides the string to use as the name of the boolean Template:cpp (virtual protected member function) |
[virtual] |
provides the string to use as the name of the boolean Template:cpp (virtual protected member function) |
Example
See also
creates a numpunct facet for the named locale (class template) |