ExcludeLastWord.xml 1.5 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849
  1. <?xml version="1.0" encoding="UTF-8"?>
  2. <!DOCTYPE sect1 PUBLIC "-//OASIS//DTD DocBook XML V4.5//EN"
  3. "http://www.oasis-open.org/docbook/xml/4.5/docbookx.dtd">
  4. <sect1 id="ExcludeLastWord">
  5. <title>ExcludeLastWord</title>
  6. <para><emphasis role="bold">STD.Str.ExcludeLastWord<indexterm>
  7. <primary>STD.Str.ExcludeLastWord</primary>
  8. </indexterm><indexterm>
  9. <primary>Str.ExcludeLastWord</primary>
  10. </indexterm><indexterm>
  11. <primary>ExcludeLastWord</primary>
  12. </indexterm>(</emphasis> <emphasis>text</emphasis> <emphasis
  13. role="bold">)</emphasis></para>
  14. <informaltable colsep="0" frame="none" rowsep="0">
  15. <tgroup cols="2">
  16. <colspec colwidth="80.50pt" />
  17. <colspec />
  18. <tbody>
  19. <row>
  20. <entry><emphasis>text</emphasis></entry>
  21. <entry>A string containing words separated by whitespace. </entry>
  22. </row>
  23. <row>
  24. <entry>Return:</entry>
  25. <entry>ExcludeLastWord returns a STRING value.</entry>
  26. </row>
  27. </tbody>
  28. </tgroup>
  29. </informaltable>
  30. <para>The <emphasis role="bold">ExcludeLastWord</emphasis> function returns
  31. the <emphasis>text</emphasis> string with the last word removed. Words are
  32. separated by one or more whitespace characters. Whitespace after
  33. the last word is also removed.</para>
  34. <para>Example:</para>
  35. <programlisting format="linespecific">A := STD.Str.ExcludeLastWord('The quick brown fox');
  36. //A contains 'The quick brown'
  37. </programlisting>
  38. </sect1>