Browse code

pv: docs - reflect use of xavp fields for tokens by xavp_slist_explode()

Daniel-Constantin Mierla authored on 14/10/2020 14:12:02
Showing 1 changed files
... ...
@@ -438,7 +438,8 @@ xavp_params_implode("x", "$var(out)");
438 438
 				the white spaces around the value.
439 439
 			</para>
440 440
 			<para>
441
-				The fourth parameter is the name of the xavp to hold the tokens.
441
+				The fourth parameter is the name of the root xavp to hold the tokens
442
+				in fields named 'v' and indexed from 0.
442 443
 			</para>
443 444
 			<para>
444 445
 				The values are stored as string type.
... ...
@@ -452,10 +453,10 @@ xavp_params_implode("x", "$var(out)");
452 453
 ...
453 454
 xavp_slist_explode("a=b; c=d;", "=;", "t", "x");
454 455
 # results in:
455
-#    $xavp(x[0]) = "a";
456
-#    $xavp(x[1]) = "b";
457
-#    $xavp(x[2]) = "c";
458
-#    $xavp(x[3]) = "d";
456
+#    $xavp(x[0]=&gt;v[0]) = "a";
457
+#    $xavp(x[0]=&gt;v[1]) = "b";
458
+#    $xavp(x[0]=&gt;v[2]) = "c";
459
+#    $xavp(x[0]=&gt;v[3]) = "d";
459 460
 ...
460 461
 				</programlisting>
461 462
 			</example>