Of course, regular expressions are limited to strict string comparisons.
当然,正则表达式被限定为严格的字符串比较。
In other words, string comparisons may be slightly more expensive in a case-insensitive database.
换句话说,在不区分大小写的数据库中,字符串比较的开销可能会略微增加。
You can handle the first two aspects with JUnit alone using String comparisons, as shown in Listing 2.
可以通过单独使用JUnit利用String比较处理上述前两个方面,如清单2所示。
So in namespaced documents, you almost always need to perform two string comparisons, as shown in Listing 3.
所以在使用了命名空间的文档中,您几乎总是需要进行两次字符串比较,如清单3所示。
This month, I'll first show you why you don't want to use String comparisons to verify the structure and content of XML documents.
本月,我将首先向您说明为何不能使用String比较来验证XML文档的结构和内容。
To create a database that is case-insensitive for all string comparisons, it is necessary to use the collation UCA500R1 as shown in Listing 4.
要想创建对于所有字符串比较不区分大小写的数据库,需要使用排序规则UCA500R1,见清单4。
Using the "explicitly cased" operators for all string comparisons is strongly recommended, because they ensure that scripts behave reliably regardless of variations in the user's option Settings.
强烈推荐对所有字符串比较使用“显式设置大小写的”运算对象,因为这样可以确保无论用户选项设置如何变化,脚本都可以可靠地执行。
Listing 15, Listing 16, and Listing 17 display how you can use numeric, string, and file comparisons, respectively.
清单15、清单16和清单17分别演示如何使用文件、数字和字符串比较。
The test command is very powerful, but somewhat unwieldy given its requirement for escaping and given the difference between string and arithmetic comparisons.
test命令非常强大,但是很难满足其转义需求以及字符串和算术比较之间的区别。
If you need more detailed instructions, The XML Bible (see Resources) gives an excellent overview of XSL and XPath, including number conversions, comparisons and string operations.
如需更详细的说明,XMLBible(请参阅参考资料)会给您有关XSL和XPath的极好概述,包括数字转换、比较和字符串操作。
Do not change atomic types (string, integer, etc.) if queries are strongly typed or have value comparisons.
如果查询是强类型的或者需要进行值比较,不要改变原子类型(string、integer等)。
This enables you to do object comparisons on these strings rather than a more expensive string comparison.
这使您能够对这些字符串进行对象比较,而不是开销更大的字符串比较。
This enables you to do object comparisons on these strings rather than a more expensive string comparison.
这使您能够对这些字符串进行对象比较,而不是开销更大的字符串比较。
应用推荐