72 lines
1.9 KiB
Markdown
72 lines
1.9 KiB
Markdown
[locale.members]
|
|
|
|
# 28 Text processing library [[text]](./#text)
|
|
|
|
## 28.3 Localization library [[localization]](localization#locale.members)
|
|
|
|
### 28.3.3 Locales [[locales]](locales#locale.members)
|
|
|
|
#### 28.3.3.1 Class locale [[locale]](locale#members)
|
|
|
|
#### 28.3.3.1.4 Members [locale.members]
|
|
|
|
[ð](#lib:locale,combine)
|
|
|
|
`template<class Facet> locale combine(const locale& other) const;
|
|
`
|
|
|
|
[1](#1)
|
|
|
|
[#](http://github.com/Eelis/draft/tree/9adde4bc1c62ec234483e63ea3b70a59724c745a/source/text.tex#L1015)
|
|
|
|
*Effects*: Constructs a locale incorporating all facets from *this except for that one facet of other that is identified by Facet[.](#1.sentence-1)
|
|
|
|
[2](#2)
|
|
|
|
[#](http://github.com/Eelis/draft/tree/9adde4bc1c62ec234483e63ea3b70a59724c745a/source/text.tex#L1020)
|
|
|
|
*Returns*: The newly created locale[.](#2.sentence-1)
|
|
|
|
[3](#3)
|
|
|
|
[#](http://github.com/Eelis/draft/tree/9adde4bc1c62ec234483e63ea3b70a59724c745a/source/text.tex#L1024)
|
|
|
|
*Throws*: runtime_error if has_facet<Facet>(other) is false[.](#3.sentence-1)
|
|
|
|
[4](#4)
|
|
|
|
[#](http://github.com/Eelis/draft/tree/9adde4bc1c62ec234483e63ea3b70a59724c745a/source/text.tex#L1028)
|
|
|
|
*Remarks*: The resulting locale has no name[.](#4.sentence-1)
|
|
|
|
[ð](#lib:locale,name)
|
|
|
|
`string name() const;
|
|
`
|
|
|
|
[5](#5)
|
|
|
|
[#](http://github.com/Eelis/draft/tree/9adde4bc1c62ec234483e63ea3b70a59724c745a/source/text.tex#L1039)
|
|
|
|
*Returns*: The name of *this, if it has one;
|
|
otherwise, the string "*"[.](#5.sentence-1)
|
|
|
|
[ð](#lib:locale,encoding)
|
|
|
|
`text_encoding encoding() const;
|
|
`
|
|
|
|
[6](#6)
|
|
|
|
[#](http://github.com/Eelis/draft/tree/9adde4bc1c62ec234483e63ea3b70a59724c745a/source/text.tex#L1051)
|
|
|
|
*Mandates*: CHAR_BIT == 8 is true[.](#6.sentence-1)
|
|
|
|
[7](#7)
|
|
|
|
[#](http://github.com/Eelis/draft/tree/9adde4bc1c62ec234483e63ea3b70a59724c745a/source/text.tex#L1055)
|
|
|
|
*Returns*: A text_encoding object representing
|
|
the implementation-defined encoding scheme
|
|
associated with the locale *this[.](#7.sentence-1)
|