Commit ffb69471 authored by Shawn Routhier's avatar Shawn Routhier
Browse files

[trac4101] Move the substring examples into a screen

parent 4f0fc2f4
...@@ -213,32 +213,16 @@ ...@@ -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'
</para></listitem>
<listitem><para>
substring('foobar', 3, 3) == 'bar' substring('foobar', 3, 3) == 'bar'
</para></listitem>
<listitem><para>
substring('foobar', 3, all) == 'bar' substring('foobar', 3, all) == 'bar'
</para></listitem>
<listitem><para>
substring('foobar', 1, 4) == 'ooba' substring('foobar', 1, 4) == 'ooba'
</para></listitem>
<listitem><para>
substring('foobar', -5, 4) == 'ooba' substring('foobar', -5, 4) == 'ooba'
</para></listitem>
<listitem><para>
substring('foobar', -1, -4) == 'ooba' substring('foobar', -1, -4) == 'ooba'
</para></listitem>
<listitem><para>
substring('foobar', 5, -4) == 'ooba' substring('foobar', 5, -4) == 'ooba'
</para></listitem>
<listitem><para>
substring('foobar', 10, 2) == '' substring('foobar', 10, 2) == ''
</para></listitem> </screen>
</itemizedlist>
</section> </section>
</para> </para>
</section> </section>
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment