Files
2025-10-25 03:02:53 +03:00

2.0 KiB
Raw Permalink Blame History

[locale.statics]

28 Text processing library [text]

28.3 Localization library [localization]

28.3.3 Locales [locales]

28.3.3.1 Class locale [locale]

28.3.3.1.6 Static members [locale.statics]

🔗

static locale global(const locale& loc);

1

#

Effects: Sets the global locale to its argument.

Causes future calls to the constructor locale() to return a copy of the argument.

If the argument has a name, doessetlocale(LC_ALL, loc.name().c_str()); otherwise, the effect on the C locale, if any, isimplementation-defined.

2

#

Returns: The previous value of locale().

3

#

Remarks: No library function other than locale::global() affects the value returned by locale().

[Note 1:

See [c.locales] for data race considerations when setlocale is invoked.

— end note]

🔗

static const locale& classic();

4

#

The "C" locale.

5

#

Returns: A locale that implements the classic "C" locale semantics, equivalent to the value locale("C").

6

#

Remarks: This locale, its facets, and their member functions, do not change with time.