fr_assert(node->type == XLAT_GROUP);
/*
- * Concatenate child boxes, then to the desired type.
+ * Concatenate child boxes, then cast to the desired type.
*/
if (concat) {
if (fr_value_box_list_concat_in_place(ctx, vb, list, type, FR_VALUE_BOX_LIST_FREE, true, SIZE_MAX) < 0) {
return 0;
}
-#if 0
/*
* We have a nested xlat. This is likely bad. The caller SHOULD have checked for %{...}, and
* created an XLAT_GROUP, and then parsed that.
if (tmpl_contains_xlat(vpt)) {
fr_assert(!tmpl_needs_resolving(vpt));
fr_assert(!tmpl_contains_regex(vpt));
-
return 0;
}
-#endif
if (!tmpl_contains_data(vpt)) {
fr_assert(!tmpl_needs_resolving(vpt));
xlat_purify "hello " + (string)%{1 + 2} + " bob"
match "hello 3 bob"
-#
-# @todo - xlat_purify doesn't hoist results.
-#
xlat_purify "hello %{1 + 2} bob"
match "hello 3 bob"
xlat_purify %explode("a,b,c,d", ',')
match "a""b""c""d"
-#
-# @todo - bare words should probably be disallowed
-#
xlat_purify %md5('foo')
match 0xacbd18db4cc2f85cedef654fccc4a4d8