Going back to Listing 14, once we have the list of entries, we then use some simple string concatenation to create an XML document.
返回到清单14,在拥有条目列表之后,使用某个简单的字符串连接来创建XML文档。
Concatenation is the process to sequentially join multiple pieces of data, usually literal strings with non-string-literal data (most commonly, variables or other literals).
连接操作是一个顺序的连接多个数据片段的过程,通常是连接字符串和非字符串数据(绝大多数是变量或其它字符)。
The array concat function takes an array of strings as an input and returns a concatenation of the strings into a single string output.
arrayconcat函数获取一个字符串数组作为输入并在字符串输出中返回联接后的这些字符串。
We also have the added problem of duplicating the string concatenation using join(), which adds an extra second.
我们还添加了使用join()复制连接字符串的问题,这会额外增加1 秒的时间。
The string version of concatenation requires strings you want to join to be copied to a new location, which is an o (n) operation.
String版本的连接操作要求将需要连接的两个字符串复制到新位置,这是一种O (n)操作。
In this context, where this is the right-hand side of a String concatenation expression (using the plus sign), this.toString is invoked implicitly.
在这里的上下文中,this在一个String的链接表达式(使用加号)的右边,this . toString被隐式地调用了。
The printk function relies on a feature of the C language called string literal concatenation.
printk 是基于C语言中一个名为字符串逐字连接 的特性。
For any given string, the correct value is the concatenation of.
对于任意给定的字符串,正确值是由下列值并置而成的。
By passing in an empty string as the separator, you can perform a simple concatenation of all elements in an array.
如果传递一个空字符串作为分隔符,你可以简单地将数组的所有元素连接起来。
The following example prints a combination of a local variable, system functions, and a text string using concatenation.
下面的示例使用串联打印局部变量、系统函数和文本字符串的组合。
For concatenation, Numbers are coerced into a string representation of the numeric value, and chars are considered to be strings of length 1.
为了串连,数字会强制变为数值的字串表示,字元会当做长度为1的字串。
This warning indicates that a call to a string concatenation function is probably passing an incorrect value for the number of characters to concatenate.
此警告意味着在调用字符串串联函数时,所传递的表示串联字符数的值可能不正确。
This warning indicates that a call to a string concatenation function is probably passing an incorrect value for the number of characters to concatenate.
此警告意味着在调用字符串串联函数时,所传递的表示串联字符数的值可能不正确。
应用推荐