12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849 |
- <?xml version="1.0" encoding="UTF-8"?>
- <!DOCTYPE sect1 PUBLIC "-//OASIS//DTD DocBook XML V4.5//EN"
- "http://www.oasis-open.org/docbook/xml/4.5/docbookx.dtd">
- <sect1 id="ExcludeLastWord">
- <title>ExcludeLastWord</title>
- <para><emphasis role="bold">STD.Str.ExcludeLastWord<indexterm>
- <primary>STD.Str.ExcludeLastWord</primary>
- </indexterm><indexterm>
- <primary>Str.ExcludeLastWord</primary>
- </indexterm><indexterm>
- <primary>ExcludeLastWord</primary>
- </indexterm>(</emphasis> <emphasis>text</emphasis> <emphasis
- role="bold">)</emphasis></para>
- <informaltable colsep="0" frame="none" rowsep="0">
- <tgroup cols="2">
- <colspec colwidth="80.50pt" />
- <colspec />
- <tbody>
- <row>
- <entry><emphasis>text</emphasis></entry>
- <entry>A string containing words separated by whitespace. </entry>
- </row>
- <row>
- <entry>Return:</entry>
- <entry>ExcludeLastWord returns a STRING value.</entry>
- </row>
- </tbody>
- </tgroup>
- </informaltable>
- <para>The <emphasis role="bold">ExcludeLastWord</emphasis> function returns
- the <emphasis>text</emphasis> string with the last word removed. Words are
- separated by one or more whitespace characters. Whitespace after
- the last word is also removed.</para>
- <para>Example:</para>
- <programlisting format="linespecific">A := STD.Str.ExcludeLastWord('The quick brown fox');
- //A contains 'The quick brown'
- </programlisting>
- </sect1>
|