Debian Codegraph @

opcodes/strrindex.xml

raw symbols SCIP
1
2 <refentry id="strrindex">
3 <indexterm id="Indexstrrindex"><primary>strrindex</primary></indexterm>
4 <refentryinfo><title>Strings:Manipulation</title></refentryinfo>
5 <refmeta>
6 <refentrytitle>strrindex</refentrytitle>
7 </refmeta>
8
9
10
11 <refnamediv>
12 <refname>strrindex</refname>
13 <refpurpose>
14 Return the position of the last occurence of a string in another string
15 </refpurpose>
16 </refnamediv>
17
18 <refsect1>
19 <title>Description</title>
20 <para>
21 Return the position of the last occurence of S2 in S1, or -1 if not
22 found. If S2 is empty, the length of S1 is returned. strrindex runs
23 at init time only.
24 </para>
25 </refsect1>
26
27 <refsect1>
28 <title>Syntax</title>
29 <synopsis>ipos <command>strrindex</command> S1, S2</synopsis>
30 </refsect1>
31
32 <refsect1>
33 <title>Examples</title>
34 <para>
35 Here is an example of the strrindex opcode. It uses the file <ulink url="examples/strrindex.csd"><citetitle>strrindex.csd</citetitle></ulink>.
36
37 <example>
38 <title>Example of the strrindex opcode.</title>
39 <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>
40 <xi:include href="examples-xml/strrindex.csd.xml" xmlns:xi="http://www.w3.org/2001/XInclude"/>
41 </example>
42 </para>
43 </refsect1>
44
45 <refsect1>
46 <title>See Also</title>
47 <para><link linkend="stringmanipulate"><citetitle></citetitle>String Manipulation Opcodes</link></para>
48 </refsect1>
49
50 <refsect1>
51 <title>Credits</title>
52 <para>
53 <simplelist>
54 <member>Author: Istvan Varga</member>
55 <member>2006</member>
56 </simplelist>
57 </para>
58 <para>New in version 5.02</para>
59 </refsect1>
60 </refentry>