| 1 | |
| 2 | <refentry id="strsubk"> |
| 3 | <indexterm id="Indexstrsubk"><primary>strsubk</primary></indexterm> |
| 4 | <refentryinfo><title>Strings:Manipulation</title></refentryinfo> |
| 5 | <refmeta> |
| 6 | <refentrytitle>strsubk</refentrytitle> |
| 7 | </refmeta> |
| 8 | |
| 9 | |
| 10 | |
| 11 | <refnamediv> |
| 12 | <refname>strsubk</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. strsubk runs both at init and |
| 22 | performance time. |
| 23 | </para> |
| 24 | </refsect1> |
| 25 | |
| 26 | <refsect1> |
| 27 | <title>Syntax</title> |
| 28 | <synopsis>Sdst <command>strsubk</command> Ssrc, kstart, kend</synopsis> |
| 29 | </refsect1> |
| 30 | |
| 31 | <refsect1> |
| 32 | <title>Performance</title> |
| 33 | |
| 34 | <para> |
| 35 | <emphasis>kstart</emphasis> |
| 36 | -- start position in Ssrc, counting from 0. |
| 37 | A negative value means the end of the string. |
| 38 | </para> |
| 39 | |
| 40 | <para> |
| 41 | <emphasis>kend</emphasis> |
| 42 | -- end position in Ssrc, counting from 0. |
| 43 | A negative value means the end of the string. If kend is less than |
| 44 | kstart, the output is reversed. |
| 45 | </para> |
| 46 | </refsect1> |
| 47 | |
| 48 | <refsect1> |
| 49 | <title>See Also</title> |
| 50 | <para><link linkend="stringmanipulate"><citetitle></citetitle>String Manipulation Opcodes</link></para> |
| 51 | </refsect1> |
| 52 | |
| 53 | <refsect1> |
| 54 | <title>Credits</title> |
| 55 | <para> |
| 56 | <simplelist> |
| 57 | <member>Author: Istvan Varga</member> |
| 58 | <member>2006</member> |
| 59 | </simplelist> |
| 60 | </para> |
| 61 | </refsect1> |
| 62 | </refentry> |