PageRenderTime 66ms CodeModel.GetById 25ms RepoModel.GetById 1ms app.codeStats 0ms

/docs/Liquid/LiquidRegexp.html

http://github.com/m3talsmith/php-liquid
HTML | 389 lines | 340 code | 49 blank | 0 comment | 0 complexity | 12a40bea18afc7ce4d977dc24240be43 MD5 | raw file
  1. <html>
  2. <head>
  3. <title>Docs For Class LiquidRegexp</title>
  4. <link rel="stylesheet" type="text/css" href="../media/style.css">
  5. </head>
  6. <body>
  7. <table border="0" cellspacing="0" cellpadding="0" height="48" width="100%">
  8. <tr>
  9. <td class="header_top">Liquid</td>
  10. </tr>
  11. <tr><td class="header_line"><img src="../media/empty.png" width="1" height="1" border="0" alt="" /></td></tr>
  12. <tr>
  13. <td class="header_menu">
  14. [ <a href="../classtrees_Liquid.html" class="menu">class tree: Liquid</a> ]
  15. [ <a href="../elementindex_Liquid.html" class="menu">index: Liquid</a> ]
  16. [ <a href="../elementindex.html" class="menu">all elements</a> ]
  17. </td>
  18. </tr>
  19. <tr><td class="header_line"><img src="../media/empty.png" width="1" height="1" border="0" alt="" /></td></tr>
  20. </table>
  21. <table width="100%" border="0" cellpadding="0" cellspacing="0">
  22. <tr valign="top">
  23. <td width="200" class="menu">
  24. <b>Packages:</b><br />
  25. <a href="../li_Liquid.html">Liquid</a><br />
  26. <br /><br />
  27. <b>Files:</b><br />
  28. <div class="package">
  29. <a href="../Liquid/_lib_liquid_block_php.html"> block.php
  30. </a><br>
  31. <a href="../Liquid/_lib_liquid_context_php.html"> context.php
  32. </a><br>
  33. <a href="../Liquid/_lib_liquid_document_php.html"> document.php
  34. </a><br>
  35. <a href="../Liquid/_lib_liquid_drop_php.html"> drop.php
  36. </a><br>
  37. <a href="../Liquid/_lib_liquid_file_system_php.html"> file_system.php
  38. </a><br>
  39. <a href="../Liquid/_lib_liquid_filterbank_php.html"> filterbank.php
  40. </a><br>
  41. <a href="../Liquid/_lib_liquid_htmltags_php.html"> htmltags.php
  42. </a><br>
  43. <a href="../Liquid/_lib_liquid_php.html"> liquid.php
  44. </a><br>
  45. <a href="../Liquid/_lib_liquid_standardfilters_php.html"> standardfilters.php
  46. </a><br>
  47. <a href="../Liquid/_lib_liquid_standardtags_php.html"> standardtags.php
  48. </a><br>
  49. <a href="../Liquid/_lib_liquid_support_php.html"> support.php
  50. </a><br>
  51. <a href="../Liquid/_lib_liquid_tag_php.html"> tag.php
  52. </a><br>
  53. <a href="../Liquid/_lib_liquid_template_php.html"> template.php
  54. </a><br>
  55. <a href="../Liquid/_lib_liquid_variable_php.html"> variable.php
  56. </a><br>
  57. </div><br />
  58. <b>Classes:</b><br />
  59. <div class="package">
  60. <a href="../Liquid/AssignLiquidTag.html">AssignLiquidTag</a><br />
  61. <a href="../Liquid/CaptureLiquidTag.html">CaptureLiquidTag</a><br />
  62. <a href="../Liquid/CaseLiquidTag.html">CaseLiquidTag</a><br />
  63. <a href="../Liquid/CommentLiquidTag.html">CommentLiquidTag</a><br />
  64. <a href="../Liquid/CycleLiquidTag.html">CycleLiquidTag</a><br />
  65. <a href="../Liquid/ForLiquidTag.html">ForLiquidTag</a><br />
  66. <a href="../Liquid/IfLiquidTag.html">IfLiquidTag</a><br />
  67. <a href="../Liquid/IncludeLiquidTag.html">IncludeLiquidTag</a><br />
  68. <a href="../Liquid/LiquidBlankFileSystem.html">LiquidBlankFileSystem</a><br />
  69. <a href="../Liquid/LiquidBlock.html">LiquidBlock</a><br />
  70. <a href="../Liquid/LiquidContext.html">LiquidContext</a><br />
  71. <a href="../Liquid/LiquidDecisionBlock.html">LiquidDecisionBlock</a><br />
  72. <a href="../Liquid/LiquidDocument.html">LiquidDocument</a><br />
  73. <a href="../Liquid/LiquidDrop.html">LiquidDrop</a><br />
  74. <a href="../Liquid/LiquidFilterbank.html">LiquidFilterbank</a><br />
  75. <a href="../Liquid/LiquidLocalFileSystem.html">LiquidLocalFileSystem</a><br />
  76. <a href="../Liquid/LiquidRegexp.html">LiquidRegexp</a><br />
  77. <a href="../Liquid/LiquidStandardFilters.html">LiquidStandardFilters</a><br />
  78. <a href="../Liquid/LiquidTag.html">LiquidTag</a><br />
  79. <a href="../Liquid/LiquidTemplate.html">LiquidTemplate</a><br />
  80. <a href="../Liquid/LiquidVariable.html">LiquidVariable</a><br />
  81. <a href="../Liquid/TableRowLiquidTag.html">TableRowLiquidTag</a><br />
  82. </div>
  83. </td>
  84. <td>
  85. <table cellpadding="10" cellspacing="0" width="100%" border="0"><tr><td valign="top">
  86. <h1>Class: LiquidRegexp</h1>
  87. Source Location: /liquid/support.php<br /><br />
  88. <table width="100%" border="0">
  89. <tr><td valign="top">
  90. <h3><a href="#class_details">Class Overview</a></h3>
  91. <pre></pre><br />
  92. <div class="description">A support class for regular expressions</div><br /><br />
  93. </td>
  94. <td valign="top">
  95. <h3><a href="#class_vars">Variables</a></h3>
  96. <ul>
  97. <li><a href="../Liquid/LiquidRegexp.html#var$matches">$matches</a></li>
  98. <li><a href="../Liquid/LiquidRegexp.html#var$pattern">$pattern</a></li>
  99. </ul>
  100. </td>
  101. <td valign="top">
  102. <h3><a href="#class_methods">Methods</a></h3>
  103. <ul>
  104. <li><a href="../Liquid/LiquidRegexp.html#methodLiquidRegexp">LiquidRegexp</a></li>
  105. <li><a href="../Liquid/LiquidRegexp.html#methodmatch">match</a></li>
  106. <li><a href="../Liquid/LiquidRegexp.html#methodmatch_all">match_all</a></li>
  107. <li><a href="../Liquid/LiquidRegexp.html#methodquote">quote</a></li>
  108. <li><a href="../Liquid/LiquidRegexp.html#methodscan">scan</a></li>
  109. <li><a href="../Liquid/LiquidRegexp.html#methodsplit">split</a></li>
  110. </ul>
  111. </td>
  112. </tr></table>
  113. <hr />
  114. <table width="100%" border="0"><tr>
  115. </tr></table>
  116. <hr />
  117. <a name="class_details"></a>
  118. <h3>Class Details</h3>
  119. <div class="tags">
  120. [line 22]<br />
  121. A support class for regular expressions<br /><br /></div><br /><br />
  122. <div class="top">[ <a href="#top">Top</a> ]</div><br />
  123. <hr />
  124. <a name="class_vars"></a>
  125. <h3>Class Variables</h3>
  126. <div class="tags">
  127. <a name="var$matches"></a>
  128. <p></p>
  129. <h4>$matches = <span class="value"></span></h4>
  130. <p>[line 37]</p>
  131. The matches from the last method called<br /><br />
  132. <br />
  133. <div class="tags">
  134. <table border="0" cellspacing="0" cellpadding="0">
  135. <tr>
  136. <td><b>Type:</b>&nbsp;&nbsp;</td>
  137. <td>array;</td>
  138. </tr>
  139. </table>
  140. </div><br /><br />
  141. <div class="top">[ <a href="#top">Top</a> ]</div><br />
  142. <a name="var$pattern"></a>
  143. <p></p>
  144. <h4>$pattern = <span class="value"></span></h4>
  145. <p>[line 29]</p>
  146. The regexp pattern<br /><br />
  147. <br />
  148. <div class="tags">
  149. <table border="0" cellspacing="0" cellpadding="0">
  150. <tr>
  151. <td><b>Type:</b>&nbsp;&nbsp;</td>
  152. <td>string</td>
  153. </tr>
  154. </table>
  155. </div><br /><br />
  156. <div class="top">[ <a href="#top">Top</a> ]</div><br />
  157. </div><br />
  158. <hr />
  159. <a name="class_methods"></a>
  160. <h3>Class Methods</h3>
  161. <div class="tags">
  162. <hr />
  163. <a name="methodLiquidRegexp"></a>
  164. <h3>constructor LiquidRegexp <span class="smalllinenumber">[line 45]</span></h3>
  165. <div class="function">
  166. <table width="90%" border="0" cellspacing="0" cellpadding="1"><tr><td class="code_border">
  167. <table width="100%" border="0" cellspacing="0" cellpadding="2"><tr><td class="code">
  168. <code>Regexp LiquidRegexp(
  169. string
  170. $pattern)</code>
  171. </td></tr></table>
  172. </td></tr></table><br />
  173. Constructor<br /><br /><br /><br />
  174. <h4>Parameters:</h4>
  175. <div class="tags">
  176. <table border="0" cellspacing="0" cellpadding="0">
  177. <tr>
  178. <td class="type">string&nbsp;&nbsp;</td>
  179. <td><b>$pattern</b>&nbsp;&nbsp;</td>
  180. <td></td>
  181. </tr>
  182. </table>
  183. </div><br />
  184. <div class="top">[ <a href="#top">Top</a> ]</div>
  185. </div>
  186. <hr />
  187. <a name="methodmatch"></a>
  188. <h3>method match <span class="smalllinenumber">[line 102]</span></h3>
  189. <div class="function">
  190. <table width="90%" border="0" cellspacing="0" cellpadding="1"><tr><td class="code_border">
  191. <table width="100%" border="0" cellspacing="0" cellpadding="2"><tr><td class="code">
  192. <code>int match(
  193. string
  194. $string)</code>
  195. </td></tr></table>
  196. </td></tr></table><br />
  197. Matches the given string. Only matches once.<br /><br /><br /><br />
  198. <h4>Tags:</h4>
  199. <div class="tags">
  200. <table border="0" cellspacing="0" cellpadding="0">
  201. <tr>
  202. <td><b>return:</b>&nbsp;&nbsp;</td><td>1 if there was a match, 0 if there wasn't</td>
  203. </tr>
  204. </table>
  205. </div>
  206. <br /><br />
  207. <h4>Parameters:</h4>
  208. <div class="tags">
  209. <table border="0" cellspacing="0" cellpadding="0">
  210. <tr>
  211. <td class="type">string&nbsp;&nbsp;</td>
  212. <td><b>$string</b>&nbsp;&nbsp;</td>
  213. <td></td>
  214. </tr>
  215. </table>
  216. </div><br />
  217. <div class="top">[ <a href="#top">Top</a> ]</div>
  218. </div>
  219. <hr />
  220. <a name="methodmatch_all"></a>
  221. <h3>method match_all <span class="smalllinenumber">[line 112]</span></h3>
  222. <div class="function">
  223. <table width="90%" border="0" cellspacing="0" cellpadding="1"><tr><td class="code_border">
  224. <table width="100%" border="0" cellspacing="0" cellpadding="2"><tr><td class="code">
  225. <code>int match_all(
  226. string
  227. $string)</code>
  228. </td></tr></table>
  229. </td></tr></table><br />
  230. Matches the given string. Matches all.<br /><br /><br /><br />
  231. <h4>Tags:</h4>
  232. <div class="tags">
  233. <table border="0" cellspacing="0" cellpadding="0">
  234. <tr>
  235. <td><b>return:</b>&nbsp;&nbsp;</td><td>The number of matches</td>
  236. </tr>
  237. </table>
  238. </div>
  239. <br /><br />
  240. <h4>Parameters:</h4>
  241. <div class="tags">
  242. <table border="0" cellspacing="0" cellpadding="0">
  243. <tr>
  244. <td class="type">string&nbsp;&nbsp;</td>
  245. <td><b>$string</b>&nbsp;&nbsp;</td>
  246. <td></td>
  247. </tr>
  248. </table>
  249. </div><br />
  250. <div class="top">[ <a href="#top">Top</a> ]</div>
  251. </div>
  252. <hr />
  253. <a name="methodquote"></a>
  254. <h3>method quote <span class="smalllinenumber">[line 62]</span></h3>
  255. <div class="function">
  256. <table width="90%" border="0" cellspacing="0" cellpadding="1"><tr><td class="code_border">
  257. <table width="100%" border="0" cellspacing="0" cellpadding="2"><tr><td class="code">
  258. <code>string quote(
  259. string
  260. $string)</code>
  261. </td></tr></table>
  262. </td></tr></table><br />
  263. Quotes regular expression characters<br /><br /><br /><br />
  264. <h4>Parameters:</h4>
  265. <div class="tags">
  266. <table border="0" cellspacing="0" cellpadding="0">
  267. <tr>
  268. <td class="type">string&nbsp;&nbsp;</td>
  269. <td><b>$string</b>&nbsp;&nbsp;</td>
  270. <td></td>
  271. </tr>
  272. </table>
  273. </div><br />
  274. <div class="top">[ <a href="#top">Top</a> ]</div>
  275. </div>
  276. <hr />
  277. <a name="methodscan"></a>
  278. <h3>method scan <span class="smalllinenumber">[line 73]</span></h3>
  279. <div class="function">
  280. <table width="90%" border="0" cellspacing="0" cellpadding="1"><tr><td class="code_border">
  281. <table width="100%" border="0" cellspacing="0" cellpadding="2"><tr><td class="code">
  282. <code>array scan(
  283. string
  284. $string)</code>
  285. </td></tr></table>
  286. </td></tr></table><br />
  287. Returns an array of matches for the string in the same way as Ruby's scan method<br /><br /><br /><br />
  288. <h4>Parameters:</h4>
  289. <div class="tags">
  290. <table border="0" cellspacing="0" cellpadding="0">
  291. <tr>
  292. <td class="type">string&nbsp;&nbsp;</td>
  293. <td><b>$string</b>&nbsp;&nbsp;</td>
  294. <td></td>
  295. </tr>
  296. </table>
  297. </div><br />
  298. <div class="top">[ <a href="#top">Top</a> ]</div>
  299. </div>
  300. <hr />
  301. <a name="methodsplit"></a>
  302. <h3>method split <span class="smalllinenumber">[line 124]</span></h3>
  303. <div class="function">
  304. <table width="90%" border="0" cellspacing="0" cellpadding="1"><tr><td class="code_border">
  305. <table width="100%" border="0" cellspacing="0" cellpadding="2"><tr><td class="code">
  306. <code>array split(
  307. string
  308. $string, [int
  309. $limit = null])</code>
  310. </td></tr></table>
  311. </td></tr></table><br />
  312. Splits the given string<br /><br /><br /><br />
  313. <h4>Parameters:</h4>
  314. <div class="tags">
  315. <table border="0" cellspacing="0" cellpadding="0">
  316. <tr>
  317. <td class="type">string&nbsp;&nbsp;</td>
  318. <td><b>$string</b>&nbsp;&nbsp;</td>
  319. <td></td>
  320. </tr>
  321. <tr>
  322. <td class="type">int&nbsp;&nbsp;</td>
  323. <td><b>$limit</b>&nbsp;&nbsp;</td>
  324. <td>Limits the amount of results returned</td>
  325. </tr>
  326. </table>
  327. </div><br />
  328. <div class="top">[ <a href="#top">Top</a> ]</div>
  329. </div>
  330. </div><br />
  331. <div class="credit">
  332. <hr />
  333. Documentation generated on Mon, 26 Jun 2006 22:45:46 -0400 by <a href="http://www.phpdoc.org">phpDocumentor 1.3.0RC3</a>
  334. </div>
  335. </td></tr></table>
  336. </td>
  337. </tr>
  338. </table>
  339. </body>
  340. </html>