Skip to content

Commit

Permalink
textopsx: docs for hf_iterator_rm()
Browse files Browse the repository at this point in the history
  • Loading branch information
miconda committed Jul 12, 2021
1 parent adc3bc1 commit 4a4b804
Showing 1 changed file with 28 additions and 0 deletions.
28 changes: 28 additions & 0 deletions src/modules/textopsx/doc/functions.xml
Expand Up @@ -561,6 +561,34 @@ hf_iterator_end("i1");
}
hf_iterator_end("i1");
...
</programlisting>
</example>
</section>
<section id="textopsx.f.hf_iterator_rm">
<title>
<function moreinfo="none">hf_iterator_rm(iname)</function>
</title>
<para>
Remove the header at the current iterator position.
</para>
<para>
The parameter can be dynamic string with variables.
</para>
<para>
This function can be used from ANY_ROUTE.
</para>
<example>
<title><function>hf_iterator_rm</function> usage</title>
<programlisting format="linespecific">
...
hf_iterator_start("i1");
while(hf_iterator_next("i1")) {
if($hfitname(i1)=="My-Header") {
hf_iterator_rm("i1");
}
}
hf_iterator_end("i1");
...
</programlisting>
</example>
</section>
Expand Down

0 comments on commit 4a4b804

Please sign in to comment.