cplusplus.com
C++ : Reference : Miscellaneous : locale : locale : name
 
cplusplus.com
Information
Documentation
Reference
Articles
Forum
Reference
C Library
IOstream Library
Strings library
STL Containers
STL Algorithms
Miscellaneous
Miscellaneous
complex
exception
functional
iterator
limits
locale
memory
new
numeric
stdexcept
typeinfo
utility
valarray
locale
has_facet
isalnum
isalpha
iscntrl
isdigit
isgraph
islower
isprint
ispunct
isspace
isupper
isxdigit
locale
tolower
toupper
use_facet
standard facets:
codecvt
codecvt_base
codecvt_byname
collate
collate_byname
ctype
ctype_base
ctype_byname
messages
messages_base
messages_byname
moneypunct
moneypunct_byname
money_base
money_get
money_put
numpunct
numpunct_byname
num_get
num_put
time_base
time_get
time_get_byname
time_put
time_put_byname
locale
locale::locale
locale::~locale
member functions:
locale::classic
locale::combine
locale::global
locale::name
locale::operator!=
locale::operator()
locale::operator=
locale::operator==
member types:
locale::category
locale::facet
locale::id


locale::name

public member function
basic_string<char> name() const;

Get locale name

Returns the name of the locale.
If the locale has no name, the function returns "*".

Constructing a new locale object with the value returned by this function creates a locale with the same properties as *this.

Parameters

none

Return value

A string object with the name of the locale, or "*" if it has no name.

See also