当您使用一个字符串作为从一个函数返回值,它将正常工作。
When you are using a string literal as a return value from a function, it will work properly.
与使用单个字符串不同,file选项现在是使用一个字符串向量来定义的。
Instead of a single string, the file option is now defined with a vector of strings.
in _ word_set:该例程使用hash确定某个字符串是否属于用户提供的列表,大多数情况下只使用一个字符串比较。
In_word_set: This routine USES hash to determine whether a particular string belongs to the user-supplied list, using one string comparison in the most common case.
第 1 行使用一个字符串函数splitlines() 分隔服务器列表,然后将这些值作为一个变量appServers 进行存储。
Line 1 uses splitlines(), a string function, to separate the list of servers, and then these values are stored as a variable, appServers.
下面的示例是一个字符串算法,与计算生物学中经常使用的算法相似。
The next example is a string algorithm, like those commonly used in computational biology.
不管该资源原来是什么样子,这个操作会给您一个字符串,它都有所使用平台的正确行结束约定(估计可能合理)。
Doing this gives you a string that has the right end-of-line conventions for the platform you are running on, regardless of what the source resource looked like (within reason, presumably).
在使用API来获得并设置项目的值时,只有一个字符串可以用作数据类型。
When using APIs to get and set the value of an item, only a string can be used as the data type.
这类函数始终需要调用者为其提供一个字符串来进行格式化,因此应当使用命名参数。
Such a function would always require the caller to supply the string to be formatted, so that parameter should be explicitly named.
下面的这个例子使用raw _ input从命令提示符获取一个字符串,然后将值赋给quest。
The following example USES raw_input to grab a string from the command prompt, then assigns the value to quest.
存储了时间数据后,就可以使用nf函数创建一个字符串,它可以将数字转变为字符串。
With the time data stored, you then create a string using the nf function, which converts Numbers into strings.
这些在SyncML编码中根本没有使用,但是文档头部中发来一个字符串表,WML用上面那些元素处理经过标记的主体文本字符串。
The SyncML encoding doesn't use them at all, but WML uses them for including tokenized body-text strings from a string table sent in the preamble.
这种方法使用对一个字符串计算得到的摘要(digest)值,该字符串由两个文本值和密码组成。
This method USES a digest value computed over a string made up of two other text values combined with the password.
我们可以使用server类主方法并传递一个字符串数组作为其参数。
We can just use the Server class main method and pass the arguments as an array of Strings.
其次,注意,您使用as="xs:string"属性表明此函数返回一个字符串。
Second, notice that you used the as="xs:string" attribute to indicate that this function returns a string.
此脚本将此文件文本载入到一个字符串变量,将其explode到一个使用了新行的数组并根据此数组的第一个元素决定商家的名称。
The script loads the file text into a string variable, explodes it into an array using new lines, and determines the name of the vendor from the first element of the array.
您还可以使用XQuerystring - join函数将序列合并成一个字符串,如清单9所示。
You can also "implode" a sequence into a string with the XQuery string-join function, as in Listing 9.
您使用提取转换来提取该字符串的各个部分,并将那些部分分配给另一个字符串,或分配给任何其他基元类型,并注意我们在移动转换部分中提到的告诫。
You use the extract transform to extract parts of a string and assign those parts to another string, or to any other primitive type, with the caveat we mentioned in the move transform section.
如果任何属性使用了一个字符串数组,那么将只返回其中的一个字符串。
If any attribute has an array of strings, only one of them will be returned.
这里,第一个字符串使用一对单引号定义,第二个字符串使用一对双引号定义。
Here, the first string is defined with a pair of single quotes. The second one USES a pair of double quotes.
这类似于我们在正则表达式中使用“捕捉组”来提取我们需要的子字符串时来替代把一个字符串分隔成好几个的方法。
It is analogous to using "capture groups" in a regular expression to pull out substrings we want, instead of splitting the string in several successive steps to extract the substrings we want.
另一方面,很多服务均使用通用接口构建:一个字符串传入,另一个字符串传出,或者交换纯二进制对象。
On the other hand, many services are built with a somewhat generic interface: one string goes in and one string comes out, or plain binary objects are exchanged.
对于图形字符串,两个字节组成一个字符,使用双字节数来表示字符串的长度。
In the case of a graphic strings, two bytes constitute a character and you use the number of double bytes to represent the length of the string.
不要使用命令行参数来设置帐户状态,您要在构建文件中设置一个字符串值,任务会使用字符串值更新状态。
Instead of using the command-line parameter to set the account's status, you'll set a string value in the build file, and the task will use the string value to update the status.
第二个split方法演示如何使用不同的令牌字符(本例中使用的是冒号)将一个字符串分成一系列字符串。
The second split method demonstrates using a different token character -- in this case, a colon -- to split a string into a sequence of strings.
outline使用的seed非常简单,它只是一个字符串,到达树的分支的深度越深,该字符串就越长。
The seed used in outline is quite simple; it is just a string that gets longer as deeper branches of the tree are reached.
此外,可以通过在过程中使用writetrace函数,向soltrace . out文件发送一个字符串,从而创建一个用户定义的跟踪:writetrace (stringVARCHAR)。
In addition, you can create a user-defined trace by sending a string to the soltrace.out file by using the writetrace function in the procedure: writetrace (string VARCHAR).
例如,如果您想知道一个字符序列中是否存在car这个词,您会使用模式car,因为这是精确地表示该字符串的方法。
For instance, if you wanted to know if the word car existed within a character sequence, you would use the pattern car because that is how you represent the exact string.
通览cookies,使用每个cookies的一个元素形成一个字符串数组,然后使用该数组设置RequestOptions对象,如清单2所示。
You go through the cookies, form a string array with one element for each cookie, and then use this array to set up the RequestOptions object as shown in listing 2.
然后,我们为当前日期创建一个字符串,并使用它创建一个用于更新subscribedfeeds表的信息行。
Next, you create a string for the current date and use it to create a row of information to be used to update the subscribedfeeds table.
PHP使用所谓的二进制字符串—在php中,一个字符串并不是一个Unicode字符的字符串,而是一个字节序列。
PHP USES so-called binary strings - in PHP, a string is not a string of Unicode characters, but rather a sequence of bytes.
应用推荐