From 945267c56615d4579e3385f334bdfec7dfea6bcb Mon Sep 17 00:00:00 2001 From: Daniel-Constantin Mierla Date: Thu, 26 Jan 2023 14:59:02 +0100 Subject: [PATCH] textops: docs for str_any_in(...) --- src/modules/textops/doc/textops_admin.xml | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) diff --git a/src/modules/textops/doc/textops_admin.xml b/src/modules/textops/doc/textops_admin.xml index 2f9c12af954..e30bc39d3ef 100644 --- a/src/modules/textops/doc/textops_admin.xml +++ b/src/modules/textops/doc/textops_admin.xml @@ -1894,6 +1894,29 @@ if (str_ifind("$rU", "Alice")) { +
+ + <function moreinfo="none">str_any_in(txt, clist)</function> + + + Return 1 (true) if any character in "clist" is found inside "txt". + Both paramters can contain variables. + + + This function can be used from ANY_ROUTE. + + + <function>str_any_in</function> usage + +... +if (str_any_in("$hdr(X-Hdr)", ";',:")) { + # do interesting stuff here +} +... + + +
+
<function moreinfo="none">set_body_multipart([txt, content_type][, boundary])</function>