Пространства имён
Варианты
Действия

std::collate_byname

Материал из cppreference.com

 
 
Локализация библиотеки
Языки и граней
Original:
Locales and facets
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
locale
Персонаж классификации
Original:
Character classification
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
Преобразования
Original:
Conversions
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
Facet классов категории базу
Original:
Facet category base classes
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
Facet категорий
Original:
Facet categories
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
Язык конкретных аспектов
Original:
Locale-specific facets
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
Код аспекты преобразования
Original:
Code conversion facets
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
codecvt_utf8(C++11)
codecvt_utf16(C++11)
C локали
Original:
C locale
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
 
Заголовочный файл <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.
Две специализации осуществляется стандартной библиотеки
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.
Определено в файле <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) [edit]
Вызывает 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) [edit]
Вызывает 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) [edit]

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 функция-член) [edit]
[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 функция-член) [edit]
[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 функция-член) [edit]

[править] 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.

[править] Пример

[править] См. также

определяет лексикографическое сравнение и хэширования строк
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.

(шаблон класса) [edit]
сравнивает две строки в соответствии с текущей локали
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.

(функция) [edit]
сравнивает две строки широких в соответствии с текущей локали
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.

(функция) [edit]
lexicographically compares two strings using this locale's collate facet
(public функция-член std::locale) [edit]