此警告意味着在应当使用字符串比较函数的位置使用了字符串复制函数。
This warning indicates that a string copy function was used where a string comparison function should have been used.
该函数首先解析选项的第二个词(第一个词是名字),将它变为大写形式,然后比较两个字符串,并返回-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.
如清单5所示,该函数只是比较两个给定的字符串,如果它们相等则返回1。
As you could see in Listing 5, the function just compares the two given strings and returns 1 (one) if they are equal.
比如,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.
为了避免出现麻烦,不要将字符串与内置的Boolean函数true和false进行比较。
To avoid trouble, do not compare a string to the built-in Boolean functions true and false .
在XPath表达式中,比较字符串和Boolean函数会得到非预期的结果。
In an XPath expression, comparing a string and a Boolean function can yield unexpected results.
这里不需要调用一个字符一个字符地进行比较的equals函数,相反,您可以通过引用将解析器报告的名称与字符串常量进行比较。
Instead of making calls to equals which compares strings character by character, you can compare names reported by the parser against string constants by reference.
第一行比较简单,我们定义了一个直接从字符串到ILisp的适配器,对adapt (“foobar ”,ILisp)的调用只是返回了lambda函数的结果。
The first line is simple: it defines an adapter directly from a string to ILisp, the call to adapt (" foo bar ", ILisp) just returns the results of the lambda function.
使用标准的C字符串函数或您习惯使用的字符串库对通用名和主机名进行比较。
Using the standard C string functions or your favorite string library, compare the common name and the host name.
基于hash的一个扩展索引支持一个名为equalstring的函数,该函数比较两个给定的字符串,看看它们是否相等。
A function called equalString, which compares two given strings to see if they are equal, is supported by an extended index based on hashing.
在这种情况下,将输入节点与一个名为id的节点相比较,id节点的子文本节点由传递给函数的Name字符串构成。
In this case, you compare the input node against a node named id that has a child text node made of the name string passed in to the function.
要把元素或属性和字符串进行比较,或者将其传递给需要字符串参数的函数,必须使用(string)强制转换成字符串。
To compare an element or attribute with a string or pass it into a function that requires a string, you must cast it to a string using (string).
函数的作用是:用自然运算法则比较字符串(大小写敏感)。
The strnatcmp() function compares two strings using a "natural" algorithm.
函数的作用是:用自然运算法则比较字符串(大小写敏感)。
The strnatcmp() function compares two strings using a "natural" algorithm.
应用推荐