string还包括了以常见方式(可以结合这些方式来构成几种罕见的转换)转换字符串的函数。
string also includes functions that transform strings in common ways (which you can combine to form several uncommon transformations). For example
并编写一个简单使用动态sql的SQL用户定义函数(UDF),转换字符串中传入的公式并计算值。
And writing a simple SQL User Defined Function (UDF) that USES dynamic SQL to convert the formula passed in the string and calculate the value.
translate (out,in [,pad])用输入输出表转换字符串12345 .translate (“qwertyuiop ”,“ 1234567890 ”)返回“qwerty ”。
String.translate (out, in [, pad]) Translates the string using the in and out tables 12345.translate (" qwertyuiop ", "1234567890") returns "qwerty".
除了一个监听器将输入字符串转换成大写字母之外,监听器的代码完全相同。
With the exception that one of the listeners converts the input string to uppercase, the code for the listeners is exactly the same.
字符串函数用于将一个字符串转换为整型数字。
The parseInt function parses a string and returns an integer.
因此,必须将保存的数据转换为字符串。
表格1和表格2显示了更多转换符号替代字符串的详细情况。
Table 1 and Table 2 show more details of the substitution strings for conversion symbols.
联接转换的目标必须是字符串。
多亏有了这个转换器,流得到了完全的处理,其内容也通过使用与HTTP交换相关的编码转换为字符串。
Thanks to it, the stream gets fully consumed and its content is transformed to a string, using the encoding relevant to the HTTP exchange.
将需要被附带上的数据编码,转换成字符串表示,并将其放置在XML有效载荷的soap体中。
The data that needs to be attached is encoded, converted to a string representation, and placed inside the SOAP body of an XML payload.
相应地,中介流将二进制负载的内容转换成字符串格式,它是构成传递到后台服务的SOAP请求的XML部分。
Accordingly, the mediation flow transforms the content of the binary payload to string format to be part of the XML making the SOAP request that is passed to the back end service.
所有的文本和字符实体都必须转换成字符串(如str_i)或实体(ENTITY)标记。
All text and character entities MUST be converted to string (e.g., STR_I) or entity (entity) tokens.
非字符数据隐式转换为字符串。
Noncharacter data is implicitly converted to a character string.
要将布尔值或整数存储到项目集,需要将该值转换为字符串。
To store a boolean value or an integer to the item set, the value needs to be converted to a string.
将传入的所有意料之外字符的所有变量都转换成字符串,并将其截断为合理的限制长度。
String all incoming variables of all unexpected characters and truncate the length to a reasonable limit.
获得响应数据,并将其转换为包含字符串的数组。
Get the response data, and convert it to an array containing strings.
保持Boolean函数true和false为booleans值,不让它们被意外地转换成字符串,是很困难的。
Keeping the Boolean functions true and false as Booleans without having them unintentionally converted to strings is difficult.
带有select属性的结果不被自动转换成字符串;因此,boolean值保持为boolean值。
The result with a select attribute is not automatically converted to a string; as such, a Boolean value remains a Boolean.
可以调用setlocale来确定字符集、错误消息类别、货币值格式、数字转换、字符串校勘和字母排序。
The setlocale call determines the character set, error messages catalogs, monetary value formatting, numerical conventions, string collation, and alphabetic ordering.
然后使用Dojo 的 dojo.toJson函数将它转换成JSON字符串。
Then you use Dojo's dojo.toJson function to turn this into a JSON string.
通过标准路径将文件转换成字符串才会导致异常。
The exception is caused by converting files into strings via canonical paths.
它把东西转换为字符串的格式。
该组件将标准类型转换成通用字符串类型,或者将通用字符串类型转换成某种标准类型。
This component converts any of the standard types to a generic string type and a generic string type to a standard type.
转换将字符串转换为对象,而大多数标准验证是对字符串进行的。
Conversion converts strings into objects, whereas most of the standard validators work on strings.
通过使用常量字符串,可以避免分配内存、复制字符串和编码转换过程。
By using a constant string, you avoid allocating memory, copying the string, and the transcoding process.
这意味着转换器还要负责将对象数据转换回字符串表示形式。
This means the converter is also responsible for transforming the object data back in to a string representation.
在这一点上,您也可能编辑映射并应用任何关于数据所需的转换(例如,将字符串转换为大写)。
At this point, you may also edit the mappings and apply any required transformations on the data (for example, converting strings to uppercase).
例如,若为字符串属性指派一个整型值,整型值将被转换为字符串。
For example, assigning an integer value to a string property will cause the integer to be converted to a string.
所以清单13同时完成这两项工作,它将字符串转换为数字,处理后再转换回字符串。
So Listing 13 does the job, converting string to number and back to string again.
string() 将数据转换成字符串格式,如果还不是字符串的话。
string() converts data into a string format, if it's not already in one.
应用推荐