ExcludeNthWord.xml 1.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657
  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="ExcludeNthWord">
  5. <title>ExcludeNthWord</title>
  6. <para><emphasis role="bold">STD.Str.ExcludeNthWord<indexterm>
  7. <primary>STD.Str.ExcludeNthWord</primary>
  8. </indexterm><indexterm>
  9. <primary>Str.ExcludeNthWord</primary>
  10. </indexterm><indexterm>
  11. <primary>ExcludeNthWord</primary>
  12. </indexterm>(</emphasis> <emphasis>text, n</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><emphasis>n</emphasis></entry>
  25. <entry>A integer containing the ordinal position of the word to
  26. remove.</entry>
  27. </row>
  28. <row>
  29. <entry>Return:<emphasis> </emphasis></entry>
  30. <entry>ExcludeNthWord returns a STRING value.</entry>
  31. </row>
  32. </tbody>
  33. </tgroup>
  34. </informaltable>
  35. <para>The <emphasis role="bold">ExcludeNthWord </emphasis>function returns
  36. the <emphasis>text</emphasis> string with the <emphasis>n</emphasis>th word
  37. removed. Words are separated by one or more whitespace characters.
  38. Whitespace after the <emphasis>n</emphasis>th word is also removed (along
  39. with whitespace before, if <emphasis>n</emphasis>=1).</para>
  40. <para>Example:</para>
  41. <programlisting format="linespecific">A := STD.Str.ExcludeNthWord('The quick brown fox',2);
  42. //A contains 'The brown fox'
  43. </programlisting>
  44. </sect1>