Contains.xml 2.3 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576
  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="Contains">
  5. <title>Contains</title>
  6. <para><emphasis role="bold">STD.Str.Contains<indexterm>
  7. <primary>STD.Str.Contains</primary>
  8. </indexterm><indexterm>
  9. <primary>Str.Contains</primary>
  10. </indexterm><indexterm>
  11. <primary>Contains</primary>
  12. </indexterm>(</emphasis> <emphasis>source, pattern, nocase</emphasis>
  13. <emphasis role="bold">)</emphasis> <emphasis role="bold"></emphasis></para>
  14. <para><emphasis role="bold">STD.Uni.Contains<indexterm>
  15. <primary>STD.Uni.Contains</primary>
  16. </indexterm><indexterm>
  17. <primary>Uni.Contains</primary>
  18. </indexterm>(</emphasis> <emphasis>source, pattern, nocase</emphasis>
  19. <emphasis role="bold">)</emphasis></para>
  20. <informaltable colsep="0" frame="none" rowsep="0">
  21. <tgroup cols="2">
  22. <colspec colwidth="80.50pt" />
  23. <colspec />
  24. <tbody>
  25. <row>
  26. <entry><emphasis>source</emphasis></entry>
  27. <entry>A string containing the data to search.</entry>
  28. </row>
  29. <row>
  30. <entry><emphasis>pattern</emphasis></entry>
  31. <entry>A string containing the characters to compare. An empty
  32. string ( ‘’ ) always returns true.</entry>
  33. </row>
  34. <row>
  35. <entry><emphasis>nocase</emphasis></entry>
  36. <entry>A boolean true or false indicating whether to ignore the
  37. case.</entry>
  38. </row>
  39. <row>
  40. <entry>Return:<emphasis> </emphasis></entry>
  41. <entry>Contains returns a BOOLEAN value.</entry>
  42. </row>
  43. </tbody>
  44. </tgroup>
  45. </informaltable>
  46. <para>The <emphasis role="bold">Contains </emphasis>functions return true if
  47. all the characters in the <emphasis>pattern</emphasis> appear in the
  48. <emphasis>source, </emphasis>otherwise they return false.</para>
  49. <para>Example:</para>
  50. <programlisting format="linespecific">A := STD.Str.Contains(
  51. 'the quick brown fox jumps over the lazy dog',
  52. 'ABCdefghijklmnopqrstuvwxyz', true);
  53. B:= STD.Str.Contains(
  54. 'the speedy ochre vixen leapt over the indolent retriever',
  55. 'abcdefghijklmnopqrstuvwxyz', false);
  56. </programlisting>
  57. <para></para>
  58. </sect1>