PageRenderTime 8ms CodeModel.GetById 2ms app.highlight 4ms RepoModel.GetById 1ms 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
  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>
 2100002 <span class="comment">    Copyright (C) 2004 by Frank Richter</span>
 2200003 <span class="comment"></span>
 2300004 <span class="comment">    This library is free software; you can redistribute it and/or</span>
 2400005 <span class="comment">    modify it under the terms of the GNU Library General Public</span>
 2500006 <span class="comment">    License as published by the Free Software Foundation; either</span>
 2600007 <span class="comment">    version 2 of the License, or (at your option) any later version.</span>
 2700008 <span class="comment"></span>
 2800009 <span class="comment">    This library is distributed in the hope that it will be useful,</span>
 2900010 <span class="comment">    but WITHOUT ANY WARRANTY; without even the implied warranty of</span>
 3000011 <span class="comment">    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU</span>
 3100012 <span class="comment">    Library General Public License for more details.</span>
 3200013 <span class="comment"></span>
 3300014 <span class="comment">    You should have received a copy of the GNU Library General Public</span>
 3400015 <span class="comment">    License along with this library; if not, write to the Free</span>
 3500016 <span class="comment">    Software Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.</span>
 3600017 <span class="comment">*/</span>
 3700018 
 3800019 <span class="preprocessor">#ifndef __CS_UTIL_REGEXP_H__</span>
 3900020 <span class="preprocessor"></span><span class="preprocessor">#define __CS_UTIL_REGEXP_H__</span>
 4000021 <span class="preprocessor"></span>
 4100026 <span class="preprocessor">#include "csextern.h"</span>
 4200027 <span class="preprocessor">#include "<a class="code" href="array_8h.html">csutil/array.h</a>"</span>
 4300028 
 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>
 4500033 {
 4600035   <a class="code" href="regexp_8h.html#a19a0">csrxNoError</a>,
 4700037   <a class="code" href="regexp_8h.html#a19a1">csrxNoMatch</a>,
 4800043   <a class="code" href="regexp_8h.html#a19a2">csrxBadBraces</a>,
 4900047   <a class="code" href="regexp_8h.html#a19a3">csrxBadPattern</a>,
 5000052   <a class="code" href="regexp_8h.html#a19a4">csrxBadRepetition</a>,
 5100057   <a class="code" href="regexp_8h.html#a19a5">csrxErrCollate</a>,
 5200061   <a class="code" href="regexp_8h.html#a19a6">csrxErrCharType</a>,
 5300065   <a class="code" href="regexp_8h.html#a19a7">csrxErrEscape</a>,
 5400069   <a class="code" href="regexp_8h.html#a19a8">csrxErrSubReg</a>,
 5500073   <a class="code" href="regexp_8h.html#a19a9">csrxErrBrackets</a>,
 5600078   <a class="code" href="regexp_8h.html#a19a10">csrxErrParentheses</a>,
 5700082   <a class="code" href="regexp_8h.html#a19a11">csrxErrBraces</a>,
 5800086   <a class="code" href="regexp_8h.html#a19a12">csrxErrRange</a>,
 5900090   <a class="code" href="regexp_8h.html#a19a13">csrxErrSpace</a>,
 6000094   <a class="code" href="regexp_8h.html#a19a14">csrxErrUnknown</a>
 6100095 };
 6200096 
 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>
 6400101 {
 6500105   <a class="code" href="regexp_8h.html#a20a15">csrxIgnoreCase</a> = 1,
 6600114   <a class="code" href="regexp_8h.html#a20a16">csrxNewLine</a> = 2,
 6700120   <a class="code" href="regexp_8h.html#a20a17">csrxNotBOL</a> = 4,
 6800125   <a class="code" href="regexp_8h.html#a20a18">csrxNotEOL</a> = 8
 6900126 };
 7000127 
 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>
 7200132 {
 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;
 7500140 };
 7600141 
 77<a name="l00153"></a><a class="code" href="classcsRegExpMatcher.html">00153</a> <span class="keyword">class </span>CS_CRYSTALSPACE_EXPORT csRegExpMatcher
 7800154 {
 7900155   <span class="keywordtype">void</span>* regex;
 8000156   <span class="keywordtype">char</span>* pattern;
 8100157   <span class="keywordtype">int</span> compiledFlags;
 8200158   <a class="code" href="regexp_8h.html#a19">csRegExpMatchError</a> compileError;
 8300159   <span class="keywordtype">bool</span> extendedRE;
 8400160   
 8500161   <span class="keywordtype">bool</span> Compile (<span class="keywordtype">int</span> flags, <span class="keywordtype">bool</span> nosub);
 8600162 
 8700163 <span class="keyword">public</span>:
 8800170   csRegExpMatcher (<span class="keyword">const</span> <span class="keywordtype">char</span>* pattern, <span class="keywordtype">bool</span> extendedRE = <span class="keyword">false</span>);
 8900171 
 9000173   ~csRegExpMatcher ();
 9100174   
 9200184   <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);
 9300185 
 9400197   <a class="code" href="regexp_8h.html#a19">csRegExpMatchError</a> Match (<span class="keyword">const</span> <span class="keywordtype">char</span>* string, 
 9500198     <a class="code" href="classcsArray.html">csArray&lt;csRegExpMatch&gt;</a>&amp; matches, <span class="keywordtype">int</span> flags = 0);
 9600199 };
 9700200 
 9800201 <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>