正则表达式参数是路由机制。
正如test的手册页指出的,test命令运算表达式参数的值,如果表达式的值是True,就返回零(True)退出值。
As the test man page states, the test command evaluates expression parameters and, if the expression value is True, returns a zero (True) exit value.
记住在这个表达式的两侧使用引号使参数和嵌入空格保持在一起,如清单2后部所示。
Remember to use quotes around this expression to keep parameters with embedded Spaces together as you saw back in Listing 2.
函数表达式将一个函数应用到一个或多个输入参数以创建新的表达式。
Functional expressions apply a function to one or more input arguments to create a new expression.
这两次方法调用的第一个参数是一个正则表达式,用于指定用户可能传入的URL。
The first argument of both of these calls is a regular expression specifying the URL that the customer may pass in.
每个请求参数都包含一个文本值或表达式。
Each request parameter can contain a literal value or an expression.
输入参数本身可以是表达式或文本值。
The input arguments themselves can be expressions or literal values.
运行时执行该查询时,实际的查询表达式是根据传递的参数来生成的,比如当前内容的组件值、当前站点区域,等等。
When this query is performed at runtime, the real query expression is generated depending on the parameter passed, such as component values of current content, current site area, and so on.
函数表达式的类型取决于函数的性质及其参数的类型。
The functional expression's type depends on the nature of the function and type of its arguments.
当然,有时候您不得不在参数周围加上圆括号,或者表达式没有按照您计划的方式求值,但该原则不仅如此。
Sure, there are times when you have to put parentheses around arguments or an expression doesn't evaluate the way you planned, but there's more to this principle than that.
类型参数就是表达式要计算的值的类型。
The type argument is the type of the value the expression evaluates to.
而每个参数也是一个表达式。
它还支持对添加的文件进行过滤,方法是使用文件的正则表达式模式传递第二个参数,以匹配文件并添加到归档中。
It also supports filtering of the files to add by passing a second parameter with the regular-expression pattern of files to match and add to the archive.
在本例中,仅有一个参数(列表达式),它将是一个字符串。
In the case of this example, you only have one parameter expected - the column expression - which will be one string.
大量UNIX命令使用正则表达式作为参数。
第二个参数是需要转换为语法对象的表达式。
The second parameter is the expression that needs to be converted into a syntax object.
要创建Pattern,必须调用它的compile,同时传递一个正则表达式作为参数。
To create a Pattern, you must call its compile , passing a regular expression as an argument.
因为lambda表达式拥有正确的参数和返回类型,编译器将证实可以把这些类型转换成Comparator,并生成完成此操作的相应代码。
Because the lambda expression has the right argument and return types, the compiler verifies that it can be converted into a Comparator and generates the appropriate code for doing so.
使用类似的表达式来从部分中的actionHTTP参数生成页面标题。(请参阅清单12)。
A similar expression is used to generate the page title from the action HTTP parameter in the section (see Listing 12).
使用基于OLAP的包时,使用值表达式作为tuple函数的参数的报告将生成以下错误消息。
When using OLAP based packages, reports which use value expressions as parameters to the tuple function produce the following error.
这些函数允许传递SQL参数占位符,作为嵌入式XQuery表达式的一个变量。
They allow you to pass SQL parameter markers as a variable into the embedded XQuery expressions.
这些参数传递到表达式对象的invoke方法。
These parameters are passed to the invoke method of the expression object.
这些参数的值为XPath表达式,并且可以利用表示输入连接的转换变量。
The values of these parameters are XPath expressions and can make use of transform variables representing the input connections.
新的方式更加复杂,但可以在Aggregation Widgets 下拉列表中得到一个不错的聚合,还为参数和表达式提供了漂亮的文本框。
The new way is a bit more complex, but the result is that you get a nice aggregation in the drop-down list of the Aggregation widget, with nice text boxes for the parameters and expressions.
一般来说,lambda函数接收任何数目的参数,并返回单个表达式的值。
In general, a lambda function is a function that takes any number of arguments and returns the value of a single expression.
注意第60行中作为SUM函数参数的XPath表达式。
Notice, in line 60, the XPath expression as argument of SUM function.
注意c:when标签需要test参数,这需要一个XPath表达式。
Notice that the c: when tags require a test parameter, which expects an XPath expression.
将参数传递给XQuery表达式。
注意select参数将使用XPath表达式。
lambda的其余参数是调用函数时的计算表达式。
The remaining arguments to lambda are the expressions to be evaluated when the function is called.
应用推荐