In fact, a string object is an instance of the STR class.
事实上,字符串对象是str类的一个实例。
Either way, the input is changed into a new string object.
两种方法都可以将输入的内容更改为新的字符串对象。
The results of that query are returned as a String object.
该查询的结果将作为一个String对象返回。
In this demo, we use it to cut a string object to StringArray.
在此演示应用程序中,我们将使用它把字符串对象分割为StringArray。
First the methods method is invoked on the string object "hello."
首先,对字符串对象“hello”调用methods方法。
The most common types to convert are to and from a string object.
最常见的转换类型是与字符串对象的相互转换。
Removes leading and trailing white space from a String object instance.
对象实例移除前导空白字符和尾随空白字符。
Format the calculation result back to a String object by using NumberConverter again.
通过再次使用NumberConverter,来将计算结果格式化回至String对象。
It implicitly casts the String object type to an object type (for the parameter list).
隐式地把String对象类型转换成object类型(用于参数列表)。
Conversely, use the encode method of a string object if you want a bytes literal from that string.
相反,如果想要从该字符串得到bytesliteral表示,可以使用字符串对象的encode方法。
One thread could see the STR reference refer to a String object in which the constructor has not run.
一个线程能看见str引用一个String对象,在该对象中构造函数尚未运行。
But you can also explicitly create a string object by using the STR class constructor, as shown in Listing 6.
但是您也可以使用str类构造函数显式地创建字符串对象,如清单6所示。
Normally, the data is read from the parser buffer into the string object, which is then pushed to the client buffer.
数据通常从分析器缓冲区读入字符串对象,然后,字符串对象被推送到客户端缓冲区。
For now, please note that it returns a String object, which is simply the HTML fragment that represents the transformed XML.
现在,要注意到它返回一个String对象,即表示转换后的XML的HTML片段。
This property's value is then persisted to a string object after the save state stage of the server control's life cycle.
然后该属性的值在服务器控件生命周期的保存状态阶段后保存到一个字符串对象。
In the case of the String version of the method, the results are sent back as a String object, instead of going through the stream.
如果是这个方法的String版本,那么是以String对象而不是经过流返回结果。
Therefore, any operation on a string, including string concatenation, produces a new string object, rather than modifying an existing one.
所以,在字符串上的任何操作,包括字符串连接,都产生一个新的字符串对象,而不是更改一个存在的字符串。
After the title string is added to the items array, you release the title string object so that the next title is not appended to the previous title.
标题字符串添加到条目数组后,就释放标题字符串对象,这样下一个标题就不会添加到前一个标题上。
We can get a column? S value either by specifying the column index as an integer or the column name as a String object. I show both approaches in the code.
通过指定整数类型的列索引,或String对象类型的列名,就可以获得一个列的值。
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.
从对id方法两次调用的输出中可以看出,创建的新字符串对象中保存的是向原字符串中添加文本的结果。
For instance, I observed certain SOAP bindings create multiple copies of the SOAP request — with each request instantiated as a String object — for no apparent reason.
比如,我发现某些SOAP绑定创建SOAP请求的多个副本,每个请求都实例化为string对象——这样做并没有明显的理由。
The snapshot in Figure 2 highlights a memory leak (String object is leaking), along with the leak's container type (Vector object), and root (TestThreeTierQueue object).
图2中的截图高亮度标示了一个内存泄漏(字符串对象正在泄漏),连同泄漏的包装形态(矢量对象)和根(TestThreeTierQueue对象)。
The only way for StringReader to see the str reference to be anything other than a String object with "hello" as its value is if the problem of out-of-order writes occurs.
如果发生了无序写入问题,则使StringReader看到str引用的惟一方法绝不是值为“hello”的String对象。
The previous example contains a class object and string.
前面的示例包含一个类对象和字符串。
We have a string that contains our array object, serialized in JSON format.
我们有了一个包含数组对象并且以json格式序列化的字符串。
Note that the argument passed in is not a string, but rather an object of your own creation.
注意,传递进来的参数不是字符串,而是您自己创建的一个对象。
Id: a unique string that identifies the object.
ID:用于标识对象的唯一字符串。
This string is then read into an XML object.
然后将该字符串读入XML对象。
A better choice is to put the configuration values into a single JSON object and store the serialized string of this JSON object.
一个更好的选择是将配置值放入单个JSON对象并存储此json对象的序列化字符串。
A better choice is to put the configuration values into a single JSON object and store the serialized string of this JSON object.
一个更好的选择是将配置值放入单个JSON对象并存储此json对象的序列化字符串。
应用推荐