Debian Codegraph @

opcodes/strsub.xml

raw symbols SCIP
1
2 <refentry id="strsub">
3 <indexterm id="Indexstrsub"><primary>strsub</primary></indexterm>
4 <refentryinfo><title>Strings:Manipulation</title></refentryinfo>
5 <refmeta>
6 <refentrytitle>strsub</refentrytitle>
7 </refmeta>
8
9
10
11 <refnamediv>
12 <refname>strsub</refname>
13 <refpurpose>
14 Extract a substring
15 </refpurpose>
16 </refnamediv>
17
18 <refsect1>
19 <title>Description</title>
20 <para>
21 Return a substring of the source string. strsub runs at init time only.
22 </para>
23 </refsect1>
24
25 <refsect1>
26 <title>Syntax</title>
27 <synopsis>Sdst <command>strsub</command> Ssrc[, istart[, iend]]</synopsis>
28 </refsect1>
29
30 <refsect1>
31 <title>Initialization</title>
32
33 <para>
34 <emphasis>istart</emphasis>
35 (optional, defaults to 0) -- start position in Ssrc, counting from 0.
36 A negative value means the end of the string.
37 </para>
38
39 <para>
40 <emphasis>iend</emphasis>
41 (optional, defaults to -1) -- end position in Ssrc, counting from 0.
42 A negative value means the end of the string. If iend is less than
43 istart, the output is reversed.
44 </para>
45 </refsect1>
46
47 <refsect1>
48 <title>Examples</title>
49 <para>
50 Here is an example of the strsub opcode. It uses the file <ulink url="examples/strsub.csd"><citetitle>strsub.csd</citetitle></ulink>.
51
52 <example>
53 <title>Example of the strsub opcode.</title>
54 <para>See the sections <link linkend="UsingRealTime"><citetitle>Real-time Audio</citetitle></link> and <link linkend="CommandFlags"><citetitle>Command Line Flags</citetitle></link> for more information on using command line flags.</para>
55 <xi:include href="examples-xml/strsub.csd.xml" xmlns:xi="http://www.w3.org/2001/XInclude"/>
56 </example>
57 </para>
58 </refsect1>
59
60 <refsect1>
61 <title>See Also</title>
62 <para><link linkend="stringmanipulate"><citetitle></citetitle>String Manipulation Opcodes</link></para>
63 </refsect1>
64
65 <refsect1>
66 <title>Credits</title>
67 <para>
68 <simplelist>
69 <member>Author: Istvan Varga</member>
70 <member>2006</member>
71 </simplelist>
72 </para>
73 </refsect1>
74 </refentry>