Namespaces
Variants
Views
Actions

Difference between revisions of "cpp/locale"

From cppreference.com
< cpp
m (tclass->class)
(Locales: move to templates)
Line 43: Line 43:
  
 
{{dcl list h2 | Facet categories }}
 
{{dcl list h2 | Facet categories }}
{{dcl list tclass | cpp/locale/ctype | defines character classification tables }}
+
{{dcl list template | cpp/locale/ctype}}
{{dcl list ptclass | cpp/locale/ctype_char | title=ctype{{small|<char>}} | specialization of {{cpp|std::ctype}} for type {{cpp|char}} }}
+
{{dcl list template | cpp/locale/ctype_char}}
 
{{dcl list template | cpp/locale/dcl list codecvt}}
 
{{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 template | cpp/locale/dcl list messages}}
{{dcl list tclass | cpp/locale/time_get | parses time/date values from an input character sequence into {{cpp|struct std::tm}}}}
+
{{dcl list template | cpp/locale/dcl list time_get}}
{{dcl list tclass | cpp/locale/time_put | formats contents of {{cpp|struct std::tm}} for output as character sequence}}
+
{{dcl list template | cpp/locale/dcl list time_put}}
{{dcl list tclass | cpp/locale/num_get | parses numeric values from an input character sequence}}
+
{{dcl list template | cpp/locale/dcl list num_get}}
{{dcl list tclass | cpp/locale/num_put | formats numeric values for output as character sequence}}
+
{{dcl list template | cpp/locale/dcl list num_put}}
{{dcl list tclass | cpp/locale/numpunct | defines numeric punctuation rules }}
+
{{dcl list template | cpp/locale/dcl list numpunct}}
{{dcl list tclass | cpp/locale/money_get | parses and constructs a monetary value from an input character sequence}}
+
{{dcl list template | cpp/locale/dcl list money_get}}
{{dcl list tclass | cpp/locale/money_put | formats a monetary value for output as a character sequence }}
+
{{dcl list template | cpp/locale/dcl list money_put}}
{{dcl list tclass | cpp/locale/moneypunct | defines monetary formatting parameters used by {{cpp|std::money_get}} and {{cpp|std::money_put}} }}
+
{{dcl list template | cpp/locale/dcl list moneypunct}}
 +
 
 
{{dcl list h2 | Locale-specific facet categories }}
 
{{dcl list h2 | Locale-specific facet categories }}
 
{{dcl list tclass | cpp/locale/ctype_byname | extends {{cpp|std::ctype}} for the specified locale }}
 
{{dcl list tclass | cpp/locale/ctype_byname | extends {{cpp|std::ctype}} for the specified locale }}

Revision as of 12:56, 9 November 2011

Template:cpp/locale/sidebar

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

Template:cpp/locale/dcl list localeTemplate:cpp/locale/dcl list use facetTemplate:cpp/locale/dcl list has facetTemplate:cpp/locale/dcl list isspaceTemplate:cpp/locale/dcl list isblankTemplate:cpp/locale/dcl list iscntrlTemplate:cpp/locale/dcl list isupperTemplate:cpp/locale/dcl list islowerTemplate:cpp/locale/dcl list isalphaTemplate:cpp/locale/dcl list isdigitTemplate:cpp/locale/dcl list ispunctTemplate:cpp/locale/dcl list isxdigitTemplate:cpp/locale/dcl list isalnumTemplate:cpp/locale/dcl list isprintTemplate:cpp/locale/dcl list isgraphTemplate:cpp/locale/dcl list toupperTemplate:cpp/locale/dcl list tolowerTemplate:cpp/locale/dcl list wstring convertTemplate:cpp/locale/dcl list wbuffer convertTemplate:cpp/locale/ctypeTemplate:cpp/locale/ctype charTemplate:cpp/locale/dcl list codecvtTemplate:cpp/locale/dcl list collateTemplate:cpp/locale/dcl list messagesTemplate:cpp/locale/dcl list time getTemplate:cpp/locale/dcl list time putTemplate:cpp/locale/dcl list num getTemplate:cpp/locale/dcl list num putTemplate:cpp/locale/dcl list numpunctTemplate:cpp/locale/dcl list money getTemplate:cpp/locale/dcl list money putTemplate:cpp/locale/dcl list moneypunct
Defined in header <locale>
Locales and facets
Character classification
Character conversions
String and stream conversions
Facet category base classes
defines character classification categories
(class)
defines character conversion errors
(class)
defines messages catalog type
(class)
defines date format constants
(class)
defines monetary formatting patterns
(class)
Facet categories
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)

Locale-independent unicode conversion facets

Template:cpp/locale/dcl list codecvt utf8Template:cpp/locale/dcl list codecvt utf16Template:cpp/locale/dcl list codecvt utf8 utf16Template:cpp/locale/dcl list codecvt mode
Defined in header <codecvt>

C library locales

Template:cpp/locale/dcl list setlocale
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)