所以在使用了命名空间的文档中,您几乎总是需要进行两次字符串比较,如清单3所示。
So in namespaced documents, you almost always need to perform two string comparisons, as shown in Listing 3.
原来的查询比较一个字符串和一个数字,但是在修改后的查询中执行了显式的类型转换。
Here the original query is comparing a string to a number but in the modified query, explicit type-casting has been done.
换句话说,在不区分大小写的数据库中,字符串比较的开销可能会略微增加。
In other words, string comparisons may be slightly more expensive in a case-insensitive database.
在XPath表达式中,比较字符串和Boolean函数会得到非预期的结果。
In an XPath expression, comparing a string and a Boolean function can yield unexpected results.
在UnixWare编译器的某一个版本中,对strcmp的引用被自动转换为Intel处理器自己的字符串比较指令。
On one version of the UnixWare compiler, references to STRCMP were translated automatically into an Intel processor's native string compare instruction.
在清单5中,测试不需要与字符串进行比较,因为变量返回一个Boolean类型而不是rtf作为select属性的结果。
In Listing 5, the test does not need to compare to a string because the variable returns a Boolean type rather than an RTF as a result of the select attribute.
例如,在Oracle中字符串'1 '可以与数字1比较,但是在DB 2中需要执行显式的类型转换。
For example, in Oracle, a string '1' can be compared with a numeric 1, but in DB2, explicit type-casting needs to be done.
在这种情况下,你可以把哈希表存储在字符串数组中,然后你可以计算字符串的哈希值,然后与已经存储的字符串的哈希值进行比较。
In this scenario, you could store hashes in the array with the strings. Then you could compute the hash of the other string and compare it to the stored hashes.
你可能会对数组中的每一个字符串进行比较,但是在实际项目中,你会发现这种做法对某些特殊应用来说太慢了。
You would probably begin by comparing each string in the list with the string other, but when put into application, you would find that this method is far too slow for practical use.
你可能会对数组中的每一个字符串进行比较,但是在实际项目中,你会发现这种做法对某些特殊应用来说太慢了。
You would probably begin by comparing each string in the list with the string other, but when put into application, you would find that this method is far too slow for practical use.
应用推荐