Skip to content

Commit

Permalink
pv: docs - reflect use of xavp fields for tokens by xavp_slist_explode()
Browse files Browse the repository at this point in the history
  • Loading branch information
miconda committed Oct 14, 2020
1 parent 2b4ec1c commit d2c444c
Showing 1 changed file with 6 additions and 5 deletions.
11 changes: 6 additions & 5 deletions src/modules/pv/doc/pv_admin.xml
Original file line number Diff line number Diff line change
Expand Up @@ -438,7 +438,8 @@ xavp_params_implode("x", "$var(out)");
the white spaces around the value.
</para>
<para>
The fourth parameter is the name of the xavp to hold the tokens.
The fourth parameter is the name of the root xavp to hold the tokens
in fields named 'v' and indexed from 0.
</para>
<para>
The values are stored as string type.
Expand All @@ -452,10 +453,10 @@ xavp_params_implode("x", "$var(out)");
...
xavp_slist_explode("a=b; c=d;", "=;", "t", "x");
# results in:
# $xavp(x[0]) = "a";
# $xavp(x[1]) = "b";
# $xavp(x[2]) = "c";
# $xavp(x[3]) = "d";
# $xavp(x[0]=&gt;v[0]) = "a";
# $xavp(x[0]=&gt;v[1]) = "b";
# $xavp(x[0]=&gt;v[2]) = "c";
# $xavp(x[0]=&gt;v[3]) = "d";
...
</programlisting>
</example>
Expand Down

0 comments on commit d2c444c

Please sign in to comment.