/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
- <!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>Crystal Space: 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.4.2 -->
- <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">Class List</a> | <a class="qindex" href="dirs.html">Directories</a> | <a class="qindex" href="files.html">File List</a> | <a class="qindex" href="functions.html">Class Members</a> | <a class="qindex" href="globals.html">File Members</a> | <a class="qindex" href="pages.html">Related Pages</a></div>
- <div class="nav">
- <a class="el" href="dir_000022.html">csutil</a></div>
- <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>
- 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 "<a class="code" href="array_8h.html">csutil/array.h</a>"</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">csrxNoError</a>,
- 00037 <a class="code" href="regexp_8h.html#a19a1">csrxNoMatch</a>,
- 00043 <a class="code" href="regexp_8h.html#a19a2">csrxBadBraces</a>,
- 00047 <a class="code" href="regexp_8h.html#a19a3">csrxBadPattern</a>,
- 00052 <a class="code" href="regexp_8h.html#a19a4">csrxBadRepetition</a>,
- 00057 <a class="code" href="regexp_8h.html#a19a5">csrxErrCollate</a>,
- 00061 <a class="code" href="regexp_8h.html#a19a6">csrxErrCharType</a>,
- 00065 <a class="code" href="regexp_8h.html#a19a7">csrxErrEscape</a>,
- 00069 <a class="code" href="regexp_8h.html#a19a8">csrxErrSubReg</a>,
- 00073 <a class="code" href="regexp_8h.html#a19a9">csrxErrBrackets</a>,
- 00078 <a class="code" href="regexp_8h.html#a19a10">csrxErrParentheses</a>,
- 00082 <a class="code" href="regexp_8h.html#a19a11">csrxErrBraces</a>,
- 00086 <a class="code" href="regexp_8h.html#a19a12">csrxErrRange</a>,
- 00090 <a class="code" href="regexp_8h.html#a19a13">csrxErrSpace</a>,
- 00094 <a class="code" href="regexp_8h.html#a19a14">csrxErrUnknown</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">csrxIgnoreCase</a> = 1,
- 00114 <a class="code" href="regexp_8h.html#a20a16">csrxNewLine</a> = 2,
- 00120 <a class="code" href="regexp_8h.html#a20a17">csrxNotBOL</a> = 4,
- 00125 <a class="code" href="regexp_8h.html#a20a18">csrxNotEOL</a> = 8
- 00126 };
- 00127
- <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>
- 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_CRYSTALSPACE_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 size="1"><address><small>Generated for Crystal Space by
- <a href="http://www.doxygen.org/index.html">doxygen</a> 1.4.2
- </small></address> </div></body> </html>