1 |
// |
// |
2 |
// assembly: System |
// assembly: System |
3 |
// namespace: System.Text.RegularExpressions |
// namespace: System.Text.RegularExpressions |
4 |
// file: RegexRunner.cs |
// file: RegexRunner.cs |
5 |
// |
// |
6 |
// author: Dan Lewis (dihlewis@yahoo.co.uk) |
// author: Dan Lewis (dihlewis@yahoo.co.uk) |
7 |
// (c) 2002 |
// (c) 2002 |
8 |
|
|
9 |
|
// |
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: |
17 |
|
// |
18 |
|
// The above copyright notice and this permission notice shall be |
19 |
|
// included in all copies or substantial portions of the Software. |
20 |
|
// |
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. |
28 |
|
// |
29 |
|
|
30 |
using System; |
using System; |
31 |
using System.ComponentModel; |
using System.ComponentModel; |
32 |
|
|
33 |
namespace System.Text.RegularExpressions { |
namespace System.Text.RegularExpressions { |
|
/* I'm just guessing that this is the correct place for this |
|
|
* attribute, and that the option is correct. It shuts up |
|
|
* CorCompare for this undocumented class. |
|
|
*/ |
|
34 |
[EditorBrowsable (EditorBrowsableState.Never)] |
[EditorBrowsable (EditorBrowsableState.Never)] |
35 |
public abstract class RegexRunner { |
public abstract class RegexRunner { |
36 |
// constructor |
// constructor |
37 |
|
|
38 |
protected internal RegexRunner () { |
[TODO] |
39 |
throw new NotImplementedException ("RegexRunner is not supported by Mono."); |
protected internal RegexRunner () { |
40 |
} |
throw new NotImplementedException ("RegexRunner is not supported by Mono."); |
41 |
|
} |
42 |
// protected abstract |
|
43 |
|
// protected abstract |
44 |
protected abstract bool FindFirstChar (); |
|
45 |
|
protected abstract bool FindFirstChar (); |
46 |
protected abstract void Go (); |
|
47 |
|
protected abstract void Go (); |
48 |
protected abstract void InitTrackCount (); |
|
49 |
|
protected abstract void InitTrackCount (); |
50 |
// protected methods |
|
51 |
|
// protected methods |
52 |
protected void Capture (int capnum, int start, int end) { |
|
53 |
} |
[TODO] |
54 |
|
protected void Capture (int capnum, int start, int end) { |
55 |
protected static bool CharInSet (char ch, string set, string category) { |
throw new NotImplementedException (); |
56 |
return false; |
} |
57 |
} |
|
58 |
|
[TODO] |
59 |
protected void Crawl (int i) { |
protected static bool CharInSet (char ch, string set, string category) { |
60 |
} |
throw new NotImplementedException (); |
61 |
|
} |
62 |
protected int CrawlPos () { |
|
63 |
return 0; |
[TODO] |
64 |
} |
protected void Crawl (int i) { |
65 |
|
throw new NotImplementedException (); |
66 |
protected void DoubleCrawl () { |
} |
67 |
} |
|
68 |
|
[TODO] |
69 |
protected void DoubleStack () { |
protected int Crawlpos () { |
70 |
} |
throw new NotImplementedException (); |
71 |
|
} |
72 |
protected void DoubleTrack () { |
|
73 |
} |
[TODO] |
74 |
|
protected void DoubleCrawl () { |
75 |
protected void EnsureStorage () { |
throw new NotImplementedException (); |
76 |
} |
} |
77 |
|
|
78 |
protected bool IsBoundary (int index, int startpos, int endpos) { |
[TODO] |
79 |
return false; |
protected void DoubleStack () { |
80 |
} |
throw new NotImplementedException (); |
81 |
|
} |
82 |
protected bool IsECMABoundary (int index, int startpos, int endpos) { |
|
83 |
return false; |
[TODO] |
84 |
} |
protected void DoubleTrack () { |
85 |
|
throw new NotImplementedException (); |
86 |
protected bool IsMatched (int cap) { |
} |
87 |
return false; |
|
88 |
} |
[TODO] |
89 |
|
protected void EnsureStorage () { |
90 |
protected int MatchIndex (int cap) { |
throw new NotImplementedException (); |
91 |
return 0; |
} |
92 |
} |
|
93 |
|
[TODO] |
94 |
protected int MatchLength (int cap) { |
protected bool IsBoundary (int index, int startpos, int endpos) { |
95 |
return 0; |
throw new NotImplementedException (); |
96 |
} |
} |
97 |
|
|
98 |
protected int PopCrawl () { |
[TODO] |
99 |
return 0; |
protected bool IsECMABoundary (int index, int startpos, int endpos) { |
100 |
} |
throw new NotImplementedException (); |
101 |
|
} |
102 |
protected void TransferCapture (int capnum, int uncapnum, int start, int end) { |
|
103 |
} |
[TODO] |
104 |
|
protected bool IsMatched (int cap) { |
105 |
protected void Uncapture () { |
throw new NotImplementedException (); |
106 |
} |
} |
107 |
|
|
108 |
// internal |
[TODO] |
109 |
|
protected int MatchIndex (int cap) { |
110 |
protected internal Match Scan (Regex regex, string text, int textbeg, int textend, int textstart, int prevlen, bool quick) { |
throw new NotImplementedException (); |
111 |
return null; |
} |
112 |
} |
|
113 |
} |
[TODO] |
114 |
} |
protected int MatchLength (int cap) { |
115 |
|
throw new NotImplementedException (); |
116 |
|
} |
117 |
|
|
118 |
|
[TODO] |
119 |
|
protected int Popcrawl () { |
120 |
|
throw new NotImplementedException (); |
121 |
|
} |
122 |
|
|
123 |
|
[TODO] |
124 |
|
protected void TransferCapture (int capnum, int uncapnum, int start, int end) { |
125 |
|
throw new NotImplementedException (); |
126 |
|
} |
127 |
|
|
128 |
|
[TODO] |
129 |
|
protected void Uncapture () { |
130 |
|
throw new NotImplementedException (); |
131 |
|
} |
132 |
|
|
133 |
|
// internal |
134 |
|
|
135 |
|
protected internal Match Scan (Regex regex, string text, int textbeg, int textend, int textstart, int prevlen, bool quick) { |
136 |
|
throw new NotImplementedException (); |
137 |
|
} |
138 |
|
|
139 |
|
[TODO] |
140 |
|
protected internal int[] runcrawl; |
141 |
|
[TODO] |
142 |
|
protected internal int runcrawlpos; |
143 |
|
[TODO] |
144 |
|
protected internal Match runmatch; |
145 |
|
[TODO] |
146 |
|
protected internal Regex runregex; |
147 |
|
[TODO] |
148 |
|
protected internal int[] runstack; |
149 |
|
[TODO] |
150 |
|
protected internal int runstackpos; |
151 |
|
[TODO] |
152 |
|
protected internal string runtext; |
153 |
|
[TODO] |
154 |
|
protected internal int runtextbeg; |
155 |
|
[TODO] |
156 |
|
protected internal int runtextend; |
157 |
|
[TODO] |
158 |
|
protected internal int runtextpos; |
159 |
|
[TODO] |
160 |
|
protected internal int runtextstart; |
161 |
|
[TODO] |
162 |
|
protected internal int[] runtrack; |
163 |
|
[TODO] |
164 |
|
protected internal int runtrackcount; |
165 |
|
[TODO] |
166 |
|
protected internal int runtrackpos; |
167 |
|
} |
168 |
|
} |