Skip to content

Commit

Permalink
htable: docs for iterator sets and seti functions
Browse files Browse the repository at this point in the history
  • Loading branch information
miconda committed Oct 12, 2021
1 parent f971ec4 commit 7f6248d
Showing 1 changed file with 50 additions and 0 deletions.
50 changes: 50 additions & 0 deletions src/modules/htable/doc/htable_admin.xml
Expand Up @@ -1116,6 +1116,56 @@ sht_iterator_end("i1");
}
sht_iterator_end("i1");
...
</programlisting>
</example>
</section>
<section id="htable.f.sht_iterator_sets">
<title>
<function moreinfo="none">sht_iterator_sets(iname, sval)</function>
</title>
<para>
Set the value of the current item to the string in the sval.
</para>
<para>
The parameters can be dynamic strings with variables.
</para>
<para>
This function can be used from ANY_ROUTE.
</para>
<example>
<title><function>sht_iterator_sets</function> usage</title>
<programlisting format="linespecific">
...
sht_iterator_start("i1", "h1");
sht_iterator_next("i1");
sht_iterator_sets("i1", "$ci");
sht_iterator_end("i1");
...
</programlisting>
</example>
</section>
<section id="htable.f.sht_iterator_seti">
<title>
<function moreinfo="none">sht_iterator_seti(iname, ival)</function>
</title>
<para>
Set the value of the current item to the integer in the ival.
</para>
<para>
The parameters can be dynamic strings or integers with variables.
</para>
<para>
This function can be used from ANY_ROUTE.
</para>
<example>
<title><function>sht_iterator_seti</function> usage</title>
<programlisting format="linespecific">
...
sht_iterator_start("i1", "h1");
sht_iterator_next("i1");
sht_iterator_seti("i1", "20");
sht_iterator_end("i1");
...
</programlisting>
</example>
</section>
Expand Down

0 comments on commit 7f6248d

Please sign in to comment.