summaryrefslogtreecommitdiff
path: root/funcs/func_strings.c
diff options
context:
space:
mode:
authorTilghman Lesher <tilghman@meg.abyt.es>2009-05-31 17:52:28 +0000
committerTilghman Lesher <tilghman@meg.abyt.es>2009-05-31 17:52:28 +0000
commitba6f16d55faee2d740e57dfa358151905a6485e6 (patch)
treeaebd7a6ac52900e6b7cd2dddf09e2eeff80a2fe4 /funcs/func_strings.c
parent7ef2d7bca7cf10eff7a51154b457cd51059541dc (diff)
Fix documentation for FIELDQTY.
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@198470 65c4cc65-6c06-0410-ace0-fbb531ad65f3
Diffstat (limited to 'funcs/func_strings.c')
-rw-r--r--funcs/func_strings.c7
1 files changed, 6 insertions, 1 deletions
diff --git a/funcs/func_strings.c b/funcs/func_strings.c
index b4f29b132..de711f62f 100644
--- a/funcs/func_strings.c
+++ b/funcs/func_strings.c
@@ -51,7 +51,12 @@ AST_THREADSTORAGE(result_buf);
<parameter name="delim" required="true" />
</syntax>
<description>
- <para>Example: ${FIELDQTY(ex-amp-le,-)} returns 3</para>
+ <para>The delimiter may be specified as a special or extended ASCII character, by encoding it. The characters
+ <literal>\n</literal>, <literal>\r</literal>, and <literal>\t</literal> are all recognized as the newline,
+ carriage return, and tab characters, respectively. Also, octal and hexadecimal specifications are recognized
+ by the patterns <literal>\0nnn</literal> and <literal>\xHH</literal>, respectively. For example, if you wanted
+ to encode a comma as the delimiter, you could use either <literal>\054</literal> or <literal>\x2C</literal>.</para>
+ <para>Example: If ${example} contains <literal>ex-amp-le</literal>, then ${FIELDQTY(example,-)} returns 3.</para>
</description>
</function>
<function name="LISTFILTER" language="en_US">