用德语排序比较字符串。
读一些关于如何比较字符串的文章。
我怎样使用通配字符比较字符串?
我怎样使用通配字符比较字符串?
我怎样使用文件名通配模式比较字符串?
如何比较字符串在组装吗?
函数的作用是:用自然运算法则比较字符串(大小写敏感)。
The strnatcmp() function compares two strings using a "natural" algorithm.
在XPath表达式中,比较字符串和Boolean函数会得到非预期的结果。
In an XPath expression, comparing a string and a Boolean function can yield unexpected results.
除了一种例外,XSLT 1.0总是按照每个Unicode字符的代码点比较字符串。
With one exception, XSLT 1.0 always compared strings on the basis of the code points of their individual Unicode characters.
我们发现涉及大量行的查询的性能差异比较大,比如对所有20,000个XML文档进行全表扫描并对每个文档比较字符串。
We found a bigger difference for queries that touch a large number of rows, such as a table scan over all 20,000 XML documents with string comparison on every document.
例如,如果依赖于字符串内部化,但是所使用的解析器又不支持该特性,那么应用程序就必须使用equals来比较字符串。
For instance, if you rely on string internalization but the parser you are using does not support it, your application must compare strings using equals .
在查询运行时,尝试在雇员ID上执行字符串比较将遭到失败,并产生一个类型错误。
Any attempt to perform a string comparison on an employee ID will then fail with a type error at query run time.
强度属性决定在对文本字符串进行排序或比较时,是否考虑重音或大小写。
The strength attribute determines whether accent or case is taken into account when collating or comparing text strings.
该函数首先解析选项的第二个词(第一个词是名字),将它变为大写形式,然后比较两个字符串,并返回-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.
第二个属性s2指定强度级别,这决定在字符串排序或比较时是否考虑大小写或重音符号。
The second attribute S2 specifies the strength level which determines whether case or accent is taken into account when ordering or comparing strings.
所以在使用了命名空间的文档中,您几乎总是需要进行两次字符串比较,如清单3所示。
So in namespaced documents, you almost always need to perform two string comparisons, as shown in Listing 3.
使用该方法验证的关键在于将更新过的索引和初始输入字符串的长度进行比较。
The key to using the method for validation is to compare the updated index to the length of the original input string.
清单15、清单16和清单17分别演示如何使用文件、数字和字符串比较。
Listing 15, Listing 16, and Listing 17 display how you can use numeric, string, and file comparisons, respectively.
算法很简单,它对树的顶级项目进行迭代,并将其文本内容与搜索字符串进行比较(清单6中的第43- 52行)。
The algorithm is simple; it iterates through the top-level items of the tree and compares their text contents with the search string (lines 43 to 52 in listing 6).
当然,正则表达式被限定为严格的字符串比较。
Of course, regular expressions are limited to strict string comparisons.
强烈推荐对所有字符串比较使用“显式设置大小写的”运算对象,因为这样可以确保无论用户选项设置如何变化,脚本都可以可靠地执行。
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.
原来的查询比较一个字符串和一个数字,但是在修改后的查询中执行了显式的类型转换。
Here the original query is comparing a string to a number but in the modified query, explicit type-casting has been done.
经过实验,我还发现循环字符串比较操作速度都非常快。
Experimentally, I also found that a looping string comparison is faster than taking a slice.
如清单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.
要想创建对于所有字符串比较不区分大小写的数据库,需要使用排序规则UCA500R1,见清单4。
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.
换句话说,在不区分大小写的数据库中,字符串比较的开销可能会略微增加。
In other words, string comparisons may be slightly more expensive in a case-insensitive database.
比如,要保证比较的两个值是数字而不是字符串。
For example, trying to guarantee that two values will be compared as Numbers rather than strings.
正如您看到的,使用强类型资源类访问资源文件中的字符串比较简单。
As you can see, accessing strings from a resource file using a strongly typed resource class is pretty easy.
在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.
清单11展示了一个实现了Comparator接口的简单类,它通过比较每条记录的字符串内容对记录进行排序。
Listing 11 shows a simple class implementing the Comparator interface to sort records based on comparing the string contents of each record.
应用推荐