123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181 |
- <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
- <html>
- <head>
- <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
- <title><GPatternSpec>: </title>
- <meta name="generator" content="DocBook XSL Stylesheets V1.79.2">
- <link rel="home" href="index.html" title="">
- <link rel="up" href="ch01.html" title="GLib">
- <link rel="prev" href="re47.html" title="<GOptionGroup>">
- <link rel="next" href="re49.html" title="<GPollFD>">
- <meta name="generator" content="GTK-Doc V1.33.1 (XML mode)">
- <link rel="stylesheet" href="style.css" type="text/css">
- </head>
- <body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF">
- <table class="navigation" id="top" width="100%" summary="Navigation header" cellpadding="2" cellspacing="5"><tr valign="middle">
- <td width="100%" align="left" class="shortcuts"></td>
- <td><a accesskey="h" href="index.html"><img src="home.png" width="16" height="16" border="0" alt="Home"></a></td>
- <td><img src="up-insensitive.png" width="16" height="16" border="0"></td>
- <td><a accesskey="p" href="re47.html"><img src="left.png" width="16" height="16" border="0" alt="Prev"></a></td>
- <td><a accesskey="n" href="re49.html"><img src="right.png" width="16" height="16" border="0" alt="Next"></a></td>
- </tr></table>
- <div class="refentry">
- <a name="id-1.1.49"></a><div class="titlepage"></div>
- <div class="refnamediv">
- <h2><GPatternSpec></h2>
- <p><GPatternSpec></p>
- </div>
- <div class="refsect1">
- <a name="id-1.1.49.2"></a><h2>Description</h2>
- <p>A GPatternSpec struct is the 'compiled' form of a pattern. This
- structure is opaque and its fields cannot be accessed directly.</p>
- </div>
- <div class="refsect1">
- <a name="id-1.1.49.3"></a><h2>Functions</h2>
- <div class="refsect2">
- <a name="id-1.1.49.3.2"></a><h3>copy</h3>
- <div class="informalexample"><pre class="programlisting">(define-values (%return) (pattern-spec:copy self))
- </pre></div>
- <p>Undocumented</p>
- <div class="refsect3">
- <a name="id-1.1.49.3.2.4"></a><h4>Parameters</h4>
- <div class="informaltable"><table><tr>
- <td class="parameter_name"><p>pspec</p></td>
- <td class="parameter_description">
- <p></p>
- <p>Passed as <code class="code">self</code></p>
- </td>
- </tr></table></div>
- </div>
- </div>
- <div class="refsect2">
- <a name="id-1.1.49.3.3"></a><h3>equal?</h3>
- <div class="informalexample"><pre class="programlisting">(define-values (%return) (pattern-spec:equal? self pspec2))
- </pre></div>
- <p>Compares two compiled pattern specs and returns whether they will
- match the same set of strings.</p>
- <div class="refsect3">
- <a name="id-1.1.49.3.3.4"></a><h4>Parameters</h4>
- <div class="informaltable"><table>
- <tr>
- <td class="parameter_name"><p>pspec1</p></td>
- <td class="parameter_description">
- <p>a <span class="type">GPatternSpec</span></p>
- <p>Passed as <code class="code">self</code></p>
- </td>
- </tr>
- <tr>
- <td class="parameter_name"><p>pspec2</p></td>
- <td class="parameter_description">
- <p>another <span class="type">GPatternSpec</span></p>
- <p>Passed as <code class="code">pspec2</code></p>
- </td>
- </tr>
- </table></div>
- </div>
- </div>
- <div class="refsect2">
- <a name="id-1.1.49.3.4"></a><h3>free</h3>
- <div class="informalexample"><pre class="programlisting">(define-values () (pattern-spec:free self))
- </pre></div>
- <p>Frees the memory allocated for the <span class="type">GPatternSpec</span>.</p>
- <div class="refsect3">
- <a name="id-1.1.49.3.4.4"></a><h4>Parameters</h4>
- <div class="informaltable"><table><tr>
- <td class="parameter_name"><p>pspec</p></td>
- <td class="parameter_description">
- <p>a <span class="type">GPatternSpec</span></p>
- <p>Passed as <code class="code">self</code></p>
- </td>
- </tr></table></div>
- </div>
- </div>
- <div class="refsect2">
- <a name="id-1.1.49.3.5"></a><h3>match?</h3>
- <div class="informalexample"><pre class="programlisting">(define-values
- (%return)
- (pattern-spec:match? self string-length string string-reversed))
- </pre></div>
- <p>Undocumented</p>
- <div class="refsect3">
- <a name="id-1.1.49.3.5.4"></a><h4>Parameters</h4>
- <div class="informaltable"><table>
- <tr>
- <td class="parameter_name"><p>pspec</p></td>
- <td class="parameter_description">
- <p></p>
- <p>Passed as <code class="code">self</code></p>
- </td>
- </tr>
- <tr>
- <td class="parameter_name"><p>string_length</p></td>
- <td class="parameter_description">
- <p></p>
- <p>Passed as <code class="code">string-length</code></p>
- </td>
- </tr>
- <tr>
- <td class="parameter_name"><p>string</p></td>
- <td class="parameter_description">
- <p></p>
- <p>Passed as <code class="code">string</code></p>
- </td>
- </tr>
- <tr>
- <td class="parameter_name"><p>string_reversed</p></td>
- <td class="parameter_description">
- <p></p>
- <p>Passed as <code class="code">string-reversed</code></p>
- </td>
- </tr>
- </table></div>
- </div>
- </div>
- <div class="refsect2">
- <a name="id-1.1.49.3.6"></a><h3>match-string?</h3>
- <div class="informalexample"><pre class="programlisting">(define-values (%return) (pattern-spec:match-string? self string))
- </pre></div>
- <p>Undocumented</p>
- <div class="refsect3">
- <a name="id-1.1.49.3.6.4"></a><h4>Parameters</h4>
- <div class="informaltable"><table>
- <tr>
- <td class="parameter_name"><p>pspec</p></td>
- <td class="parameter_description">
- <p></p>
- <p>Passed as <code class="code">self</code></p>
- </td>
- </tr>
- <tr>
- <td class="parameter_name"><p>string</p></td>
- <td class="parameter_description">
- <p></p>
- <p>Passed as <code class="code">string</code></p>
- </td>
- </tr>
- </table></div>
- </div>
- </div>
- <div class="refsect2">
- <a name="id-1.1.49.3.7"></a><h3>pattern-spec:new</h3>
- <div class="informalexample"><pre class="programlisting">(define-values (%return) (pattern-spec:new pattern))
- </pre></div>
- <p>Undocumented</p>
- <div class="refsect3">
- <a name="id-1.1.49.3.7.4"></a><h4>Parameters</h4>
- <div class="informaltable"><table><tr>
- <td class="parameter_name"><p>pattern</p></td>
- <td class="parameter_description">
- <p></p>
- <p>Passed as <code class="code">pattern</code></p>
- </td>
- </tr></table></div>
- </div>
- </div>
- </div>
- </div>
- <div class="footer">
- <hr>Generated by GTK-Doc V1.33.1</div>
- </body>
- </html>
|