Instead, compare strings to the string values' true 'and' false '.
相反,应该将字符串与字符串值'true '和'false '比较。
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 .
例如,如果依赖于字符串内部化,但是所使用的解析器又不支持该特性,那么应用程序就必须使用equals来比较字符串。
Using the standard C string functions or your favorite string library, compare the common name and the host name.
使用标准的C字符串函数或您习惯使用的字符串库对通用名和主机名进行比较。
For example, perhaps you do not simply want to compare the attribute name to a string pattern, but actually look up whether the name is an attribute that has been stored in a persistent database.
例如,假设您并不想对属性名和字符串模式进行比较,而只是想查明具有该属性名的属性是否一直保存在持久性数据库中。
If you compare both the values, you will find that JSON returns only a string value without the overhead of XML node processing.
对以上两个结果进行对比,不难发现JSON返回的是一个没有XML顶部节点的字符串的值。
They can even go outside the bounds of the string itself to compare its consistency with external conditions, such as the inventory of a warehouse or the current stock price of a company.
甚至还可以超出字符串本身的边界,比较与外部条件的一致性,如库存目录或当前公司股票价格。
Compare this to Listing 1 where the result of key lookup is immediately narrowed down to the desired string by selecting s: name children.
与清单1相比,在清单1中,通过选择s:name子元素,就可以立即将查找结果限制为目标字符串。
Figure 4 takes String out of the equation and rescales the chart to show more clearly how Rope and StringBuffer performance compare.
图4从比较中撤出 String的结果,调整了图表的比例,更清楚地显示了Rope和StringBuffer性能的对比。
The scripts in figure 5 compare two String variables and generate a log message.
图5中的脚本比较了两个String变量并生成了一个日志消息。
On one version of the UnixWare compiler, references to STRCMP were translated automatically into an Intel processor's native string compare instruction.
在UnixWare编译器的某一个版本中,对strcmp的引用被自动转换为Intel处理器自己的字符串比较指令。
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.
这里不需要调用一个字符一个字符地进行比较的equals函数,相反,您可以通过引用将解析器报告的名称与字符串常量进行比较。
The key to using the method for validation is to compare the updated index to the length of the original input string.
使用该方法验证的关键在于将更新过的索引和初始输入字符串的长度进行比较。
If it does NOT say localhost, the information you need is still there - just carefully compare where localhost appears in this screenshot to what you have in your connection string.
如果没有显示本地主机,你所需要的信息应该在这里-只要将这个截屏中本地主机出现的位置与你的连接字符串仔细比较。
To avoid trouble, do not compare a string to the built-in Boolean functions true and false .
为了避免出现麻烦,不要将字符串与内置的Boolean函数true和false进行比较。
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.
在清单5中,测试不需要与字符串进行比较,因为变量返回一个Boolean类型而不是rtf作为select属性的结果。
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.
在这种情况下,将输入节点与一个名为id的节点相比较,id节点的子文本节点由传递给函数的Name字符串构成。
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).
要把元素或属性和字符串进行比较,或者将其传递给需要字符串参数的函数,必须使用(string)强制转换成字符串。
In the example, you can now compare the string value 42 to the integer column col1.
在这个例子中,现在可以将字符串值42与整数列col1进行比较。
Is there a function to compare a string to a larger string?
有一个函数来比较字符串到一个更大的字符串?
There's no need to compare it to a string and you don't gain anything by doing it that way.
没有必要把它比作一个字符串,你没有获得任何这样做。
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.
在这种情况下,你可以把哈希表存储在字符串数组中,然后你可以计算字符串的哈希值,然后与已经存储的字符串的哈希值进行比较。
Uses in the directional well, might in compare the low torque in the situation to sneak in high speed, reduces drilling string 's attrition and the breakage.
在定向井中使用,可以在较低扭矩的情况下高速钻进,减少了钻柱的磨损和破损。
Uses in the directional well, might in compare the low torque in the situation to sneak in high speed, reduces drilling string 's attrition and the breakage.
在定向井中使用,可以在较低扭矩的情况下高速钻进,减少了钻柱的磨损和破损。
应用推荐