std::strcoll
Материал из 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. |
| Заголовочный файл <cstring>
|
||
| int strcoll( const char* lhs, const char* rhs ); |
||
Сравнивает две строки с нулевым символом байт в соответствии с текущей локалью, как это определено LC_COLLATE категории.
Original:
Compares two null-terminated byte strings according to the current locale as defined by the LC_COLLATE category.
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.
Содержание |
[править] Параметры
| lhs, rhs | - | указателей на строки с нулевым символом байт для сравнения
Original: pointers to the null-terminated byte strings to compare The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. |
[править] Возвращаемое значение
Отрицательное значение, если
lhs является меньше (предшествует) rhs.Original:
Negative value if
lhs is less than (precedes) rhs.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.
0 если
lhs является равно rhs.Original:
0 if
lhs is equal to rhs.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.
Положительное значение, если
lhs является больше (следует) rhs.Original:
Positive value if
lhs is greater than (follows) rhs.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.
[править] 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: 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. (функция) | |
| [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 функция-член)
|
| преобразование строки, так что STRCMP бы тот же результат, как strcoll Original: transform a string so that strcmp would produce the same result as strcoll The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. (функция) | |
| C документация для strcoll
| |