Difference between revisions of "cpp/locale"
From cppreference.com
< cpp
m (one dcl item template) |
m (a few more list item templates) |
||
Line 37: | Line 37: | ||
{{dcl list tclass | cpp/locale/ctype | defines character classification tables }} | {{dcl list tclass | cpp/locale/ctype | defines character classification tables }} | ||
{{dcl list ptclass | cpp/locale/ctype_char | title=ctype{{small|<char>}} | specialization of {{cpp|std::ctype}} for type {{cpp|char}} }} | {{dcl list ptclass | cpp/locale/ctype_char | title=ctype{{small|<char>}} | specialization of {{cpp|std::ctype}} for type {{cpp|char}} }} | ||
− | {{dcl list | + | {{dcl list template | cpp/locale/dcl list codecvt}} |
{{dcl list template | cpp/locale/dcl list collate}} | {{dcl list template | cpp/locale/dcl list collate}} | ||
{{dcl list tclass | cpp/locale/messages | implements retrieval of strings from message catalogs}} | {{dcl list tclass | cpp/locale/messages | implements retrieval of strings from message catalogs}} | ||
Line 63: | Line 63: | ||
{{dcl list begin}} | {{dcl list begin}} | ||
{{dcl list header | codecvt }} | {{dcl list header | codecvt }} | ||
− | {{dcl list | + | {{dcl list template | cpp/locale/dcl list codecvt_utf8}} |
− | {{dcl list | + | {{dcl list template | cpp/locale/dcl list codecvt_utf16}} |
− | {{dcl list | + | {{dcl list template | cpp/locale/dcl list codecvt_utf8_utf16}} |
− | {{dcl list | + | {{dcl list template | cpp/locale/dcl list codecvt_mode}} |
{{dcl list end}} | {{dcl list end}} | ||
Revision as of 14:07, 22 September 2011
The locale facility includes internationalization support for character classification and string collation, numeric, monetary, and date/time formatting and parsing, and message retrieval. Locale settings control the behavior of stream I/O, regular expression library, and other components of the C++ standard library.
Contents |
Locales
Defined in header
<locale> | |
Locales and facets | |
Character classification | |
Character conversions | |
String and stream conversions | |
Facet categories | |
defines character classification tables (class template) | |
specialization of Template:cpp for type Template:cpp (class template specialization) | |
implements retrieval of strings from message catalogs (class template) | |
parses time/date values from an input character sequence into Template:cpp (class template) | |
formats contents of Template:cpp for output as character sequence (class template) | |
parses numeric values from an input character sequence (class template) | |
formats numeric values for output as character sequence (class template) | |
defines numeric punctuation rules (class template) | |
parses and constructs a monetary value from an input character sequence (class template) | |
formats a monetary value for output as a character sequence (class template) | |
defines monetary formatting parameters used by Template:cpp and Template:cpp (class template) | |
Locale-specific facet categories | |
extends Template:cpp for the specified locale (class template) | |
extends Template:cpp for the specified locale (class template specialization) | |
extends Template:cpp for the specified locale (class template) | |
extends Template:cpp for the specified locale (class template) | |
extends Template:cpp for the specified locale (class template) | |
extends Template:cpp for the specified locale (class template) | |
extends Template:cpp for the specified locale (class template) | |
extends Template:cpp for the specified locale (class template) | |
extends Template:cpp for the specified locale (class template) |
Standard code conversion facets
C library locales
Defined in header
<clocale> | |
full locale category for Template:cpp (macro constant) | |
string comparison locale category for Template:cpp (macro constant) | |
character classification locale category for Template:cpp (macro constant) | |
monetary formatting locale category for Template:cpp (macro constant) | |
nonmonetary numeric formatting locale category for Template:cpp (macro constant) | |
time formatting locale category for Template:cpp (macro constant) | |
queries numeric and monetary formatting details of the current locale (function) | |
formatting details, returned by Template:cpp (class) |