Browse Source

[trac4101] Move the substring examples into a screen

Shawn Routhier 9 years ago
parent
commit
ffb6947184
1 changed files with 10 additions and 26 deletions
  1. 10 26
      doc/guide/classify.xml

+ 10 - 26
doc/guide/classify.xml

@@ -213,32 +213,16 @@
           string.  If length is longer than the remaining portion of the string then
           string.  If length is longer than the remaining portion of the string then
           the entire remaining portion is returned.  Some examples may be helpful:
           the entire remaining portion is returned.  Some examples may be helpful:
 
 
-          <itemizedlist>
+            <screen>
-          <listitem><para>
+        substring('foobar', 0, 6) == 'foobar'
-            substring('foobar', 0, 6) == 'foobar'
+        substring('foobar', 3, 3) == 'bar'
-          </para></listitem>
+        substring('foobar', 3, all) == 'bar'
-          <listitem><para>
+        substring('foobar', 1, 4) == 'ooba'
-            substring('foobar', 3, 3) == 'bar'
+        substring('foobar', -5, 4) == 'ooba'
-          </para></listitem>
+        substring('foobar', -1, -4) == 'ooba'
-          <listitem><para>
+        substring('foobar', 5, -4) == 'ooba'
-            substring('foobar', 3, all) == 'bar'
+        substring('foobar', 10, 2) == ''
-          </para></listitem>
+            </screen>
-          <listitem><para>
-            substring('foobar', 1, 4) == 'ooba'
-          </para></listitem>
-          <listitem><para>
-            substring('foobar', -5, 4) == 'ooba'
-          </para></listitem>
-          <listitem><para>
-            substring('foobar', -1, -4) == 'ooba'
-          </para></listitem>
-          <listitem><para>
-            substring('foobar', 5, -4) == 'ooba'
-          </para></listitem>
-          <listitem><para>
-            substring('foobar', 10, 2) == ''
-          </para></listitem>
-          </itemizedlist>
         </section>
         </section>
       </para>
       </para>
     </section>
     </section>