/docs/Liquid/LiquidRegexp.html
HTML | 389 lines | 340 code | 49 blank | 0 comment | 0 complexity | 12a40bea18afc7ce4d977dc24240be43 MD5 | raw file
- <html>
- <head>
- <title>Docs For Class LiquidRegexp</title>
- <link rel="stylesheet" type="text/css" href="../media/style.css">
- </head>
- <body>
- <table border="0" cellspacing="0" cellpadding="0" height="48" width="100%">
- <tr>
- <td class="header_top">Liquid</td>
- </tr>
- <tr><td class="header_line"><img src="../media/empty.png" width="1" height="1" border="0" alt="" /></td></tr>
- <tr>
- <td class="header_menu">
- [ <a href="../classtrees_Liquid.html" class="menu">class tree: Liquid</a> ]
- [ <a href="../elementindex_Liquid.html" class="menu">index: Liquid</a> ]
- [ <a href="../elementindex.html" class="menu">all elements</a> ]
- </td>
- </tr>
- <tr><td class="header_line"><img src="../media/empty.png" width="1" height="1" border="0" alt="" /></td></tr>
- </table>
- <table width="100%" border="0" cellpadding="0" cellspacing="0">
- <tr valign="top">
- <td width="200" class="menu">
- <b>Packages:</b><br />
- <a href="../li_Liquid.html">Liquid</a><br />
- <br /><br />
- <b>Files:</b><br />
- <div class="package">
- <a href="../Liquid/_lib_liquid_block_php.html"> block.php
- </a><br>
- <a href="../Liquid/_lib_liquid_context_php.html"> context.php
- </a><br>
- <a href="../Liquid/_lib_liquid_document_php.html"> document.php
- </a><br>
- <a href="../Liquid/_lib_liquid_drop_php.html"> drop.php
- </a><br>
- <a href="../Liquid/_lib_liquid_file_system_php.html"> file_system.php
- </a><br>
- <a href="../Liquid/_lib_liquid_filterbank_php.html"> filterbank.php
- </a><br>
- <a href="../Liquid/_lib_liquid_htmltags_php.html"> htmltags.php
- </a><br>
- <a href="../Liquid/_lib_liquid_php.html"> liquid.php
- </a><br>
- <a href="../Liquid/_lib_liquid_standardfilters_php.html"> standardfilters.php
- </a><br>
- <a href="../Liquid/_lib_liquid_standardtags_php.html"> standardtags.php
- </a><br>
- <a href="../Liquid/_lib_liquid_support_php.html"> support.php
- </a><br>
- <a href="../Liquid/_lib_liquid_tag_php.html"> tag.php
- </a><br>
- <a href="../Liquid/_lib_liquid_template_php.html"> template.php
- </a><br>
- <a href="../Liquid/_lib_liquid_variable_php.html"> variable.php
- </a><br>
- </div><br />
-
- <b>Classes:</b><br />
- <div class="package">
- <a href="../Liquid/AssignLiquidTag.html">AssignLiquidTag</a><br />
- <a href="../Liquid/CaptureLiquidTag.html">CaptureLiquidTag</a><br />
- <a href="../Liquid/CaseLiquidTag.html">CaseLiquidTag</a><br />
- <a href="../Liquid/CommentLiquidTag.html">CommentLiquidTag</a><br />
- <a href="../Liquid/CycleLiquidTag.html">CycleLiquidTag</a><br />
- <a href="../Liquid/ForLiquidTag.html">ForLiquidTag</a><br />
- <a href="../Liquid/IfLiquidTag.html">IfLiquidTag</a><br />
- <a href="../Liquid/IncludeLiquidTag.html">IncludeLiquidTag</a><br />
- <a href="../Liquid/LiquidBlankFileSystem.html">LiquidBlankFileSystem</a><br />
- <a href="../Liquid/LiquidBlock.html">LiquidBlock</a><br />
- <a href="../Liquid/LiquidContext.html">LiquidContext</a><br />
- <a href="../Liquid/LiquidDecisionBlock.html">LiquidDecisionBlock</a><br />
- <a href="../Liquid/LiquidDocument.html">LiquidDocument</a><br />
- <a href="../Liquid/LiquidDrop.html">LiquidDrop</a><br />
- <a href="../Liquid/LiquidFilterbank.html">LiquidFilterbank</a><br />
- <a href="../Liquid/LiquidLocalFileSystem.html">LiquidLocalFileSystem</a><br />
- <a href="../Liquid/LiquidRegexp.html">LiquidRegexp</a><br />
- <a href="../Liquid/LiquidStandardFilters.html">LiquidStandardFilters</a><br />
- <a href="../Liquid/LiquidTag.html">LiquidTag</a><br />
- <a href="../Liquid/LiquidTemplate.html">LiquidTemplate</a><br />
- <a href="../Liquid/LiquidVariable.html">LiquidVariable</a><br />
- <a href="../Liquid/TableRowLiquidTag.html">TableRowLiquidTag</a><br />
- </div>
- </td>
- <td>
- <table cellpadding="10" cellspacing="0" width="100%" border="0"><tr><td valign="top">
- <h1>Class: LiquidRegexp</h1>
- Source Location: /liquid/support.php<br /><br />
- <table width="100%" border="0">
- <tr><td valign="top">
- <h3><a href="#class_details">Class Overview</a></h3>
- <pre></pre><br />
- <div class="description">A support class for regular expressions</div><br /><br />
- </td>
- <td valign="top">
- <h3><a href="#class_vars">Variables</a></h3>
- <ul>
- <li><a href="../Liquid/LiquidRegexp.html#var$matches">$matches</a></li>
- <li><a href="../Liquid/LiquidRegexp.html#var$pattern">$pattern</a></li>
- </ul>
- </td>
- <td valign="top">
- <h3><a href="#class_methods">Methods</a></h3>
- <ul>
- <li><a href="../Liquid/LiquidRegexp.html#methodLiquidRegexp">LiquidRegexp</a></li>
- <li><a href="../Liquid/LiquidRegexp.html#methodmatch">match</a></li>
- <li><a href="../Liquid/LiquidRegexp.html#methodmatch_all">match_all</a></li>
- <li><a href="../Liquid/LiquidRegexp.html#methodquote">quote</a></li>
- <li><a href="../Liquid/LiquidRegexp.html#methodscan">scan</a></li>
- <li><a href="../Liquid/LiquidRegexp.html#methodsplit">split</a></li>
- </ul>
- </td>
- </tr></table>
- <hr />
- <table width="100%" border="0"><tr>
- </tr></table>
- <hr />
- <a name="class_details"></a>
- <h3>Class Details</h3>
- <div class="tags">
- [line 22]<br />
- A support class for regular expressions<br /><br /></div><br /><br />
- <div class="top">[ <a href="#top">Top</a> ]</div><br />
- <hr />
- <a name="class_vars"></a>
- <h3>Class Variables</h3>
- <div class="tags">
- <a name="var$matches"></a>
- <p></p>
- <h4>$matches = <span class="value"></span></h4>
- <p>[line 37]</p>
- The matches from the last method called<br /><br />
- <br />
- <div class="tags">
- <table border="0" cellspacing="0" cellpadding="0">
- <tr>
- <td><b>Type:</b> </td>
- <td>array;</td>
- </tr>
- </table>
- </div><br /><br />
- <div class="top">[ <a href="#top">Top</a> ]</div><br />
- <a name="var$pattern"></a>
- <p></p>
- <h4>$pattern = <span class="value"></span></h4>
- <p>[line 29]</p>
- The regexp pattern<br /><br />
- <br />
- <div class="tags">
- <table border="0" cellspacing="0" cellpadding="0">
- <tr>
- <td><b>Type:</b> </td>
- <td>string</td>
- </tr>
- </table>
- </div><br /><br />
- <div class="top">[ <a href="#top">Top</a> ]</div><br />
- </div><br />
- <hr />
- <a name="class_methods"></a>
- <h3>Class Methods</h3>
- <div class="tags">
- <hr />
- <a name="methodLiquidRegexp"></a>
- <h3>constructor LiquidRegexp <span class="smalllinenumber">[line 45]</span></h3>
- <div class="function">
- <table width="90%" border="0" cellspacing="0" cellpadding="1"><tr><td class="code_border">
- <table width="100%" border="0" cellspacing="0" cellpadding="2"><tr><td class="code">
- <code>Regexp LiquidRegexp(
- string
- $pattern)</code>
- </td></tr></table>
- </td></tr></table><br />
-
- Constructor<br /><br /><br /><br />
- <h4>Parameters:</h4>
- <div class="tags">
- <table border="0" cellspacing="0" cellpadding="0">
- <tr>
- <td class="type">string </td>
- <td><b>$pattern</b> </td>
- <td></td>
- </tr>
- </table>
- </div><br />
- <div class="top">[ <a href="#top">Top</a> ]</div>
- </div>
- <hr />
- <a name="methodmatch"></a>
- <h3>method match <span class="smalllinenumber">[line 102]</span></h3>
- <div class="function">
- <table width="90%" border="0" cellspacing="0" cellpadding="1"><tr><td class="code_border">
- <table width="100%" border="0" cellspacing="0" cellpadding="2"><tr><td class="code">
- <code>int match(
- string
- $string)</code>
- </td></tr></table>
- </td></tr></table><br />
-
- Matches the given string. Only matches once.<br /><br /><br /><br />
- <h4>Tags:</h4>
- <div class="tags">
- <table border="0" cellspacing="0" cellpadding="0">
- <tr>
- <td><b>return:</b> </td><td>1 if there was a match, 0 if there wasn't</td>
- </tr>
- </table>
- </div>
- <br /><br />
- <h4>Parameters:</h4>
- <div class="tags">
- <table border="0" cellspacing="0" cellpadding="0">
- <tr>
- <td class="type">string </td>
- <td><b>$string</b> </td>
- <td></td>
- </tr>
- </table>
- </div><br />
- <div class="top">[ <a href="#top">Top</a> ]</div>
- </div>
- <hr />
- <a name="methodmatch_all"></a>
- <h3>method match_all <span class="smalllinenumber">[line 112]</span></h3>
- <div class="function">
- <table width="90%" border="0" cellspacing="0" cellpadding="1"><tr><td class="code_border">
- <table width="100%" border="0" cellspacing="0" cellpadding="2"><tr><td class="code">
- <code>int match_all(
- string
- $string)</code>
- </td></tr></table>
- </td></tr></table><br />
-
- Matches the given string. Matches all.<br /><br /><br /><br />
- <h4>Tags:</h4>
- <div class="tags">
- <table border="0" cellspacing="0" cellpadding="0">
- <tr>
- <td><b>return:</b> </td><td>The number of matches</td>
- </tr>
- </table>
- </div>
- <br /><br />
- <h4>Parameters:</h4>
- <div class="tags">
- <table border="0" cellspacing="0" cellpadding="0">
- <tr>
- <td class="type">string </td>
- <td><b>$string</b> </td>
- <td></td>
- </tr>
- </table>
- </div><br />
- <div class="top">[ <a href="#top">Top</a> ]</div>
- </div>
- <hr />
- <a name="methodquote"></a>
- <h3>method quote <span class="smalllinenumber">[line 62]</span></h3>
- <div class="function">
- <table width="90%" border="0" cellspacing="0" cellpadding="1"><tr><td class="code_border">
- <table width="100%" border="0" cellspacing="0" cellpadding="2"><tr><td class="code">
- <code>string quote(
- string
- $string)</code>
- </td></tr></table>
- </td></tr></table><br />
-
- Quotes regular expression characters<br /><br /><br /><br />
- <h4>Parameters:</h4>
- <div class="tags">
- <table border="0" cellspacing="0" cellpadding="0">
- <tr>
- <td class="type">string </td>
- <td><b>$string</b> </td>
- <td></td>
- </tr>
- </table>
- </div><br />
- <div class="top">[ <a href="#top">Top</a> ]</div>
- </div>
- <hr />
- <a name="methodscan"></a>
- <h3>method scan <span class="smalllinenumber">[line 73]</span></h3>
- <div class="function">
- <table width="90%" border="0" cellspacing="0" cellpadding="1"><tr><td class="code_border">
- <table width="100%" border="0" cellspacing="0" cellpadding="2"><tr><td class="code">
- <code>array scan(
- string
- $string)</code>
- </td></tr></table>
- </td></tr></table><br />
-
- Returns an array of matches for the string in the same way as Ruby's scan method<br /><br /><br /><br />
- <h4>Parameters:</h4>
- <div class="tags">
- <table border="0" cellspacing="0" cellpadding="0">
- <tr>
- <td class="type">string </td>
- <td><b>$string</b> </td>
- <td></td>
- </tr>
- </table>
- </div><br />
- <div class="top">[ <a href="#top">Top</a> ]</div>
- </div>
- <hr />
- <a name="methodsplit"></a>
- <h3>method split <span class="smalllinenumber">[line 124]</span></h3>
- <div class="function">
- <table width="90%" border="0" cellspacing="0" cellpadding="1"><tr><td class="code_border">
- <table width="100%" border="0" cellspacing="0" cellpadding="2"><tr><td class="code">
- <code>array split(
- string
- $string, [int
- $limit = null])</code>
- </td></tr></table>
- </td></tr></table><br />
-
- Splits the given string<br /><br /><br /><br />
- <h4>Parameters:</h4>
- <div class="tags">
- <table border="0" cellspacing="0" cellpadding="0">
- <tr>
- <td class="type">string </td>
- <td><b>$string</b> </td>
- <td></td>
- </tr>
- <tr>
- <td class="type">int </td>
- <td><b>$limit</b> </td>
- <td>Limits the amount of results returned</td>
- </tr>
- </table>
- </div><br />
- <div class="top">[ <a href="#top">Top</a> ]</div>
- </div>
- </div><br />
- <div class="credit">
- <hr />
- Documentation generated on Mon, 26 Jun 2006 22:45:46 -0400 by <a href="http://www.phpdoc.org">phpDocumentor 1.3.0RC3</a>
- </div>
- </td></tr></table>
- </td>
- </tr>
- </table>
- </body>
- </html>