瀏覽代碼

textops: docs for ends_with() function

Daniel-Constantin Mierla 4 年之前
父節點
當前提交
9629dbce67
共有 1 個文件被更改,包括 25 次插入0 次删除
  1. 25 0
      src/modules/textops/doc/textops_admin.xml

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

@@ -1695,6 +1695,31 @@ if (starts_with("$rU", "+358"))
 		</example>
 	</section>
 
+	<section id="textops.f.ends_with">
+		<title>
+		<function moreinfo="none">ends_with(str1, str2)</function>
+		</title>
+		<para>
+		The function returns <emphasis>true</emphasis> if the first string ends
+		with the second string. The parameters can contain variables.
+		</para>
+		<para>
+		This function can be used from REQUEST_ROUTE, ONREPLY_ROUTE,
+		FAILURE_ROUTE and BRANCH_ROUTE.
+		</para>
+		<example>
+		<title><function>ends_with</function> usage</title>
+		<programlisting format="linespecific">
+...
+if (ends_with("$rU", "8800"))
+{
+    # 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>