std::collate_byname
Материал из cppreference.com
|
|
This page has been machine-translated from the English version of the wiki using Google Translate.
The translation may contain errors and awkward wording. Hover over text to see the original version. You can help to fix errors and improve the translation. For instructions click here. |
| Заголовочный файл <locale>
|
||
| template< class CharT > class collate_byname : public std::collate<CharT>; |
||
std::collate_byname является std::collate аспект, который инкапсулирует локалей сопоставления (сравнения) и хэширования строк. Так же, как std::collate, он может быть проникнут в std::regex и прикладные, с помощью std::locale::operator(), непосредственно на все стандартные алгоритмы, которые ожидают предикат сравнения строк.
Original:
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.
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
You can help to correct and verify the translation. Click here for instructions.
Две специализации осуществляется стандартной библиотеки
Original:
Two specializations are provided by the standard library
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
You can help to correct and verify the translation. Click here for instructions.
| Определено в файле <locale>
| |
| std::collate_byname<char> | локалей сортировки многобайтовых строк
Original: locale-specific collation of multibyte strings The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. |
| std::collate_byname<wchar_t> | локалей сортировки широкий строк
Original: locale-specific collation of wide strings The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. |
Содержание |
[править] Член функций
| строит новую грань collate_byname Original: constructs a new collate_byname facet The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. (public функция-член) | |
| разрушает collate_byname грань Original: destructs a collate_byname facet The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. (protected функция-член) | |
Унаследован от std::collate
Member types
| Член типа
Original: Member type The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. |
Definition |
char_type
|
charT
|
string_type
|
std::basic_string<charT>
|
Member functions
| Вызывает do_compare Original: invokes do_compare The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. (public функция-член std::collate)
| |
| Вызывает do_transform Original: invokes do_transform The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. (public функция-член std::collate)
| |
| Вызывает do_hash Original: invokes do_hash The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. (public функция-член std::collate)
| |
Protected member functions
| [virtual] |
сравнение двух строк с использованием сортировки эту грань правилами Original: compares two strings using this facet's collation rules The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. (virtual protected std::collate функция-член)
|
| [virtual] |
преобразует строку так, чтобы сортировки можно заменить сравнение Original: transforms a string so that collation can be replaced by comparison The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. (virtual protected std::collate функция-член)
|
| [virtual] |
генерирует целое число хэш-значение с помощью сортировки эту грань правилами Original: generates an integer hash value using this facet's collation rules The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. (virtual protected std::collate функция-член)
|
[править] Notes
Сопоставление того, как правило, лексикографическое сравнение без учета регистра в соответствии с алфавитом языка, но в некоторых местах, группы символов сравнить как отдельные единицы сортировки. Например, "ч" в Чехии следующим образом: "ч" и предшествует «я», и «нг» в валлийском следует "г" и предшествует "з".
Original:
Collation order is typically lexicographic case-insensitive comparison according to the locale's alphabet, but in some locales, groups of characters compare as single collation units. For example, "ch" in Czech follows "h" and precedes "i", and "ng" in Welsh follows "g" and precedes "h".
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
You can help to correct and verify the translation. Click here for instructions.
[править] Пример
| Этот раздел не завершён Причина: нет примера |
[править] См. также
| определяет лексикографическое сравнение и хэширования строк Original: defines lexicographical comparison and hashing of strings The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. (шаблон класса) | |
| сравнивает две строки в соответствии с текущей локали Original: compares two strings in accordance to the current locale The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. (функция) | |
| сравнивает две строки широких в соответствии с текущей локали Original: compares two wide strings in accordance to the current locale The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. (функция) | |
| lexicographically compares two strings using this locale's collate facet (public функция-член std::locale)
| |