Namespaces
Variants
Views
Actions

Difference between revisions of "cpp/locale"

From cppreference.com
< cpp
(changed my mind about bynames again; they deserve top-level importance. Sorry for flip-flopping.)
(templated some list items)
Line 9: Line 9:
  
 
{{dcl list h2 | Locales and facets }}
 
{{dcl list h2 | Locales and facets }}
{{dcl list class | cpp/locale/locale | polymorphic set of facets that comprise a locale }}
+
{{dcl list template | cpp/locale/dcl list locale}}
{{dcl list tfun | cpp/locale/use_facet | obtains a facet from a locale }}
+
{{dcl list template | cpp/locale/dcl list use_facet}}
{{dcl list tfun | cpp/locale/has_facet | checks if a locale implements a specific facet }}
+
{{dcl list template | cpp/locale/dcl list has_facet}}
  
 
{{dcl list h2 | Character classification }}
 
{{dcl list h2 | Character classification }}
 
{{dcl list template | cpp/locale/dcl list isspace}}
 
{{dcl list template | cpp/locale/dcl list isspace}}
{{dcl list tfun | cpp/locale/iscntrl | checks if a character is classified as a control character by a locale}}
+
{{dcl list template | cpp/locale/dcl list iscntrl}}
{{dcl list tfun | cpp/locale/isupper | checks if a character is classified as uppercase by a locale}}
+
{{dcl list template | cpp/locale/dcl list isupper}}
{{dcl list tfun | cpp/locale/islower | checks if a character is classified as lowercase by a locale}}
+
{{dcl list template | cpp/locale/dcl list islower}}
{{dcl list tfun | cpp/locale/isalpha | checks if a character is classified as alphabetic by a locale}}
+
{{dcl list template | cpp/locale/dcl list isalpha}}
{{dcl list tfun | cpp/locale/isdigit | checks if a character is classified as a digit by a locale}}
+
{{dcl list template | cpp/locale/dcl list isdigit}}
{{dcl list tfun | cpp/locale/ispunct | checks if a character is classified as punctuation by a locale}}
+
{{dcl list template | cpp/locale/dcl list ispunct}}
{{dcl list tfun | cpp/locale/isxdigit | checks if a character is classified as a hexadecimal digit by a locale}}
+
{{dcl list template | cpp/locale/dcl list isxdigit}}
{{dcl list tfun | cpp/locale/isalnum | checks if a character is classified as alphanumeric by a locale}}
+
{{dcl list template | cpp/locale/dcl list isalnum}}
{{dcl list tfun | cpp/locale/isprint | checks if a character is classified as printable, including space, by a locale}}
+
{{dcl list template | cpp/locale/dcl list isprint}}
{{dcl list tfun | cpp/locale/isgraph | checks if a character is classfied as printable, excluding space, by a locale}}
+
{{dcl list template | cpp/locale/dcl list isgraph}}
  
 
{{dcl list h2 | Character conversions }}
 
{{dcl list h2 | Character conversions }}
{{dcl list tfun | cpp/locale/toupper | converts a character to uppercase using the ctype facet of a locale}}
+
{{dcl list template | cpp/locale/dcl list toupper}}
{{dcl list tfun | cpp/locale/tolower | converts a character to lowercase using the ctype facet of a locale}}
+
{{dcl list template | cpp/locale/dcl list tolower}}
  
 
{{dcl list h2 | String and stream conversions }}
 
{{dcl list h2 | String and stream conversions }}
{{dcl list tclass | cpp/locale/wstring_convert | performs conversions between a wide string and a byte string | notes={{mark c++11}} }}
+
{{dcl list template | cpp/locale/dcl list wstring_convert}}
{{dcl list tclass | cpp/locale/wbuffer_convert | performs conversion between a byte stream buffer and a wide stream buffer | notes={{mark c++11}}}}
+
{{dcl list template | cpp/locale/dcl list wbuffer_convert}}
  
 
{{dcl list h2 | Facet categories }}
 
{{dcl list h2 | Facet categories }}

Revision as of 11:13, 19 September 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 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 convert
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)
converts between character encodings, including multibyte and wide
(class template)
defines lexicographical comparison and hashing of strings
(class template)
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

Defined in header <codecvt>
converts between UTF8 and UCS2/UCS4
(class template)
converts between UTF16 and UCS2/UCS4
(class template)
converts between UTF8 and UTF16
(class template)
tags to alter behavior of the standard codecvt facets
(class)

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)