소스 검색

textops: docs for str_any_in(...)

Daniel-Constantin Mierla 2 년 전
부모
커밋
945267c566
1개의 변경된 파일23개의 추가작업 그리고 0개의 파일을 삭제
  1. 23 0
      src/modules/textops/doc/textops_admin.xml

+ 23 - 0
src/modules/textops/doc/textops_admin.xml

@@ -1894,6 +1894,29 @@ if (str_ifind("$rU", "Alice")) {
 		</example>
 		</example>
 	</section>
 	</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">
 	<section id="textops.f.set_body_multipart">
 		<title>
 		<title>
 		<function moreinfo="none">set_body_multipart([txt, content_type][, boundary])</function>
 		<function moreinfo="none">set_body_multipart([txt, content_type][, boundary])</function>