summaryrefslogtreecommitdiff
path: root/opcodes/strrindex.xml
blob: 36e04b33e7d0b7afc840639a11f2d6569413c61e (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
<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>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>