Debian Codegraph @

opcodes/strstrip.xml

raw symbols SCIP
1 <!--Change refentry id and indexterm id-->
2 <refentry id="strstrip">
3 <indexterm id="IndexStrstrip"><primary>strstrip</primary></indexterm>
4 <!--Make sure the category below is a valid one! See categories.py-->
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 <!-- Please keep this below ~70 characters by using backslashes to avoid overflow in the pdf version-->
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 <!--To add examples, create the csd file in the examples directory, then run:-->
45 <!--python csd2docbook.py -f newopcodename.csd-->
46 <!--to generate the xml highlighted version used below-->
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 <!-- And put your name and other relevant information here-->
64 <title>Credits</title>
65 <para>By: &nameeduardo; 2020</para>
66 </refsect1>
67
68 <!--Now remember to add a link from the appropriate category in the Opcode Overview.-->
69 <!--Add the entity to manual.xml-->
70 <!--Add the entity reference in the appropriate place in opcodes/top.xml-->
71 <!--And you're set! Maybe delete the comments as well...-->
72
73 </refentry>