| 1 | |
| 2 | <refentry id="strindex"> |
| 3 | <indexterm id="Indexstrindex"><primary>strindex</primary></indexterm> |
| 4 | <refentryinfo><title>Strings:Manipulation</title></refentryinfo> |
| 5 | <refmeta> |
| 6 | <refentrytitle>strindex</refentrytitle> |
| 7 | </refmeta> |
| 8 | |
| 9 | |
| 10 | |
| 11 | <refnamediv> |
| 12 | <refname>strindex</refname> |
| 13 | <refpurpose> |
| 14 | Return the position of the first 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 first occurence of S2 in S1, or -1 if not |
| 22 | found. If S2 is empty, 0 is returned. strindex runs at init time only. |
| 23 | </para> |
| 24 | </refsect1> |
| 25 | |
| 26 | <refsect1> |
| 27 | <title>Syntax</title> |
| 28 | <synopsis>ipos <command>strindex</command> S1, S2</synopsis> |
| 29 | </refsect1> |
| 30 | |
| 31 | <refsect1> |
| 32 | <title>See Also</title> |
| 33 | <para><link linkend="stringmanipulate"><citetitle></citetitle>String Manipulation Opcodes</link></para> |
| 34 | </refsect1> |
| 35 | |
| 36 | <refsect1> |
| 37 | <title>Credits</title> |
| 38 | <para> |
| 39 | <simplelist> |
| 40 | <member>Author: Istvan Varga</member> |
| 41 | <member>2006</member> |
| 42 | </simplelist> |
| 43 | </para> |
| 44 | <para>New in version 5.02</para> |
| 45 | </refsect1> |
| 46 | </refentry> |