📄 strcoll.3
字号:
.TH strcoll 3.SH Namestrcoll \- string collation comparison.SH Syntax.B int strcoll (\fIs1\fP, \fIs2\fP).br.B char \fI*s1\fP, \fI*s2\fP;.SH Description.NXR "strcoll subroutine"The .PN strcollfunction returns an integer less than, equal to, or greater than zero depending on whether the string pointed to by .I s1is lexicographically less than, equal to, or greater than the string pointed to by .I s2..PPThe .PN strcoll function performs the comparison by using the collating information defined in the program's locale, category.PN LC_COLLATE ..PPIn the C locale, characters collate as if they are unsigned.In all cases.PN strcollworks as if.PN strxfrmwere called on .I s1and \fIs2\fP, and.PN strcmpwas called on the resulting strings..SS International Environment.IP LC_COLLATE 15Contains the user requirements for language, territory, and codeset forthe character collation format. .PN LC_COLLATEaffects the behavior of regular expressions and the string collation functionsin .PN strcoll .If .PN LC_COLLATEis not defined in the current environment,.PN LANGprovides the necessary default..IP LANG 15If this environment is set and valid, .PN strcolluses the international language database named in the definition to determine the character collation formatting rules. If .PN LC_COLLATE is defined, its definition supercedes the definition of .PN LANG ..SH See Alsostring(3), setlocale(3), strxfrm(3), environ(5int)
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -