Begin by creating a recursive concat function.
首先创建递归的concat函数。
Concat itself is a an extension method implemented as such.
代码中的Concat是一个扩展方法(extension method),其实现如下。
We add additional implementations for: concat and: compare-criteria.
我们添加了额外的:concat和:compare - criteria实现。
Note that the eval-concat in Listing 7 only partially solves our problem.
请注意,清单7中的eval - concat仅仅是解决了我们的部分问题。
Concat joins two or more arrays. The method does not change the existing arrays.
联接两个或多个数组,该方法不改变现有的数组。
Figure 22 shows two fields using the Concat function to join into one single field.
图22显示了使用Concat功能联接为单个字段的两个字段。
This means instant file concat and compression from the command line with no extra work.
这就意味着文件的连接和压缩工作仅仅通过命令行便可以实现,而并不需要任何额外的工作。
As an example to illustrate one of these functions, let's consider the array concat function.
作为演示其中一个这类函数的例子,让我们考虑array concat函数。
The attributes and subelements of the tag are each a single string, so you compose them using concat .
标记的属性和子元素都是单个字符串,因此,可以使用concat函数连接它们。
To achieve the required output in this case, a Concat transform could be used with the following properties.
在此情况下,要实现所需的输出,可以提供以下属性使用Concat转换。
The print instruction emits the argument to standard output (stdout), and concat implements string concatenation.
print 指令发出标准输出(stdout)的参数,且 concat 实现字符串连接。
As an example to illustrate one of these functions, consider the array concat function with respect to Table 3.
作为一个例子,考虑表3中的array concat函数。
The can-simplify-concat function ACTS as the matcher function and the simplify-concat function ACTS as the editor.
can - simplify - concat函数作为匹配函数,simplify - concat函数则作为编辑器。
The Concat function will concatenate two or more strings from the source into a single string value on the target side.
Concat 函数将来自源的两个或多个字符串在目标端连接成一个单一的字符串值。
The built-in Concat function supports the specification of a prefix, postfix, and delimiters through its property page.
内置的 Concat 函数支持通过其属性页指定前缀、后缀和分隔符。
This is obvious in the Visitor implementation where you see all of the recursive calls to the eval-concat function.
在访问者实现中可以清楚地看到这一点,您可以看到对eval - concat函数的所有递归调用。
The second all-strings function similarly generates a conditional visitor that looks for a concat node with all string args.
第二个all - strings函数生成了一个条件访问者,它将查找带有全部字符串参数的concat节点。
To achieve the required output in the example shown in Table 1, you can use a Concat transform with the following properties
要在 表 1 所示的例子中实现理想的结果,可以通过下面的属性使用一个 Concat 转换
For a full solution, we would need to create a defmethod for every class that might hold an expression, and thus a concat node.
为了获得完整的解决方法,我们需要为可能包含表达式的每个类创建一个defmethod,从而得到一个concat节点。
The native string concat method accepts any number of arguments and appends each to the string that the method is called on.
原生字符串连接函数接受任意数目的参数,并将每一个参数都追加在调用函数的字符串上。
The array concat function takes an array of strings as an input and returns a concatenation of the strings into a single string output.
array concat函数获取一个字符串数组作为输入并在字符串输出中返回联接后的这些字符串。
This value attribute USES the XPath concat function to combine the literal string 'Hello' with the current value of the Name element in the model.
该value属性用XPath concat函数把文字串' Hello '和模型的Name元素的当前值连起来。
For example, we could search for concat functions with all string-literal values, then concatenate the arguments into a string value as in Figure 8.
举例来说,我们可以搜索带有全部字符串值的concat函数,随后将参数连接为一个字符串值,如图8所示。
The Full name calculation consists of the following expression using the IBM DB2 vendor specific relational function concat for the concatenation of strings.
Full name计算包含以下表达式,使用特定于IBM DB 2供应商的关系函数concat来串联字符串。
In this example, you see the use of functions like new-concat and new-compare-criteria, which were created by the defnode macro we called back in Listing 5.
在本例中,您看到了new - concat和new - compare - criteria等函数的用法,它们是由我们在清单5中调用的defnode宏创建的。
Once an array concat function is created within the Mapping Editor, the General TAB within the Properties View contains a table to specify input parameters to the function.
在Mapping Editor中创建了一个array concat函数后,Properties View中的General选项卡包含一个表,用于指定函数的输入参数。
For example, in Listing 18, we rewrote our concat evaluator to look for :concat nodes (function 1) that have all strings (function 2) and then evaluate the concat (function 3).
举例来说,在 清单 18 中,我们重写了 concat 求值程序,以便查找具有全部字符串(函数 2)的 :concat 节点(函数 1),随后对 concat 求值(函数 3)。
You can also aggregate strings from a sequence of strings: the new string-join function takes a sequence as an argument, unlike concat , which takes many arguments, each being a string.
还可以通过各字符串的序列来聚合字符串,新增的string - join函数以序列为参数,这与concat有所不同,它可以有很多参数,每个参数要求是字符串。
In Listing 15, we revisit our problem of evaluating a concat function by creating a match function (to find concat nodes with string-literal arguments) and an editor function (to evaluate the concat).
在清单15中,我们创建了一个match函数(用于查找具有字符串参数的连接节点)和一个editor函数(用于对连接求值),再次遇到了对concat函数求值的问题。