std::strcoll

来自cppreference.com

 
 
字符串库
null结尾的字符串
Original:
Null-terminated strings
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
字节的字符串
多字节字符串
宽字符串
Original:
Classes
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
basic_string
char_traits
 
NULL结尾的字节串
功能
Original:
Functions
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
字符操作
Original:
Character manipulation
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
转换为数字格式
Original:
Conversions to numeric formats
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
字符串操作
Original:
String manipulation
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
strcpy
strncpy
strcat
strncat
strxfrm
字符串检查
Original:
String examination
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
内存操作
Original:
Memory manipulation
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
memchr
memcmp
memset
memcpy
memmove
杂项
Original:
Miscellaneous
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
strerror
 
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.

目录

[编辑] 。参数。

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是“小于”(之前)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.
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.
。正值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.

[编辑] 。注释。

根据语言环境的字母是典型的字典排序顺序不区分大小写的比较,但在某些地区,字符组比较为单一的整理单位。例如,“通道”捷克语如下的“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.

[编辑] 。为例。

[编辑] 。另请参阅。

比较两个宽字符串,按照目前的语言环境
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]
[虚拟的] </ 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 [edit]
转换为字符串,这样的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.

(函数) [edit]
C documentation for strcoll
来自“http://zh.cppreference.com/mwiki/index.php?title=cpp/string/byte/strcoll&oldid=27416