public member function

std::locale::name

<locale>
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