|
Definition and Usage
定義和用法
The strnatcmp() function compares two strings using a "natural" algorithm.
strnatcmp()函數的作用是:用自然運算法則比較字符串(大小寫敏感)。
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”中的第一個數字是“1”,它小于2。
This function returns:
這個函數將返回下列值:
•0 - if the two strings are equal
0
主站蜘蛛池模板:
濉溪县|
保靖县|
鄂托克旗|
利川市|
榆社县|
青州市|
山阳县|
西乌|
咸阳市|
宜都市|
武宁县|
盖州市|
恩平市|
吐鲁番市|
天门市|
屏东市|
航空|
嘉禾县|
北辰区|
玛沁县|
永城市|
凯里市|
文山县|
丰顺县|
嫩江县|
滦南县|
灵川县|
徐州市|
玉门市|
嘉祥县|
全南县|
浪卡子县|
东丰县|
镶黄旗|
淮滨县|
玉溪市|
吉首市|
边坝县|
鄂温|
宜良县|
寿光市|