std::collate_byname
<locale>
class collate_byname : public std::collate <CharT>;
std::collate_byname
is a std::collate facet which encapsulates locale-specific collation (comparison) and hashing of strings. Just like std::collate , it can be imbued in std::regex and applied, by means of std::locale::operator(), directly to all standard algorithms that expect a string comparison predicate.
Contents
[edit] Specializations
The standard library is guaranteed to provide the following specializations:
<locale>
[edit] Member functions
std::collate_byname::collate_byname
Constructs a new std::collate_byname
facet for a locale with name.
refs is used for resource management: if refs == 0, the implementation destroys the facet, when the last std::locale object holding it is destroyed. Otherwise, the object is not destroyed.
Parameters
std::collate_byname::~collate_byname
~collate_byname();
Destroys the facet.
Inherited from std::collate
Nested types
char_type
CharT
string_type
std::basic_string <CharT>
[edit] Data members
Member functions
Protected member functions
(virtual protected member function of
std::collate<CharT>
) [edit]
(virtual protected member function of
std::collate<CharT>
) [edit]
[edit] Notes
Collation order is the dictionary order: the position of the letter in the national alphabet (its equivalence class) has higher priority than its case or variant. Within an equivalence class, lowercase characters collate before their uppercase equivalents and locale-specific order may apply to the characters with diacritics. In some locales, groups of characters compare as single collation units. For example, "ch" in Czech follows "h" and precedes "i", and "dzs" in Hungarian follows "dz" and precedes "g".
[edit] Example
Reason: no example
[edit] See also
(public member function of
std::locale
) [edit]