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. |
| Defined in header <cstring>
|
||
| int strcoll( const char* lhs, const char* rhs ); |
||
。比较两个NULL结尾的字节串,根据当前语言环境的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 | - | 。
null结尾的字节串的指针进行比较。
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是“小于”(之前)rhsOriginal:
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是“大于”(如下)rhsOriginal:
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.
[编辑] 。注释。
根据语言环境的字母是典型的字典排序顺序不区分大小写的比较,但在某些地区,字符组比较为单一的整理单位。例如,“通道”捷克语如下的“h”与前面的“i”,和“及”在威尔士语如下“g”和前面的“h”.
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.
[编辑] 。为例。
| 本节是不完整的 原因: no example |
[编辑] 。另请参阅。
| 比较两个宽字符串,按照目前的语言环境 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. (函数) | |
| [虚拟的] </ SPAN></div></div>
|
使用这方面的排序规则比较两个字符串 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. (虚拟保护成员函数of 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 documentation for strcoll
| |