字符串函数用于将一个字符串转换为整型数字。
The parseInt function parses a string and returns an integer.
使用基于字符的函数可以解决将字节位置返回为字符位置的问题。
The problem of byte positions being returned for the character positions can be solved using character-based functions.
冒号(:)字符分隔开了目标函数及其定义。
The colon (:) character separates the name of the objective function and its definition.
默认情况下,它不会检测所有函数,而只是检测确实需要保护的函数(主要是使用字符数组的函数)。
By default, it doesn't instrument all functions, only those that it deems as being in need of protection (mainly functions with character arrays).
当用ucs - 2数据类型调用时,SUBSTR和LENGTH等函数处理字符。
Functions like SUBSTR and LENGTH work with characters when called in conjunction with UCS-2 data types.
可以使用基于字符的函数来解决在locate函数中指定起始位置的问题,如图7所示。
The problem with specifying the start in the LOCATE function can be solved using the character-based functions, as shown in Figure 7.
由其名称可以明显看出,display是打印出参数的函数,而newline是只打印出一个回车换行字符的函数。
As is obvious from their names, display is a function that prints out its argument and newline is a function that simply prints out an end-of-line character.
如果采用特殊编码的某个字符的长度跨越了多个字节,则基于字符的字符串函数可以将每个字符处理为一个单元而不是一个字节序列。
If a character in a particular encoding spans multiple bytes, the character-based string functions can process each character as a single unit as opposed to a sequence of bytes.
一些函数的输入是数值,比如字符串函数的起始、长度和偏移量参数。
For some functions, a numeric value is input, for example start, length, and offset parameters of string functions.
这些函数处理或返回字符串。
尝试使用内置的字符串函数执行任何复杂的文本分析会导致难于调试和维护的庞大的函数和存储过程。
Attempting to perform any sophisticated text analysis using the built-in string functions results in massively large functions and stored procedures that are difficult to debug and maintain.
使用标准的C字符串函数或您习惯使用的字符串库对通用名和主机名进行比较。
Using the standard C string functions or your favorite string library, compare the common name and the host name.
本文向您简要地介绍了DB 2数据服务器中新增的基于字符的字符串函数。
This article provided you with an overview of the new character-based string functions in DB2 Data Server.
在调用解密命令之前,清单13中的字符串操作函数将替换丢失的格式。
The string manipulation functions in Listing 13 replace the lost formatting before the decryption command is called.
对于整个文档来说它是没有结构的字符串,但是利用新增加的字符串函数,我们可以根据需要执行进一步处理。
That's one unstructured string for the entire document, but with all the new string functions available, you can perform additional processing as needed.
考虑在使用新的基于字符的字符串函数执行字符串操作时可能导致这一状况的常见情形。
Consider some common conditions that can cause such situations while you do string manipulation using the new character-based string functions.
字符串函数的输入字符串数据可能拥有源字符串中的一些错误字符或无效字符。
The input string data to string functions may have wrong or invalid characters in the string that it is supplied with.
还了解了代码单元和基于字符的函数的概念。
You also learned about the concept of code units and character-based functions.
将更新过的文本字符串传递给这个函数。
如果使用CODEUNITS来获取字符的长度,则用作字符串函数输入的CODEUNITS的不同会导致输出的不同。
If you take the length of a character in CODEUNITS, the output differs according to the CODEUNITS used as inputs to the string function.
字符串变量的长度:substr函数的输入参数,决定了结果字符串的期望长度或length函数的输出。
Length of a string variable: Input argument for the SUBSTR function, which determines the desired length of the resulting string or output of the length function.
使用 COUNTSTRING函数决定调用的次数,这个函数计算 < 字符出现的次数。
The number of calls is determined using the COUNTSTRING function, which counts the number of occurrences of the < character.
使用基于字符的函数时不会发生用于构建字符的CODEUNITS分解。
The splitting of CODEUNITS used for making the character does not happen when using character-based functions.
在很多情形下,您需要根据代码单元计算的字符串长度,可以使用基于字符的函数来获取根据字符串单元计算的字符串长度。
In many situations, you need the string length in terms of code units, the character-based functions could be used to find the length of the string in terms of string units.
注意:新的字符串函数位于SYSIBM函数路径下,而旧一些的函数位于SYSFUN路径下。
Note that the new string function is under the SYSIBM function path, compared to the older functions under the SYSFUN version.
使用基于字符的字符串函数可以解决获取基于CODEUNITS的字符串长度时的问题。
The character-based string functions can be used to solve the problem of getting the length of string in terms of CODEUNITS.
一旦字符串处理函数失败,就把目标缓冲区设成NULL。
字符串函数拥有数值规范,或者说结果是输入数据相关的数值。
The string function has the specification of numeric value, or the result is a numeric value related to the input data.
字符串函数拥有数值规范,或者说结果是输入数据相关的数值。
The string function has the specification of numeric value, or the result is a numeric value related to the input data.
应用推荐