summaryrefslogtreecommitdiff
path: root/opcodes/strrindex.xml
blob: 05be5ff29448a8f0e895b3eb44a6d681eae76a1a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
<refentry id="strrindex">
<indexterm id="Indexstrrindex"><primary>strrindex</primary></indexterm>
  <refentryinfo><title>Strings:Manipulation</title></refentryinfo>
  <refmeta>
    <refentrytitle>strrindex</refentrytitle>
  </refmeta>



  <refnamediv>
    <refname>strrindex</refname>
    <refpurpose>
      Return the position of the last occurence of a string in another string
          </refpurpose>
  </refnamediv>

  <refsect1>
    <title>Description</title>
    <para>
      Return the position of the last occurence of S2 in S1, or -1 if not
      found. If S2 is empty, the length of S1 is returned. strrindex runs
      at init time only.
    </para>
  </refsect1>

  <refsect1>
    <title>Syntax</title>
    <synopsis>ipos <command>strrindex</command> S1, S2</synopsis>
  </refsect1>

  <refsect1>
    <title>Examples</title>
    <para>
      Here is an example of the strrindex opcode. It uses the file <ulink url="examples/strrindex.csd"><citetitle>strrindex.csd</citetitle></ulink>.

      <example>
        <title>Example of the strrindex opcode.</title>
        <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>
          <xi:include href="examples-xml/strrindex.csd.xml" xmlns:xi="http://www.w3.org/2001/XInclude"/>
      </example>
    </para>
  </refsect1>

  <refsect1>
	  <title>See also</title>
	  <para><link linkend="strrindexk"><citetitle>strrindexk</citetitle></link></para>
  </refsect1>

  <refsect1>
    <title>Credits</title>
    <para>
      <simplelist>
        <member>Author: Istvan Varga</member>
        <member>2006</member>
      </simplelist>
    </para>
    <para>New in version 5.02</para>
  </refsect1>
</refentry>