|
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
主站蜘蛛池模板:
康马县|
读书|
洛南县|
达州市|
长兴县|
新宁县|
万州区|
安龙县|
铜陵市|
宿松县|
绥中县|
杭锦旗|
平谷区|
城市|
长沙县|
昌平区|
察隅县|
梁山县|
佛学|
安达市|
罗山县|
那曲县|
吴旗县|
清水河县|
靖西县|
八宿县|
南雄市|
云龙县|
凤凰县|
合川市|
巴林左旗|
扬中市|
北辰区|
济源市|
石家庄市|
德保县|
北碚区|
长乐市|
德格县|
平凉市|
海原县|