Files
cppdraft_translate/cppdraft/locale/members.md
2025-10-25 03:02:53 +03:00

1.9 KiB

[locale.members]

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.4 Members [locale.members]

🔗

template<class Facet> locale combine(const locale& other) const;

1

#

Effects: Constructs a locale incorporating all facets from *this except for that one facet of other that is identified by Facet.

2

#

Returns: The newly created locale.

3

#

Throws: runtime_error if has_facet(other) is false.

4

#

Remarks: The resulting locale has no name.

🔗

string name() const;

5

#

Returns: The name of this, if it has one; otherwise, the string "".

🔗

text_encoding encoding() const;

6

#

Mandates: CHAR_BIT == 8 is true.

7

#

Returns: A text_encoding object representing the implementation-defined encoding scheme associated with the locale *this.