Edit

Share via


<locale>

Defines class templates and functions that C++ programs can use to encapsulate and manipulate different cultural conventions regarding the representation and formatting of numeric, monetary, and calendric data, including internationalization support for character classification and string collation.

Syntax

#include <locale>

Functions

Function Description
has_facet Tests if a particular facet is stored in a specified locale.
isalnum Tests whether an element in a locale is an alphabetic or a numeric character.
isalpha Tests whether an element in a locale is alphabetic character.
iscntrl Tests whether an element in a locale is a control character.
isdigit Tests whether an element in a locale is a numeric character.
isgraph Tests whether an element in a locale is an alphanumeric or punctuation character.
islower Tests whether an element in a locale is lower case.
isprint Tests whether an element in a locale is a printable character.
ispunct Tests whether an element in a locale is a punctuation character.
isspace Tests whether an element in a locale is a whitespace character.
isupper Tests whether an element in a locale is upper case.
isxdigit Tests whether an element in a locale is a character used to represent a hexadecimal number.
tolower Converts a character to lower case.
toupper Converts a character to upper case.
use_facet Returns a reference to a facet of a specified type stored in a locale.

Classes

Class Description
codecvt A class template that provides a facet used to convert between internal and external character encodings.
codecvt_base A base class for the codecvt class that is used to define an enumeration type referred to as result, used as the return type for the facet member functions to indicate the result of a conversion.
codecvt_byname A derived class template that describes an object that can serve as a collate facet of a given locale, enabling the retrieval of information specific to a cultural area concerning conversions.
collate A collate class template that provides a facet that handles string sorting conventions.
collate_byname A derived class template that describes an object that can serve as a collate facet of a given locale, enabling the retrieval of information specific to a cultural area concerning string sorting conventions.
ctype A class template that provides a facet that is used to classify characters, convert from upper- and lowercase and between the native character set and that set used by the locale.
ctype<char> A class that is an explicit specialization of class template ctype<CharType> to type char, describing an object that can serve as a locale facet to characterize various properties of a character of type char.
ctype_base A base class for the ctype class that is used to define enumeration types used to classify or test characters either individually or within entire ranges.
ctype_byname A derived class template that describes an object that can serve as a ctype facet of a given locale, enabling the classification of characters and conversion of characters between case and native and locale specified character sets.
locale A class that describes a locale object that encapsulates culture-specific information as a set of facets that collectively define a specific localized environment.
messages A class template that describes an object that can serve as a locale facet to retrieve localized messages from a catalog of internationalized messages for a given locale.
messages_base A base class that describes an int type for the catalog of messages.
messages_byname A derived class template that describes an object that can serve as a message facet of a given locale, enabling the retrieval of localized messages.
money_base A base class for the ctype class that is used to define enumeration types used to classify or test characters either individually or within entire ranges.
money_get A class template that describes an object that can serve as a locale facet to control conversions of sequences of type CharType to monetary values.
money_put A class template that describes an object that can serve as a locale facet to control conversions of monetary values to sequences of type CharType.
moneypunct A class template that describes an object that can serve as a locale facet to describe the sequences of type CharType used to represent a monetary input field or a monetary output field.
moneypunct_byname A derived class template that describes an object that can serve as a moneypunct facet of a given locale enabling the formatting monetary input or output fields.
num_get A class template that describes an object that can serve as a locale facet to control conversions of sequences of type CharType to numeric values.
num_put A class template that describes an object that can serve as a locale facet to control conversions of numeric values to sequences of type CharType.
numpunct A class template that describes an object that can serve as a local facet to describe the sequences of type CharType used to represent information about the formatting and punctuation of numeric and Boolean expressions.
numpunct_byname A derived class template that describes an object that can serve as a moneypunct facet of a given locale enabling the formatting and punctuation of numeric and Boolean expressions.
time_base A class that serves as a base class for facets of class template time_get, defining just the enumerated type dateorder and several constants of this type.
time_get A class template that describes an object that can serve as a locale facet to control conversions of sequences of type CharType to time values.
time_get_byname A derived class template that describes an object that can serve as a locale facet of type time_get<CharType, InputIterator>.
time_put A class template that describes an object that can serve as a locale facet to control conversions of time values to sequences of type CharType.
time_put_byname A derived class template that describes an object that can serve as a locale facet of type time_put<CharType, OutputIterator>.
wbuffer_convert Class Describes a stream buffer that controls the transmission of elements to and from a byte stream buffer.
wstring_convert Class A class template that performs conversions between a wide string and a byte string.

See also

Code Pages
Locale Names, Languages, and Country/Region Strings
Thread Safety in the C++ Standard Library