该函数首先解析选项的第二个词(第一个词是名字),将它变为大写形式,然后比较两个字符串,并返回-1、1或0。
This function first parses the second word from the option (the first word being the first name), changes it to upper case, and then compares the two strings and returns a -1, 1, or 0.
比如,compare方法比较两个字符串;sort和asort方法以与相应的php数组函数相同的方式对数组或关联数组进行排序。
For example, the compare method compares two strings; the sort and asort methods sort arrays or associative arrays in a way similar to the corresponding PHP array functions.
stringcomparator类:使用特定于地区的规则比较两个字符串。
Class StringComparator: Compares two strings using locale-specific rules.
type 将会与以下两个字符串之一进行比较:trolling或casting。
This type is evaluated for one of two strings: trolling or casting.
字符串校正有可能很复杂,因为必须按照已知的校对规则来比较两个字符串,该规则毫无疑问是特定于脚本和特定于语言的。
String collation can prove tricky because comparing two strings has to happen under known collation rules, which are invariably script - and language-specific.
比较操作可以确定第一个字符串是否在词法上排在第二个字符串之前,或者这两个字符串是否在词法上相等。
The comparison operation determines whether the first string lexical ly precedes the second or if the two strings are lexical ly equal.
两个字符串的区域敏感比较依赖于字符串中的每一个字符,有几个排序权重类别,包括语言、字母、大小写和音调符号权重。
A culture-sensitive comparison of two strings depends on each character in the strings having several categories of sort weights, including script, alphabetic, case, and diacritic weights.
这里我们以正确的方式比较两个字符串。
比较两个字符串,返回不同的部分。
Compares two Strings, and returns the portion where they differ.
我该如何比较两个字符串查找的字符数r相匹配?
How can I compare two strings to find the number of characters that match in r?
比较操作可以确定第一个字符串是否在词法上排在第二个字符串之前,或者这两个字符串是否在词法上相等。
The comparison operation determines whether the first string lexically precedes the second or if the two strings are lexically equal.
比较两个字符串是否相等,区分大小写。
Compares two Strings, returning true if they are equal ignoring the case.
比较两个字符串是否相等。
这样,如果两个字符串是单独创建的但具有相同的内容,则两者的比较结果为相等。
This allows two strings to compare as equal if each was created separately from the other but each has the same content.
使用指定的运算符和数据类型比较两个字符串。
Compares two strings using the specified operator and data type.
使用指定的运算符和验证数据类型比较两个字符串。
Compares two strings using the specified operator and validation data type.
比较操作可以确定是第一个字符串在词法上排在第二个字符串之前,还是这两个字符串在词法上相等。
The comparison operation determines whether the first string lexically precedes the second or the two strings are lexically equal.
比较两个字符串,返回第一次不同的位置。
Compares two Strings, and returns the index at which the Strings begin to differ.
比较两个字符串,返回第一次不同的位置。
Compares two Strings, and returns the index at which the Strings begin to differ.
应用推荐