From d2c444c58b8f6f084f27e0129dc0cf02dfb6f7ba Mon Sep 17 00:00:00 2001 From: Daniel-Constantin Mierla Date: Wed, 14 Oct 2020 16:12:02 +0200 Subject: [PATCH] pv: docs - reflect use of xavp fields for tokens by xavp_slist_explode() --- src/modules/pv/doc/pv_admin.xml | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/src/modules/pv/doc/pv_admin.xml b/src/modules/pv/doc/pv_admin.xml index 3967b382347..61df878c3ae 100644 --- a/src/modules/pv/doc/pv_admin.xml +++ b/src/modules/pv/doc/pv_admin.xml @@ -438,7 +438,8 @@ xavp_params_implode("x", "$var(out)"); the white spaces around the value. - 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. The values are stored as string type. @@ -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]=>v[0]) = "a"; +# $xavp(x[0]=>v[1]) = "b"; +# $xavp(x[0]=>v[2]) = "c"; +# $xavp(x[0]=>v[3]) = "d"; ...