<locale>

 

The new home for Visual Studio documentation is Visual Studio 2017 Documentation on docs.microsoft.com.

The latest version of this topic can be found at <locale>.

Defines template classes 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.

#include <locale>  
  

Functions

has_facetTests if a particular facet is stored in a specified locale.
isalnumTests whether an element in a locale is an alphabetic or a numeric character.
isalphaTests whether an element in a locale is alphabetic character.
iscntrlTests whether an element in a locale is a control character.
isdigitTests whether an element in a locale is a numeric character.
isgraphTests whether an element in a locale is an alphanumeric or punctuation character.
islowerTests whether an element in a locale is lower case.
isprintTests whether an element in a locale is a printable character.
ispunctTests whether an element in a locale is a punctuation character.
isspaceTests whether an element in a locale is a whitespace character.
isupperTests whether an element in a locale is upper case.
isxdigitTests whether an element in a locale is a character used to represent a hexadecimal number.
tolowerConverts a character to lower case.
toupperConverts a character to upper case.
use_facetReturns a reference to a facet of a specified type stored in a locale.

Classes

codecvtA template class that provides a facet used to convert between internal and external character encodings.
codecvt_baseA 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_bynameA derived template class 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.
collateA collate template class that provides a facet that handles string sorting conventions.
collate_bynameA derived template class 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.
ctypeA template class 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 template class 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_baseA 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_bynameA derived template class 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.
localeA class that describes a locale object that encapsulates culture-specific information as a set of facets that collectively define a specific localized environment.
messagesA template class 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_baseA base class that describes an int type for the catalog of messages.
messages_bynameA derived template class that describes an object that can serve as a message facet of a given locale, enabling the retrieval of localized messages.
money_baseA 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_getA template class that describes an object that can serve as a locale facet to control conversions of sequences of type CharType to monetary values.
money_putA template class that describes an object that can serve as a locale facet to control conversions of monetary values to sequences of type CharType.
moneypunctA template class 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_bynameA derived template class that describes an object that can serve as a moneypunct facet of a given locale enabling the formatting monetary input or output fields.
num_getA template class that describes an object that can serve as a locale facet to control conversions of sequences of type CharType to numeric values.
num_putA template class that describes an object that can serve as a locale facet to control conversions of numeric values to sequences of type CharType.
numpunctA template class 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_bynameA derived template class 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_baseA class that serves as a base class for facets of template class time_get, defining just the enumerated type dateorder and several constants of this type.
time_getA template class that describes an object that can serve as a locale facet to control conversions of sequences of type CharType to time values.
time_get_bynameA derived template class that describes an object that can serve as a locale facet of type time_get<CharType, InputIterator>.
time_putA template class that describes an object that can serve as a locale facet to control conversions of time values to sequences of type CharType.
time_put_bynameA derived template class that describes an object that can serve as a locale facet of type time_put<CharType, OutputIterator>.
wbuffer_convert ClassDescribes a stream buffer that controls the transmission of elements to and from a byte stream buffer.
wstring_convert ClassA template class that performs conversions between a wide string and a byte string.

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

Show: