PageRenderTime 55ms CodeModel.GetById 32ms RepoModel.GetById 0ms app.codeStats 0ms

/CS/migrated/tags/PRE_CROSSBUILD_REMOVAL/docs/html/api/regexp_8h-source.html

#
HTML | 117 lines | 116 code | 0 blank | 1 comment | 0 complexity | ab673ef8deeb030fbbd0a4ac67a925ab MD5 | raw file
Possible License(s): GPL-2.0, LGPL-2.1, LGPL-2.0
  1. <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
  2. <html><head><meta http-equiv="Content-Type" content="text/html;charset=iso-8859-1">
  3. <title>Crystal Space: csutil/regexp.h Source File (Crystal Space Public API Reference)</title>
  4. <link href="tabs.css" rel="stylesheet" type="text/css">
  5. <link href="doxygen.css" rel="stylesheet" type="text/css">
  6. </head><body>
  7. <table border="0" cellpadding="0" cellspacing="0" width="100%" class="head">
  8. <tr height="59">
  9. <td class="head" width="202" valign="bottom" style="padding-left:0;"><a href="http://www.crystalspace3d.org/"><img src="csblur.png" width="236" height="59" alt="CrystalSpace" border="0"></a></td>
  10. <td class="head"><h2>Public API Reference</h2></td>
  11. </tr>
  12. <tr height="11">
  13. <td colspan="2" class="headshadow" valign="top" style="padding-left:0;"><img src="csblurb.png" width="236" height="11" alt="" border="0"></td>
  14. </tr>
  15. </table>
  16. <div class="content">
  17. <!-- Generated by Doxygen 1.4.6 -->
  18. <div class="tabs">
  19. <ul>
  20. <li><a href="index.html"><span>Main&nbsp;Page</span></a></li>
  21. <li><a href="modules.html"><span>Modules</span></a></li>
  22. <li><a href="namespaces.html"><span>Namespaces</span></a></li>
  23. <li><a href="classes.html"><span>Classes</span></a></li>
  24. <li id="current"><a href="files.html"><span>Files</span></a></li>
  25. <li><a href="pages.html"><span>Related&nbsp;Pages</span></a></li>
  26. </ul></div>
  27. <div class="tabs">
  28. <ul>
  29. <li><a href="files.html"><span>File&nbsp;List</span></a></li>
  30. <li><a href="globals.html"><span>File&nbsp;Members</span></a></li>
  31. </ul></div>
  32. <h1>csutil/regexp.h</h1><a href="regexp_8h.html">Go to the documentation of this file.</a><div class="fragment"><pre class="fragment"><a name="l00001"></a>00001 <span class="comment">/*</span>
  33. <a name="l00002"></a>00002 <span class="comment"> Copyright (C) 2004 by Frank Richter</span>
  34. <a name="l00003"></a>00003 <span class="comment"></span>
  35. <a name="l00004"></a>00004 <span class="comment"> This library is free software; you can redistribute it and/or</span>
  36. <a name="l00005"></a>00005 <span class="comment"> modify it under the terms of the GNU Library General Public</span>
  37. <a name="l00006"></a>00006 <span class="comment"> License as published by the Free Software Foundation; either</span>
  38. <a name="l00007"></a>00007 <span class="comment"> version 2 of the License, or (at your option) any later version.</span>
  39. <a name="l00008"></a>00008 <span class="comment"></span>
  40. <a name="l00009"></a>00009 <span class="comment"> This library is distributed in the hope that it will be useful,</span>
  41. <a name="l00010"></a>00010 <span class="comment"> but WITHOUT ANY WARRANTY; without even the implied warranty of</span>
  42. <a name="l00011"></a>00011 <span class="comment"> MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU</span>
  43. <a name="l00012"></a>00012 <span class="comment"> Library General Public License for more details.</span>
  44. <a name="l00013"></a>00013 <span class="comment"></span>
  45. <a name="l00014"></a>00014 <span class="comment"> You should have received a copy of the GNU Library General Public</span>
  46. <a name="l00015"></a>00015 <span class="comment"> License along with this library; if not, write to the Free</span>
  47. <a name="l00016"></a>00016 <span class="comment"> Software Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.</span>
  48. <a name="l00017"></a>00017 <span class="comment">*/</span>
  49. <a name="l00018"></a>00018
  50. <a name="l00019"></a>00019 <span class="preprocessor">#ifndef __CS_UTIL_REGEXP_H__</span>
  51. <a name="l00020"></a>00020 <span class="preprocessor"></span><span class="preprocessor">#define __CS_UTIL_REGEXP_H__</span>
  52. <a name="l00021"></a>00021 <span class="preprocessor"></span>
  53. <a name="l00026"></a>00026 <span class="preprocessor">#include "csextern.h"</span>
  54. <a name="l00027"></a>00027 <span class="preprocessor">#include "<a class="code" href="array_8h.html">csutil/array.h</a>"</span>
  55. <a name="l00028"></a>00028
  56. <a name="l00032"></a><a class="code" href="regexp_8h.html#89f80052ddcd1fa25c12f5d0578ed13f">00032</a> <span class="keyword">enum</span> <a class="code" href="regexp_8h.html#89f80052ddcd1fa25c12f5d0578ed13f">csRegExpMatchError</a>
  57. <a name="l00033"></a>00033 {
  58. <a name="l00035"></a>00035 <a class="code" href="regexp_8h.html#89f80052ddcd1fa25c12f5d0578ed13f23218b27ac9cb13d1314dd2fe5d7fdf3">csrxNoError</a>,
  59. <a name="l00037"></a>00037 <a class="code" href="regexp_8h.html#89f80052ddcd1fa25c12f5d0578ed13f7ced38ce226cf9947ba369eb53058d26">csrxNoMatch</a>,
  60. <a name="l00043"></a>00043 <a class="code" href="regexp_8h.html#89f80052ddcd1fa25c12f5d0578ed13fc4fcb5be2054406bc68c80efd0d1b36c">csrxBadBraces</a>,
  61. <a name="l00047"></a>00047 <a class="code" href="regexp_8h.html#89f80052ddcd1fa25c12f5d0578ed13f868c78ca88806aea0c4077de232bf035">csrxBadPattern</a>,
  62. <a name="l00052"></a>00052 <a class="code" href="regexp_8h.html#89f80052ddcd1fa25c12f5d0578ed13f43413ebc3c5ce3b9caefd70fcd9c5ba1">csrxBadRepetition</a>,
  63. <a name="l00057"></a>00057 <a class="code" href="regexp_8h.html#89f80052ddcd1fa25c12f5d0578ed13fefb5755d7da42e1092b4534228169965">csrxErrCollate</a>,
  64. <a name="l00061"></a>00061 <a class="code" href="regexp_8h.html#89f80052ddcd1fa25c12f5d0578ed13f07822db12dd009219b1f65b26abb621a">csrxErrCharType</a>,
  65. <a name="l00065"></a>00065 <a class="code" href="regexp_8h.html#89f80052ddcd1fa25c12f5d0578ed13f96f87ca6761f38a3d8fbd0c1f95232f8">csrxErrEscape</a>,
  66. <a name="l00069"></a>00069 <a class="code" href="regexp_8h.html#89f80052ddcd1fa25c12f5d0578ed13f1533648b3060849f6e798388566f70af">csrxErrSubReg</a>,
  67. <a name="l00073"></a>00073 <a class="code" href="regexp_8h.html#89f80052ddcd1fa25c12f5d0578ed13f58360089a02e3adb7ddca92d9f20a3f3">csrxErrBrackets</a>,
  68. <a name="l00078"></a>00078 <a class="code" href="regexp_8h.html#89f80052ddcd1fa25c12f5d0578ed13fd0f7a753221185b6da3b4cdd37e7b4ba">csrxErrParentheses</a>,
  69. <a name="l00082"></a>00082 <a class="code" href="regexp_8h.html#89f80052ddcd1fa25c12f5d0578ed13f60a78fac958ffbd5edfdaa684a396565">csrxErrBraces</a>,
  70. <a name="l00086"></a>00086 <a class="code" href="regexp_8h.html#89f80052ddcd1fa25c12f5d0578ed13f582ed2fa4a40538d978ce9b76f1b8d80">csrxErrRange</a>,
  71. <a name="l00090"></a>00090 <a class="code" href="regexp_8h.html#89f80052ddcd1fa25c12f5d0578ed13ff39cfb12b33fa439b3aa8bfbda6cfa02">csrxErrSpace</a>,
  72. <a name="l00094"></a>00094 <a class="code" href="regexp_8h.html#89f80052ddcd1fa25c12f5d0578ed13faae87077933d20e4abb1711fde7cd9ab">csrxErrUnknown</a>
  73. <a name="l00095"></a>00095 };
  74. <a name="l00096"></a>00096
  75. <a name="l00100"></a><a class="code" href="regexp_8h.html#d938c33b723e05f5d5a73ec768a317e4">00100</a> <span class="keyword">enum</span> <a class="code" href="regexp_8h.html#d938c33b723e05f5d5a73ec768a317e4">csRegExpMatchFlags</a>
  76. <a name="l00101"></a>00101 {
  77. <a name="l00105"></a>00105 <a class="code" href="regexp_8h.html#d938c33b723e05f5d5a73ec768a317e40cc39899830cc8740438b2b1272c1b5b">csrxIgnoreCase</a> = 1,
  78. <a name="l00114"></a>00114 <a class="code" href="regexp_8h.html#d938c33b723e05f5d5a73ec768a317e41820d801b9422fd3cb1bcbabdf3a2fc7">csrxNewLine</a> = 2,
  79. <a name="l00120"></a>00120 <a class="code" href="regexp_8h.html#d938c33b723e05f5d5a73ec768a317e4ba8707b3b4913da6f22442eae454b271">csrxNotBOL</a> = 4,
  80. <a name="l00125"></a>00125 <a class="code" href="regexp_8h.html#d938c33b723e05f5d5a73ec768a317e492d05c63cb9e7b473f21804a381e3bef">csrxNotEOL</a> = 8
  81. <a name="l00126"></a>00126 };
  82. <a name="l00127"></a>00127
  83. <a name="l00131"></a><a class="code" href="structcsRegExpMatch.html">00131</a> <span class="keyword">struct </span>CS_CRYSTALSPACE_EXPORT <a class="code" href="structcsRegExpMatch.html">csRegExpMatch</a>
  84. <a name="l00132"></a>00132 {
  85. <a name="l00134"></a><a class="code" href="structcsRegExpMatch.html#ef8b424895ffc927787074737ce79b9d">00134</a> size_t startOffset;
  86. <a name="l00139"></a><a class="code" href="structcsRegExpMatch.html#79b7b8c3fa4a0db9cb7e879b0e1222d2">00139</a> size_t endOffset;
  87. <a name="l00140"></a>00140 };
  88. <a name="l00141"></a>00141
  89. <a name="l00153"></a><a class="code" href="classcsRegExpMatcher.html">00153</a> <span class="keyword">class </span>CS_CRYSTALSPACE_EXPORT csRegExpMatcher
  90. <a name="l00154"></a>00154 {
  91. <a name="l00155"></a>00155 <span class="keywordtype">void</span>* regex;
  92. <a name="l00156"></a>00156 <span class="keywordtype">char</span>* pattern;
  93. <a name="l00157"></a>00157 <span class="keywordtype">int</span> compiledFlags;
  94. <a name="l00158"></a>00158 <a class="code" href="regexp_8h.html#89f80052ddcd1fa25c12f5d0578ed13f">csRegExpMatchError</a> compileError;
  95. <a name="l00159"></a>00159 <span class="keywordtype">bool</span> extendedRE;
  96. <a name="l00160"></a>00160
  97. <a name="l00161"></a>00161 <span class="keywordtype">bool</span> Compile (<span class="keywordtype">int</span> flags, <span class="keywordtype">bool</span> nosub);
  98. <a name="l00162"></a>00162
  99. <a name="l00163"></a>00163 <span class="keyword">public</span>:
  100. <a name="l00170"></a>00170 csRegExpMatcher (<span class="keyword">const</span> <span class="keywordtype">char</span>* pattern, <span class="keywordtype">bool</span> extendedRE = <span class="keyword">false</span>);
  101. <a name="l00171"></a>00171
  102. <a name="l00173"></a>00173 csRegExpMatcher (<span class="keyword">const</span> csRegExpMatcher&amp; other);
  103. <a name="l00174"></a>00174
  104. <a name="l00176"></a>00176 ~csRegExpMatcher ();
  105. <a name="l00177"></a>00177
  106. <a name="l00179"></a>00179 csRegExpMatcher&amp; operator= (<span class="keyword">const</span> csRegExpMatcher &amp;other);
  107. <a name="l00180"></a>00180
  108. <a name="l00190"></a>00190 <a class="code" href="regexp_8h.html#89f80052ddcd1fa25c12f5d0578ed13f">csRegExpMatchError</a> Match (<span class="keyword">const</span> <span class="keywordtype">char</span>* string, <span class="keywordtype">int</span> flags = 0);
  109. <a name="l00191"></a>00191
  110. <a name="l00203"></a>00203 <a class="code" href="regexp_8h.html#89f80052ddcd1fa25c12f5d0578ed13f">csRegExpMatchError</a> Match (<span class="keyword">const</span> <span class="keywordtype">char</span>* string,
  111. <a name="l00204"></a>00204 <a class="code" href="classcsArray.html">csArray&lt;csRegExpMatch&gt;</a>&amp; matches, <span class="keywordtype">int</span> flags = 0);
  112. <a name="l00205"></a>00205 };
  113. <a name="l00206"></a>00206
  114. <a name="l00207"></a>00207 <span class="preprocessor">#endif // __CS_UTIL_REGEXP_H__</span>
  115. </pre></div><hr size="1"><address><small>Generated for Crystal Space by
  116. <a href="http://www.doxygen.org/index.html">doxygen</a> 1.4.6
  117. </small></address> </div></body> </html>