PageRenderTime 42ms CodeModel.GetById 19ms RepoModel.GetById 0ms app.codeStats 0ms

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

#
HTML | 101 lines | 100 code | 0 blank | 1 comment | 0 complexity | e616f76bdea700434aab514e89545efd 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="doxygen.css" rel="stylesheet" type="text/css">
  5. </head><body>
  6. <table border="0" cellpadding="0" cellspacing="0" width="100%" class="head">
  7. <tr heigth="59">
  8. <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>
  9. <td class="head"><h2>Public API Reference</h2></td>
  10. </tr>
  11. <tr heigth="11">
  12. <td colspan="2" class="headshadow" valign="top" style="padding-left:0;"><img src="csblurb.png" width="236" height="11" alt="" border="0"></td>
  13. </tr>
  14. </table>
  15. <div class="content">
  16. <!-- Generated by Doxygen 1.4.2 -->
  17. <div class="qindex"><a class="qindex" href="index.html">Main&nbsp;Page</a> | <a class="qindex" href="modules.html">Modules</a> | <a class="qindex" href="hierarchy.html">Class&nbsp;Hierarchy</a> | <a class="qindex" href="classes.html">Alphabetical&nbsp;List</a> | <a class="qindex" href="annotated.html">Class&nbsp;List</a> | <a class="qindex" href="dirs.html">Directories</a> | <a class="qindex" href="files.html">File&nbsp;List</a> | <a class="qindex" href="functions.html">Class&nbsp;Members</a> | <a class="qindex" href="globals.html">File&nbsp;Members</a> | <a class="qindex" href="pages.html">Related&nbsp;Pages</a></div>
  18. <div class="nav">
  19. <a class="el" href="dir_000022.html">csutil</a></div>
  20. <h1>regexp.h</h1><a href="regexp_8h.html">Go to the documentation of this file.</a><div class="fragment"><pre class="fragment">00001 <span class="comment">/*</span>
  21. 00002 <span class="comment"> Copyright (C) 2004 by Frank Richter</span>
  22. 00003 <span class="comment"></span>
  23. 00004 <span class="comment"> This library is free software; you can redistribute it and/or</span>
  24. 00005 <span class="comment"> modify it under the terms of the GNU Library General Public</span>
  25. 00006 <span class="comment"> License as published by the Free Software Foundation; either</span>
  26. 00007 <span class="comment"> version 2 of the License, or (at your option) any later version.</span>
  27. 00008 <span class="comment"></span>
  28. 00009 <span class="comment"> This library is distributed in the hope that it will be useful,</span>
  29. 00010 <span class="comment"> but WITHOUT ANY WARRANTY; without even the implied warranty of</span>
  30. 00011 <span class="comment"> MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU</span>
  31. 00012 <span class="comment"> Library General Public License for more details.</span>
  32. 00013 <span class="comment"></span>
  33. 00014 <span class="comment"> You should have received a copy of the GNU Library General Public</span>
  34. 00015 <span class="comment"> License along with this library; if not, write to the Free</span>
  35. 00016 <span class="comment"> Software Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.</span>
  36. 00017 <span class="comment">*/</span>
  37. 00018
  38. 00019 <span class="preprocessor">#ifndef __CS_UTIL_REGEXP_H__</span>
  39. 00020 <span class="preprocessor"></span><span class="preprocessor">#define __CS_UTIL_REGEXP_H__</span>
  40. 00021 <span class="preprocessor"></span>
  41. 00026 <span class="preprocessor">#include "csextern.h"</span>
  42. 00027 <span class="preprocessor">#include "<a class="code" href="array_8h.html">csutil/array.h</a>"</span>
  43. 00028
  44. <a name="l00032"></a><a class="code" href="regexp_8h.html#a19">00032</a> <span class="keyword">enum</span> <a class="code" href="regexp_8h.html#a19">csRegExpMatchError</a>
  45. 00033 {
  46. 00035 <a class="code" href="regexp_8h.html#a19a0">csrxNoError</a>,
  47. 00037 <a class="code" href="regexp_8h.html#a19a1">csrxNoMatch</a>,
  48. 00043 <a class="code" href="regexp_8h.html#a19a2">csrxBadBraces</a>,
  49. 00047 <a class="code" href="regexp_8h.html#a19a3">csrxBadPattern</a>,
  50. 00052 <a class="code" href="regexp_8h.html#a19a4">csrxBadRepetition</a>,
  51. 00057 <a class="code" href="regexp_8h.html#a19a5">csrxErrCollate</a>,
  52. 00061 <a class="code" href="regexp_8h.html#a19a6">csrxErrCharType</a>,
  53. 00065 <a class="code" href="regexp_8h.html#a19a7">csrxErrEscape</a>,
  54. 00069 <a class="code" href="regexp_8h.html#a19a8">csrxErrSubReg</a>,
  55. 00073 <a class="code" href="regexp_8h.html#a19a9">csrxErrBrackets</a>,
  56. 00078 <a class="code" href="regexp_8h.html#a19a10">csrxErrParentheses</a>,
  57. 00082 <a class="code" href="regexp_8h.html#a19a11">csrxErrBraces</a>,
  58. 00086 <a class="code" href="regexp_8h.html#a19a12">csrxErrRange</a>,
  59. 00090 <a class="code" href="regexp_8h.html#a19a13">csrxErrSpace</a>,
  60. 00094 <a class="code" href="regexp_8h.html#a19a14">csrxErrUnknown</a>
  61. 00095 };
  62. 00096
  63. <a name="l00100"></a><a class="code" href="regexp_8h.html#a20">00100</a> <span class="keyword">enum</span> <a class="code" href="regexp_8h.html#a20">csRegExpMatchFlags</a>
  64. 00101 {
  65. 00105 <a class="code" href="regexp_8h.html#a20a15">csrxIgnoreCase</a> = 1,
  66. 00114 <a class="code" href="regexp_8h.html#a20a16">csrxNewLine</a> = 2,
  67. 00120 <a class="code" href="regexp_8h.html#a20a17">csrxNotBOL</a> = 4,
  68. 00125 <a class="code" href="regexp_8h.html#a20a18">csrxNotEOL</a> = 8
  69. 00126 };
  70. 00127
  71. <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>
  72. 00132 {
  73. <a name="l00134"></a><a class="code" href="structcsRegExpMatch.html#o0">00134</a> size_t startOffset;
  74. <a name="l00139"></a><a class="code" href="structcsRegExpMatch.html#o1">00139</a> size_t endOffset;
  75. 00140 };
  76. 00141
  77. <a name="l00153"></a><a class="code" href="classcsRegExpMatcher.html">00153</a> <span class="keyword">class </span>CS_CRYSTALSPACE_EXPORT csRegExpMatcher
  78. 00154 {
  79. 00155 <span class="keywordtype">void</span>* regex;
  80. 00156 <span class="keywordtype">char</span>* pattern;
  81. 00157 <span class="keywordtype">int</span> compiledFlags;
  82. 00158 <a class="code" href="regexp_8h.html#a19">csRegExpMatchError</a> compileError;
  83. 00159 <span class="keywordtype">bool</span> extendedRE;
  84. 00160
  85. 00161 <span class="keywordtype">bool</span> Compile (<span class="keywordtype">int</span> flags, <span class="keywordtype">bool</span> nosub);
  86. 00162
  87. 00163 <span class="keyword">public</span>:
  88. 00170 csRegExpMatcher (<span class="keyword">const</span> <span class="keywordtype">char</span>* pattern, <span class="keywordtype">bool</span> extendedRE = <span class="keyword">false</span>);
  89. 00171
  90. 00173 ~csRegExpMatcher ();
  91. 00174
  92. 00184 <a class="code" href="regexp_8h.html#a19">csRegExpMatchError</a> Match (<span class="keyword">const</span> <span class="keywordtype">char</span>* string, <span class="keywordtype">int</span> flags = 0);
  93. 00185
  94. 00197 <a class="code" href="regexp_8h.html#a19">csRegExpMatchError</a> Match (<span class="keyword">const</span> <span class="keywordtype">char</span>* string,
  95. 00198 <a class="code" href="classcsArray.html">csArray&lt;csRegExpMatch&gt;</a>&amp; matches, <span class="keywordtype">int</span> flags = 0);
  96. 00199 };
  97. 00200
  98. 00201 <span class="preprocessor">#endif // __CS_UTIL_REGEXP_H__</span>
  99. </pre></div><hr size="1"><address><small>Generated for Crystal Space by
  100. <a href="http://www.doxygen.org/index.html">doxygen</a> 1.4.2
  101. </small></address> </div></body> </html>