[asterisk-commits] tilghman: branch 1.6.2 r198471 - in /branches/1.6.2: ./ funcs/func_strings.c
SVN commits to the Asterisk project
asterisk-commits at lists.digium.com
Sun May 31 12:53:37 CDT 2009
Author: tilghman
Date: Sun May 31 12:53:34 2009
New Revision: 198471
URL: http://svn.asterisk.org/svn-view/asterisk?view=rev&rev=198471
Log:
Merged revisions 198470 via svnmerge from
https://origsvn.digium.com/svn/asterisk/trunk
........
r198470 | tilghman | 2009-05-31 12:52:28 -0500 (Sun, 31 May 2009) | 2 lines
Fix documentation for FIELDQTY.
........
Modified:
branches/1.6.2/ (props changed)
branches/1.6.2/funcs/func_strings.c
Propchange: branches/1.6.2/
------------------------------------------------------------------------------
Binary property 'trunk-merged' - no diff available.
Modified: branches/1.6.2/funcs/func_strings.c
URL: http://svn.asterisk.org/svn-view/asterisk/branches/1.6.2/funcs/func_strings.c?view=diff&rev=198471&r1=198470&r2=198471
==============================================================================
--- branches/1.6.2/funcs/func_strings.c (original)
+++ branches/1.6.2/funcs/func_strings.c Sun May 31 12:53:34 2009
@@ -51,7 +51,12 @@
<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">
More information about the asterisk-commits
mailing list