Skip to content

Commit

Permalink
textops: docs for str_any_in(...)
Browse files Browse the repository at this point in the history
  • Loading branch information
miconda committed Jan 26, 2023
1 parent 7974425 commit 945267c
Showing 1 changed file with 23 additions and 0 deletions.
23 changes: 23 additions & 0 deletions src/modules/textops/doc/textops_admin.xml
Original file line number Diff line number Diff line change
Expand Up @@ -1894,6 +1894,29 @@ if (str_ifind("$rU", "Alice")) {
</example>
</section>

<section id="textops.f.str_any_in">
<title>
<function moreinfo="none">str_any_in(txt, clist)</function>
</title>
<para>
Return 1 (true) if any character in "clist" is found inside "txt".
Both paramters can contain variables.
</para>
<para>
This function can be used from ANY_ROUTE.
</para>
<example>
<title><function>str_any_in</function> usage</title>
<programlisting format="linespecific">
...
if (str_any_in("$hdr(X-Hdr)", ";',:")) {
# do interesting stuff here
}
...
</programlisting>
</example>
</section>

<section id="textops.f.set_body_multipart">
<title>
<function moreinfo="none">set_body_multipart([txt, content_type][, boundary])</function>
Expand Down

0 comments on commit 945267c

Please sign in to comment.