所有这类方法都返回一个新字符串,而从来不会改变消息的接收者。
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.
调用了创建并返回新字符串的方法,但从未使用此新字符串。
A method that creates and returns a new string is called and the new string is never used.
使用动态字典时,发送端可以添加其映射不在静态字典中的新字符串。
With dynamic dictionaries, the sending side can add new strings and their mappings not already in the static dictionary.
只要将所需的文本放入一对引号中,就完成了一个新字符串的创建(参见清单1)。
You simply place the desired text inside a pair of quotation marks and voila: a new string (see Listing 1).
用户为项键入的新字符串被传递至事件,事件处理程序可以拒绝此更改。
The new string that the user types for the item is passed to the event, and the event handler can reject the change.
L10N团队将使用翻译数据库来翻译新字符串并且重新翻译更改的字符串。
The L10N team uses the translation database to translate new strings and retranslate changed strings.
更新hello .jsp,在其中添加一个名为hello的新字符串(图4)。
Update the hello.jsp by adding a new String called hello (Figure 4).
返回一个新字符串,其中当前实例中出现的所有指定字符串都替换为另一个指定的字符串。
Returns a new string in which all occurrences of a specified Unicode character in this instance are replaced with another specified Unicode character.
如果你要修改字符串里面的字符(而不是要建立一个新字符串),你最好还是用字符列表吧。
If you need the ability to change the characters in a string (as opposed to creating a new string), you might want to use a list of characters instead.
生成一个新字符串,其字符是将指定的函数应用于输入字符串的每个字符并连接结果字符串的结果。
Builds a new string whose characters are the results of applying a specified function to each of the characters of the input string and concatenating the resulting strings.
从对id方法两次调用的输出中可以看出,创建的新字符串对象中保存的是向原字符串中添加文本的结果。
As you can see from the output from the two calls to the id method, a new string object was created to hold the result of adding text to the original string.
写一个名叫rotate _ word的函数,接收一个字符串和一个整形为参数,返回将源字符串移位该整数位得到的新字符串。
Write a function called rotate_word that takes a string and an integer as parameters, and returns a new string that contains the letters from the original string rotated by the given amount.
string change_extension(constpath& oldpath, const std::string new_extension):此API将返回反映更改后的名称的新字符串。
std::string change_extension(const path& oldpath, const std::string new_extension): This API returns a new string that reflects the changed name.
使用regedit. exe,在键hkey_local_machine \ SOFT WARE \IBM \machinelocation下,我们创建了一个名为“location”的新字符串值,如图4。
Using regedit.exe under the key HKEY_LOCAL_MACHINE \ SOFTWARE \ IBM \ MachineLocation, we create a new string value called "location," as shown in Figure 4.
使用regedit. exe,在键hkey_local_machine \ SOFT WARE \IBM \machinelocation下,我们创建了一个名为“location”的新字符串值,如图4。
Using regedit.exe under the key HKEY_LOCAL_MACHINE \ SOFTWARE \ IBM \ MachineLocation, we create a new string value called "location," as shown in Figure 4.
应用推荐