从第一个正则表达式开始,创建一个来自数据文件的记录数组,然后循环执行其余的正则表达式以改进结果。
Starting with the first regular expression, create an array of records from the data file, then loop through the remaining regular expressions to refine the results.
上述模块显示了如何使用表达式和多个输入值添加人员解析到您的人工任务,使用一个含有数组输入的业务对象变量。
The above module showed how to add people resolution to your human task using expressions and multiple input values, which USES a business object variable with array inputs.
SQL假设查询内的每一个表达式都返回一个行和列的数组,而XML数据的异构本质与之相冲突。
The heterogeneous nature of XML data conflicts with the SQL assumption that every expression inside a query returns an array of rows and columns.
虽然保留最初的查询词数组不动,但是为每个词构建了正则表达式。
While leaving the original query words array intact, we build a regular expression for each word.
在现在,只要保证表达式计算的结果是一个集合或者数组就可以了。
For now, just ensure that expression evaluates to a collection or an array.
二者的实现基础完全相同,即在编译时将“var”替换成为分析得到的正确的变量或数组类型表达式。
Both work fundamentally the same way, at compile time the keyword "var" is replaced with the correct scalar or array type for the associated expression.
在此示例中,您甚至不需要使用数组或正则表达式库,因为使用到grep的管道容易多了。
In this example, you don't even need to use an array or a regular expression library, because a pipe to grep is much easier.
XPath表达式必须指向在处理扇出原语期间可以遍历的元素数组。
This XPath expression must point to an array of elements that can be iterated over during the processing of the Fan Out primitive.
采用PHP编写的第一个示例将捕获Shell命令“df—h”的输出,将输出放在一个数组中,然后根据一个正则表达式检查输出的每一行。
The first example, written in PHP, will capture the output of the shell command "df -h," place the output into an array, and then examine each line of output against a regular expression.
对于大多数Shell,人们经常提到的局限性之一在于,它们具有松散的变量类型、没有数据数组支持、没有用于执行基本的数学或表达式计算的内置功能。
One of the commonly quoted limitations of most shells is that they have loose variable typing, no support for arrays of data, and no built-in functionality to perform basic math or expressions.
在本章的后面,我们还将学到如何写链接表达式,以及了解它们为什么是数组。
We'll learn to write link expressions - and why they are arrays - later in the chapter.
对嵌套表达式求值的结果将被作为下标或键,用来检索集合或数组的适当元素。
The result of evaluating the nested expression will serve as the index or key for retrieving the appropriate element of the collection or array.
regmatch(re,text)函数将比较正则表达式和文本,如果没有匹配的话就生成Null 值,否则生成一个由成对整数组成的数组(双元素数组)。
The regmatch(re, text) function compares the regular expression to the text, yielding either Null for no matches or an array of pairs of integers (a two-element array).
使用XPath表达式来选择目标数组(请注意,括号未包括在XPath表达式中)。
The target array is selected using an XPath expression (note that the brackets aren't included on the XPath expression).
我们已经看到,在表达式中使用数组名时,实际上使用的是指向数组第一个元素的指针。
We have already seen that when we use an array name in an expression, we are actually using a pointer to the first element in the array.
此循环构造用于循环访问可枚举集合(例如,范围表达式、序列、列表、数组或其他支持枚举的构造)中的模式匹配项。
This looping construct is used to iterate over the matches of a pattern in an enumerable collection such as a range expression, sequence, list, array, or other construct that supports enumeration.
而且,与数据直接量相同,数组直接量中的元素不必仅限于常量,它可以是任意的表达式。
Also, as with object literals, the elements in array literals can be arbitrary expressions and need not be restricted to constants.
表达式分配和构造对象数组。
A new expression allocates and constructs an array of objects.
PCC的数组边界检查存在着由于无法确定数组下标表达式符号值的范围,而造成拒绝执行一些安全的移动代码等问题。
Some of the safe mobile codes may be rejected to execute, since there is no way to verify statically that the symbol range value of an array subscript expression in PCC.
以下代码是一个控制台应用程序,此程序使用正则表达式验证数组中每个字符串的格式。
The following code is a console application that uses regular expressions to validate the format of each string in an array.
这两个new表达式都分配了含有10个对象的数组。
Each of these new expressions allocates an array of ten objects.
该表达式计算器支持具有“通过值传递”的参数的函数调用,但不支持具有“通过引用传递”的参数、对象、数组、函数和字符串的函数调用。
The expression evaluator supports function calls with By Value arguments but does not support function calls with By Reference arguments, objects, arrays, functions, and strings.
扩展数组创建表达式(§7.5.10.2)的语法用以支持隐型数组创建表达式。
The syntax of array creation expressions (§7.5.10.2) is extended to support implicitly typed array creation expressions.
如果相应语句为某个表达式赋值,请用一个可写的变量、属性或数组元素替换该表达式。
If the statement assigns a value to an expression, replace the expression with a single writable variable, property, or array element.
得到谱指数和不规则体的漂移速度后,可以进一步得到由外尺度、电子密度均方起伏和不规则体厚度三个参数组成的表达式的值。
Then the expression, consisting of the outer scale, the thickness of the irregular slab and the RMS electron density fluctuation, can be got further.
获取或设置指示数组大小的表达式。
获取或设置指示数组大小的表达式。
应用推荐