| 1 |
|
| 2 |
<refentry id="strstrip"> |
| 3 |
<indexterm id="IndexStrstrip"><primary>strstrip</primary></indexterm> |
| 4 |
|
| 5 |
<refentryinfo><title>Strings:Manipulation</title></refentryinfo> |
| 6 |
<refmeta> |
| 7 |
<refentrytitle>strstrip</refentrytitle> |
| 8 |
</refmeta> |
| 9 |
|
| 10 |
<refnamediv> |
| 11 |
<refname>strstrip</refname> |
| 12 |
<refpurpose> |
| 13 |
Strip whitespace from string |
| 14 |
</refpurpose> |
| 15 |
</refnamediv> |
| 16 |
|
| 17 |
<refsect1> |
| 18 |
<title>Description</title> |
| 19 |
<para>Plugin opcode in emugens.</para> |
| 20 |
<para> |
| 21 |
Strip whitespace from string. Whitespace can be removed from left, right or both sides. Works at init-time. |
| 22 |
</para> |
| 23 |
</refsect1> |
| 24 |
|
| 25 |
<refsect1> |
| 26 |
<title>Syntax</title> |
| 27 |
|
| 28 |
<synopsis>Sout <command>strstrip</command> Sin [, Smode]</synopsis> |
| 29 |
|
| 30 |
</refsect1> |
| 31 |
|
| 32 |
<refsect1> |
| 33 |
<title>Initialization</title> |
| 34 |
<para> |
| 35 |
<emphasis role="strong">Sin</emphasis> -- Input string |
| 36 |
</para> |
| 37 |
<para> |
| 38 |
<emphasis role="strong">Smode</emphasis> -- If not given, whitespace is stripped from both sides. If "l", strip whitespace from left side. If "r", strip whitespace from right side. |
| 39 |
</para> |
| 40 |
|
| 41 |
|
| 42 |
</refsect1> |
| 43 |
<refsect1> |
| 44 |
|
| 45 |
|
| 46 |
|
| 47 |
<title>Examples</title> |
| 48 |
<para> |
| 49 |
Here is an example of the strstrip opcode. It uses the file <ulink url="examples/strstrip.csd"><citetitle>strstrip.csd</citetitle></ulink>. |
| 50 |
<example> |
| 51 |
<title>Example of the strstrip opcode.</title> |
| 52 |
<xi:include href="examples-xml/strstrip.csd.xml" xmlns:xi="http://www.w3.org/2001/XInclude"/> |
| 53 |
</example> |
| 54 |
</para> |
| 55 |
</refsect1> |
| 56 |
|
| 57 |
<refsect1> |
| 58 |
<title>See Also</title> |
| 59 |
<para><link linkend="stringmanipulate"><citetitle></citetitle>String Manipulation Opcodes</link></para> |
| 60 |
</refsect1> |
| 61 |
|
| 62 |
<refsect1> |
| 63 |
|
| 64 |
<title>Credits</title> |
| 65 |
<para>By: &nameeduardo; 2020</para> |
| 66 |
</refsect1> |
| 67 |
|
| 68 |
|
| 69 |
|
| 70 |
|
| 71 |
|
| 72 |
|
| 73 |
</refentry> |