3 // namespace: System.Text.RegularExpressions
4 // file: RegexRunner.cs
6 // author: Dan Lewis (dihlewis@yahoo.co.uk)
8 // Copyright (C) 2005 Novell, Inc (http://www.novell.com)
10 // Permission is hereby granted, free of charge, to any person obtaining
11 // a copy of this software and associated documentation files (the
12 // "Software"), to deal in the Software without restriction, including
13 // without limitation the rights to use, copy, modify, merge, publish,
14 // distribute, sublicense, and/or sell copies of the Software, and to
15 // permit persons to whom the Software is furnished to do so, subject to
16 // the following conditions:
18 // The above copyright notice and this permission notice shall be
19 // included in all copies or substantial portions of the Software.
21 // THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
22 // EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
23 // MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
24 // NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
25 // LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
26 // OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
27 // WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
30 using System.ComponentModel;
32 namespace System.Text.RegularExpressions {
34 [EditorBrowsable (EditorBrowsableState.Never)]
35 [MonoTODO ("RegexRunner is not supported by Mono.")]
36 public abstract class RegexRunner {
40 protected internal RegexRunner ()
46 protected abstract bool FindFirstChar ();
48 protected abstract void Go ();
50 protected abstract void InitTrackCount ();
55 protected void Capture (int capnum, int start, int end) {
56 throw new NotImplementedException ();
59 protected static bool CharInClass (char ch, string charClass)
61 throw new NotImplementedException ();
64 protected static bool CharInSet (char ch, string set, string category) {
65 throw new NotImplementedException ();
69 protected void Crawl (int i) {
70 throw new NotImplementedException ();
74 protected int Crawlpos () {
75 throw new NotImplementedException ();
79 protected void DoubleCrawl () {
80 throw new NotImplementedException ();
84 protected void DoubleStack () {
85 throw new NotImplementedException ();
89 protected void DoubleTrack () {
90 throw new NotImplementedException ();
94 protected void EnsureStorage () {
95 throw new NotImplementedException ();
99 protected bool IsBoundary (int index, int startpos, int endpos) {
100 throw new NotImplementedException ();
104 protected bool IsECMABoundary (int index, int startpos, int endpos) {
105 throw new NotImplementedException ();
109 protected bool IsMatched (int cap) {
110 throw new NotImplementedException ();
114 protected int MatchIndex (int cap) {
115 throw new NotImplementedException ();
119 protected int MatchLength (int cap) {
120 throw new NotImplementedException ();
124 protected int Popcrawl () {
125 throw new NotImplementedException ();
129 protected void TransferCapture (int capnum, int uncapnum, int start, int end) {
130 throw new NotImplementedException ();
134 protected void Uncapture () {
135 throw new NotImplementedException ();
140 protected internal Match Scan (Regex regex, string text, int textbeg, int textend, int textstart, int prevlen, bool quick) {
141 throw new NotImplementedException ();
145 protected internal int[] runcrawl;
147 protected internal int runcrawlpos;
149 protected internal Match runmatch;
151 protected internal Regex runregex;
153 protected internal int[] runstack;
155 protected internal int runstackpos;
157 protected internal string runtext;
159 protected internal int runtextbeg;
161 protected internal int runtextend;
163 protected internal int runtextpos;
165 protected internal int runtextstart;
167 protected internal int[] runtrack;
169 protected internal int runtrackcount;
171 protected internal int runtrackpos;