re48.html 5.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181
  1. <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
  2. <html>
  3. <head>
  4. <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
  5. <title>&lt;GPatternSpec&gt;: </title>
  6. <meta name="generator" content="DocBook XSL Stylesheets V1.79.2">
  7. <link rel="home" href="index.html" title="">
  8. <link rel="up" href="ch01.html" title="GLib">
  9. <link rel="prev" href="re47.html" title="&lt;GOptionGroup&gt;">
  10. <link rel="next" href="re49.html" title="&lt;GPollFD&gt;">
  11. <meta name="generator" content="GTK-Doc V1.33.1 (XML mode)">
  12. <link rel="stylesheet" href="style.css" type="text/css">
  13. </head>
  14. <body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF">
  15. <table class="navigation" id="top" width="100%" summary="Navigation header" cellpadding="2" cellspacing="5"><tr valign="middle">
  16. <td width="100%" align="left" class="shortcuts"></td>
  17. <td><a accesskey="h" href="index.html"><img src="home.png" width="16" height="16" border="0" alt="Home"></a></td>
  18. <td><img src="up-insensitive.png" width="16" height="16" border="0"></td>
  19. <td><a accesskey="p" href="re47.html"><img src="left.png" width="16" height="16" border="0" alt="Prev"></a></td>
  20. <td><a accesskey="n" href="re49.html"><img src="right.png" width="16" height="16" border="0" alt="Next"></a></td>
  21. </tr></table>
  22. <div class="refentry">
  23. <a name="id-1.1.49"></a><div class="titlepage"></div>
  24. <div class="refnamediv">
  25. <h2>&lt;GPatternSpec&gt;</h2>
  26. <p>&lt;GPatternSpec&gt;</p>
  27. </div>
  28. <div class="refsect1">
  29. <a name="id-1.1.49.2"></a><h2>Description</h2>
  30. <p>A GPatternSpec struct is the 'compiled' form of a pattern. This
  31. structure is opaque and its fields cannot be accessed directly.</p>
  32. </div>
  33. <div class="refsect1">
  34. <a name="id-1.1.49.3"></a><h2>Functions</h2>
  35. <div class="refsect2">
  36. <a name="id-1.1.49.3.2"></a><h3>copy</h3>
  37. <div class="informalexample"><pre class="programlisting">(define-values (%return) (pattern-spec:copy self))
  38. </pre></div>
  39. <p>Undocumented</p>
  40. <div class="refsect3">
  41. <a name="id-1.1.49.3.2.4"></a><h4>Parameters</h4>
  42. <div class="informaltable"><table><tr>
  43. <td class="parameter_name"><p>pspec</p></td>
  44. <td class="parameter_description">
  45. <p></p>
  46. <p>Passed as <code class="code">self</code></p>
  47. </td>
  48. </tr></table></div>
  49. </div>
  50. </div>
  51. <div class="refsect2">
  52. <a name="id-1.1.49.3.3"></a><h3>equal?</h3>
  53. <div class="informalexample"><pre class="programlisting">(define-values (%return) (pattern-spec:equal? self pspec2))
  54. </pre></div>
  55. <p>Compares two compiled pattern specs and returns whether they will
  56. match the same set of strings.</p>
  57. <div class="refsect3">
  58. <a name="id-1.1.49.3.3.4"></a><h4>Parameters</h4>
  59. <div class="informaltable"><table>
  60. <tr>
  61. <td class="parameter_name"><p>pspec1</p></td>
  62. <td class="parameter_description">
  63. <p>a <span class="type">GPatternSpec</span></p>
  64. <p>Passed as <code class="code">self</code></p>
  65. </td>
  66. </tr>
  67. <tr>
  68. <td class="parameter_name"><p>pspec2</p></td>
  69. <td class="parameter_description">
  70. <p>another <span class="type">GPatternSpec</span></p>
  71. <p>Passed as <code class="code">pspec2</code></p>
  72. </td>
  73. </tr>
  74. </table></div>
  75. </div>
  76. </div>
  77. <div class="refsect2">
  78. <a name="id-1.1.49.3.4"></a><h3>free</h3>
  79. <div class="informalexample"><pre class="programlisting">(define-values () (pattern-spec:free self))
  80. </pre></div>
  81. <p>Frees the memory allocated for the <span class="type">GPatternSpec</span>.</p>
  82. <div class="refsect3">
  83. <a name="id-1.1.49.3.4.4"></a><h4>Parameters</h4>
  84. <div class="informaltable"><table><tr>
  85. <td class="parameter_name"><p>pspec</p></td>
  86. <td class="parameter_description">
  87. <p>a <span class="type">GPatternSpec</span></p>
  88. <p>Passed as <code class="code">self</code></p>
  89. </td>
  90. </tr></table></div>
  91. </div>
  92. </div>
  93. <div class="refsect2">
  94. <a name="id-1.1.49.3.5"></a><h3>match?</h3>
  95. <div class="informalexample"><pre class="programlisting">(define-values
  96. (%return)
  97. (pattern-spec:match? self string-length string string-reversed))
  98. </pre></div>
  99. <p>Undocumented</p>
  100. <div class="refsect3">
  101. <a name="id-1.1.49.3.5.4"></a><h4>Parameters</h4>
  102. <div class="informaltable"><table>
  103. <tr>
  104. <td class="parameter_name"><p>pspec</p></td>
  105. <td class="parameter_description">
  106. <p></p>
  107. <p>Passed as <code class="code">self</code></p>
  108. </td>
  109. </tr>
  110. <tr>
  111. <td class="parameter_name"><p>string_length</p></td>
  112. <td class="parameter_description">
  113. <p></p>
  114. <p>Passed as <code class="code">string-length</code></p>
  115. </td>
  116. </tr>
  117. <tr>
  118. <td class="parameter_name"><p>string</p></td>
  119. <td class="parameter_description">
  120. <p></p>
  121. <p>Passed as <code class="code">string</code></p>
  122. </td>
  123. </tr>
  124. <tr>
  125. <td class="parameter_name"><p>string_reversed</p></td>
  126. <td class="parameter_description">
  127. <p></p>
  128. <p>Passed as <code class="code">string-reversed</code></p>
  129. </td>
  130. </tr>
  131. </table></div>
  132. </div>
  133. </div>
  134. <div class="refsect2">
  135. <a name="id-1.1.49.3.6"></a><h3>match-string?</h3>
  136. <div class="informalexample"><pre class="programlisting">(define-values (%return) (pattern-spec:match-string? self string))
  137. </pre></div>
  138. <p>Undocumented</p>
  139. <div class="refsect3">
  140. <a name="id-1.1.49.3.6.4"></a><h4>Parameters</h4>
  141. <div class="informaltable"><table>
  142. <tr>
  143. <td class="parameter_name"><p>pspec</p></td>
  144. <td class="parameter_description">
  145. <p></p>
  146. <p>Passed as <code class="code">self</code></p>
  147. </td>
  148. </tr>
  149. <tr>
  150. <td class="parameter_name"><p>string</p></td>
  151. <td class="parameter_description">
  152. <p></p>
  153. <p>Passed as <code class="code">string</code></p>
  154. </td>
  155. </tr>
  156. </table></div>
  157. </div>
  158. </div>
  159. <div class="refsect2">
  160. <a name="id-1.1.49.3.7"></a><h3>pattern-spec:new</h3>
  161. <div class="informalexample"><pre class="programlisting">(define-values (%return) (pattern-spec:new pattern))
  162. </pre></div>
  163. <p>Undocumented</p>
  164. <div class="refsect3">
  165. <a name="id-1.1.49.3.7.4"></a><h4>Parameters</h4>
  166. <div class="informaltable"><table><tr>
  167. <td class="parameter_name"><p>pattern</p></td>
  168. <td class="parameter_description">
  169. <p></p>
  170. <p>Passed as <code class="code">pattern</code></p>
  171. </td>
  172. </tr></table></div>
  173. </div>
  174. </div>
  175. </div>
  176. </div>
  177. <div class="footer">
  178. <hr>Generated by GTK-Doc V1.33.1</div>
  179. </body>
  180. </html>