/CS/migrated/tags/PRE_OR_REMOVAL/docs/html/api/regexp_8h-source.html
HTML | 99 lines | 98 code | 0 blank | 1 comment | 0 complexity | d1a57ddb1f453d84568da566e5e995a4 MD5 | raw file
Possible License(s): GPL-2.0, LGPL-2.1, LGPL-2.0
- <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
- <html><head><meta http-equiv="Content-Type" content="text/html;charset=iso-8859-1">
- <title>csutil/regexp.h Source File (Crystal Space Public API Reference)</title>
- <link href="doxygen.css" rel="stylesheet" type="text/css">
- </head><body>
- <table border="0" cellpadding="0" cellspacing="0" width="100%" class="head">
- <tr heigth="59">
- <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>
- <td class="head"><h2>Public API Reference</h2></td>
- </tr>
- <tr heigth="11">
- <td colspan="2" class="headshadow" valign="top" style="padding-left:0;"><img src="csblurb.png" width="236" height="11" alt="" border="0"></td>
- </tr>
- </table>
- <div class="content">
- <!-- Generated by Doxygen 1.3.3 -->
- <div class="qindex"><a class="qindex" href="index.html">Main Page</a> | <a class="qindex" href="modules.html">Modules</a> | <a class="qindex" href="hierarchy.html">Class Hierarchy</a> | <a class="qindex" href="classes.html">Alphabetical List</a> | <a class="qindex" href="annotated.html">Compound List</a> | <a class="qindex" href="files.html">File List</a> | <a class="qindex" href="functions.html">Compound Members</a> | <a class="qindex" href="globals.html">File Members</a> | <a class="qindex" href="pages.html">Related Pages</a></div>
- <h1>csutil/regexp.h</h1><a href="regexp_8h.html">Go to the documentation of this file.</a><div class="fragment"><pre>00001 <span class="comment">/*</span>
- 00002 <span class="comment"> Copyright (C) 2004 by Frank Richter</span>
- 00003 <span class="comment"></span>
- 00004 <span class="comment"> This library is free software; you can redistribute it and/or</span>
- 00005 <span class="comment"> modify it under the terms of the GNU Library General Public</span>
- 00006 <span class="comment"> License as published by the Free Software Foundation; either</span>
- 00007 <span class="comment"> version 2 of the License, or (at your option) any later version.</span>
- 00008 <span class="comment"></span>
- 00009 <span class="comment"> This library is distributed in the hope that it will be useful,</span>
- 00010 <span class="comment"> but WITHOUT ANY WARRANTY; without even the implied warranty of</span>
- 00011 <span class="comment"> MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU</span>
- 00012 <span class="comment"> Library General Public License for more details.</span>
- 00013 <span class="comment"></span>
- 00014 <span class="comment"> You should have received a copy of the GNU Library General Public</span>
- 00015 <span class="comment"> License along with this library; if not, write to the Free</span>
- 00016 <span class="comment"> Software Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.</span>
- 00017 <span class="comment">*/</span>
- 00018
- 00019 <span class="preprocessor">#ifndef __CS_UTIL_REGEXP_H__</span>
- 00020 <span class="preprocessor"></span><span class="preprocessor">#define __CS_UTIL_REGEXP_H__</span>
- 00021 <span class="preprocessor"></span>
- 00026 <span class="preprocessor">#include "csextern.h"</span>
- 00027 <span class="preprocessor">#include "csutil/array.h"</span>
- 00028
- <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>
- 00033 {
- 00035 <a class="code" href="regexp_8h.html#a19a0">NoError</a>,
- 00037 <a class="code" href="regexp_8h.html#a19a1">NoMatch</a>,
- 00043 <a class="code" href="regexp_8h.html#a19a2">BadBraces</a>,
- 00047 <a class="code" href="regexp_8h.html#a19a3">BadPattern</a>,
- 00052 <a class="code" href="regexp_8h.html#a19a4">BadRepetition</a>,
- 00057 <a class="code" href="regexp_8h.html#a19a5">ErrCollate</a>,
- 00061 <a class="code" href="regexp_8h.html#a19a6">ErrCharType</a>,
- 00065 <a class="code" href="regexp_8h.html#a19a7">ErrEscape</a>,
- 00069 <a class="code" href="regexp_8h.html#a19a8">ErrSubReg</a>,
- 00073 <a class="code" href="regexp_8h.html#a19a9">ErrBrackets</a>,
- 00078 <a class="code" href="regexp_8h.html#a19a10">ErrParentheses</a>,
- 00082 <a class="code" href="regexp_8h.html#a19a11">ErrBraces</a>,
- 00086 <a class="code" href="regexp_8h.html#a19a12">ErrRange</a>,
- 00090 <a class="code" href="regexp_8h.html#a19a13">ErrSpace</a>,
- 00094 <a class="code" href="regexp_8h.html#a19a14">ErrUnknown</a>
- 00095 };
- 00096
- <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>
- 00101 {
- 00105 <a class="code" href="regexp_8h.html#a20a15">IgnoreCase</a> = 1,
- 00114 <a class="code" href="regexp_8h.html#a20a16">NewLine</a> = 2,
- 00120 <a class="code" href="regexp_8h.html#a20a17">NotBOL</a> = 4,
- 00125 <a class="code" href="regexp_8h.html#a20a18">NotEOL</a> = 8
- 00126 };
- 00127
- <a name="l00131"></a><a class="code" href="structcsRegExpMatch.html">00131</a> <span class="keyword">struct </span>CS_CSUTIL_EXPORT csRegExpMatch
- 00132 {
- <a name="l00134"></a><a class="code" href="structcsRegExpMatch.html#o0">00134</a> size_t startOffset;
- <a name="l00139"></a><a class="code" href="structcsRegExpMatch.html#o1">00139</a> size_t endOffset;
- 00140 };
- 00141
- <a name="l00153"></a><a class="code" href="classcsRegExpMatcher.html">00153</a> <span class="keyword">class </span>CS_CSUTIL_EXPORT csRegExpMatcher
- 00154 {
- 00155 <span class="keywordtype">void</span>* regex;
- 00156 <span class="keywordtype">char</span>* pattern;
- 00157 <span class="keywordtype">int</span> compiledFlags;
- 00158 <a class="code" href="regexp_8h.html#a19">csRegExpMatchError</a> compileError;
- 00159 <span class="keywordtype">bool</span> extendedRE;
- 00160
- 00161 <span class="keywordtype">bool</span> Compile (<span class="keywordtype">int</span> flags, <span class="keywordtype">bool</span> nosub);
- 00162
- 00163 <span class="keyword">public</span>:
- 00170 csRegExpMatcher (<span class="keyword">const</span> <span class="keywordtype">char</span>* pattern, <span class="keywordtype">bool</span> extendedRE = <span class="keyword">false</span>);
- 00171
- 00173 ~csRegExpMatcher ();
- 00174
- 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);
- 00185
- 00197 <a class="code" href="regexp_8h.html#a19">csRegExpMatchError</a> Match (<span class="keyword">const</span> <span class="keywordtype">char</span>* string,
- 00198 <a class="code" href="classcsArray.html">csArray<csRegExpMatch></a>& matches, <span class="keywordtype">int</span> flags = 0);
- 00199 };
- 00200
- 00201 <span class="preprocessor">#endif // __CS_UTIL_REGEXP_H__</span>
- </pre></div><hr><address><small>Generated for Crystal Space by
- <a href="http://www.doxygen.org/index.html">doxygen</a> 1.3.3
- </small></address> </div></body> </html>