所有这类方法都返回一个新字符串,而从来不会改变消息的接收者。
All of these types of methods return a new string, never changing the receiver of the message.
然后,在从调用返回时将该缓冲区的内容复制到新字符串中。
It then copies the contents of the buffer into a new string on return from the call.
只要将所需的文本放入一对引号中,就完成了一个新字符串的创建(参见清单1)。
You simply place the desired text inside a pair of quotation marks and voila: a new string (see Listing 1).
I don't happen to like this, but he thinks that is, give a combination of a number multiplication in a string, this will in fact give us back a new string with that many replicas, if you like, of the string concatenated together.
我不喜欢这么做但是他认为,也就是说,返回一个字符串的,某个特定数字的倍数,这实际上会返回一个新字符串,一个原来的字符串的很多复制品,连接到一块的一个字符串。
应用推荐