crystal /CS/migrated/tags/PRE_CSARRAY_SIZE_T_INDICES/docs/html/api/regexp_8h-source.html

Language HTML Lines 101
MD5 Hash 14052413638ad6287f432e27ca1bb8fd
Repository https://crystal.svn.sourceforge.net/svnroot/crystal View Raw File
  1
  2
  3
  4
  5
  6
  7
  8
  9
 10
 11
 12
 13
 14
 15
 16
 17
 18
 19
 20
 21
 22
 23
 24
 25
 26
 27
 28
 29
 30
 31
 32
 33
 34
 35
 36
 37
 38
 39
 40
 41
 42
 43
 44
 45
 46
 47
 48
 49
 50
 51
 52
 53
 54
 55
 56
 57
 58
 59
 60
 61
 62
 63
 64
 65
 66
 67
 68
 69
 70
 71
 72
 73
 74
 75
 76
 77
 78
 79
 80
 81
 82
 83
 84
 85
 86
 87
 88
 89
 90
 91
 92
 93
 94
 95
 96
 97
 98
 99
100
<!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://crystal.sourceforge.net/"><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.2.18 -->
<center>
<a class="qindex" href="index.html">Main Page</a> &nbsp; <a class="qindex" href="modules.html">Modules</a> &nbsp; <a class="qindex" href="hierarchy.html">Class Hierarchy</a> &nbsp; <a class="qindex" href="classes.html">Alphabetical List</a> &nbsp; <a class="qindex" href="annotated.html">Compound List</a> &nbsp; <a class="qindex" href="files.html">File List</a> &nbsp; <a class="qindex" href="functions.html">Compound Members</a> &nbsp; <a class="qindex" href="globals.html">File Members</a> &nbsp; <a class="qindex" href="pages.html">Related Pages</a> &nbsp; </center>
<hr><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 <a class="code" href="structcsRegExpMatch.html">csRegExpMatch</a>
00132 {
<a name="l00134"></a><a class="code" href="structcsRegExpMatch.html#m0">00134</a>   size_t startOffset;
<a name="l00139"></a><a class="code" href="structcsRegExpMatch.html#m1">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 
00191   <a class="code" href="regexp_8h.html#a19">csRegExpMatchError</a> Match (<span class="keyword">const</span> <span class="keywordtype">char</span>* string, 
00192     <a class="code" href="classcsArray.html">csArray&lt;csRegExpMatch&gt;</a>&amp; matches, <span class="keywordtype">int</span> flags = 0);
00193 };
00194 
00195 <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.2.18 
</small></address> </div></body> </html>
Back to Top