Procházet zdrojové kódy

posops: docs for pos_set_char()

Daniel-Constantin Mierla před 3 roky
rodič
revize
b9e8e09fd5
1 změnil soubory, kde provedl 26 přidání a 0 odebrání
  1. 26 0
      src/modules/posops/doc/posops_admin.xml

+ 26 - 0
src/modules/posops/doc/posops_admin.xml

@@ -156,6 +156,32 @@ pos_insert("100", "kamailio-$si");
 				<programlisting format="linespecific">
 ...
 pos_insert("100", "10");
+...
+				</programlisting>
+			</example>
+		</section>
+		<section id="posops.f.pos_set_char">
+			<title>
+				<function moreinfo="none">pos_set_char(idx, val)</function>
+			</title>
+			<para>
+			Set the char at position index to first character in val.
+			</para>
+			<para>
+			The idx can be an integer value or a variable holding an integer. If
+			the value is negative, the position is counted from the end of the buffer.
+			</para>
+			<para>
+			The val can be a static string or variables.
+			</para>
+			<para>
+			This function can be used from ANY_ROUTE.
+			</para>
+			<example>
+				<title><function>pos_set_char()</function> usage</title>
+				<programlisting format="linespecific">
+...
+pos_set_char("100", "x");
 ...
 				</programlisting>
 			</example>