When working with string data, you can use either double quotation marks or single quotation marks to delimit them.
在处理字符串数据时,可以使用双引号或单引号分隔。
Adding data to the element and appending the element as a child of the row is straightforward when working with string values, as in Listing 12.
在处理字符串值时,向元素添加数据和将元素附加为行的子元素是非常直观的,如清单12所示。
When working with strings and you need to check that the string is either of a certain length you'd understandably would want to use the strlen function.
当操作字符串并需要检验其长度是否满足某种要求时,你想当然地会使用strlen函数。
This approach still works, but with just String arrays as arguments, and a File argument for a working directory, the manner of customizing the sub-process wasn't always that easy.
该方法仍然有效,但是因为能以String数组作为参数、以File参数作为工作目录,所以用这种方法定制子进程比较困难。
A few simple examples will bring you up to speed on the Groovy String types I'll be working with in this article.
有一些简单的例子可以对GroovyString类型进行加速,在本文中我们将使用这些例子。
Sometimes you don't want the entire string value; you only want a portion of that string value. For example, when working with Active Directory you often get back names that look like this.
有些时候你不想要整个字符串的值:你只想要该字符串值的位置。
The benefits of working with XML in Groovy become even more evident when you store the XML in a String variable instead of a file.
当您将XML存储在String变量而不是文件中时,在Groovy中使用XML的好处会变得更加明显。
Ariane says it is working with a string of major hotel chains, including Hilton, IHG and Rezidor, to roll out various parts of its technology around the world.
Ariane说一些连锁酒店已经使用了他们的部分技术,包括希尔顿酒店、洲际酒店和Rezidor酒店。
In the Python example we've been working with so far implementing this would be to simply return the string representation of our ConfigProvider.
在我们一直使用的Python示例中,实现这一点只需要返回代表ConfigProvider的字符串。
In general, if the application is working with file names, persistence formats, or symbolic information that is not displayed to the user, results of string operations should not vary by culture.
一般而言,如果应用程序使用没有对使用者显示的档名、保存性格式或符号资讯,字串作业的结果便不应该因文化特性而有所不同。
The casing and tubing string are filled with a working fluid.
套管和管柱充满工作液。
The casing and tubing string are filled with a working fluid.
套管和管柱充满工作液。
应用推荐