|
Definition and Usage
定義和用法
The strnatcmp() function compares two strings using a "natural" algorithm.
strnatcmp()函數(shù)的作用是:用自然運算法則比較字符串(大小寫敏感)。
In a natural algorithm, the number 2 is less than the number 10. In computer sorting, 10 is less than 2, because the first number in "10" is less than 2.
在“自然運算法則”中,2比10小。在計算機序列當中,10比2小,因為“10”中的第一個數(shù)字是“1”,它小于2。
This function returns:
這個函數(shù)將返回下列值:
•0 - if the two strings are equal
0
主站蜘蛛池模板:
尚义县|
任丘市|
禹城市|
思茅市|
嘉鱼县|
故城县|
丹江口市|
女性|
额尔古纳市|
开封县|
无极县|
阿瓦提县|
朔州市|
鹤峰县|
无极县|
乐平市|
叶城县|
平阳县|
额敏县|
安溪县|
宜城市|
石门县|
稻城县|
深水埗区|
平遥县|
雷州市|
滕州市|
湖北省|
盱眙县|
胶州市|
盐城市|
永年县|
南川市|
乌拉特中旗|
铁岭市|
大余县|
宽城|
兴和县|
洮南市|
杨浦区|
梅河口市|