BindingFlags.Public needed here as Exception.HResult is now public in .NET 4.5. This...
[mono.git] / mcs / class / System / System.Text.RegularExpressions / RegexRunner.cs
1 //
2 // assembly:    System
3 // namespace:   System.Text.RegularExpressions
4 // file:        RegexRunner.cs
5 //
6 // author:      Dan Lewis (dihlewis@yahoo.co.uk)
7 //              (c) 2002
8 // Copyright (C) 2005 Novell, Inc (http://www.novell.com)
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.ComponentModel;
31
32 namespace System.Text.RegularExpressions {
33
34         [EditorBrowsable (EditorBrowsableState.Never)]
35         [MonoTODO ("RegexRunner is not supported by Mono.")]
36         public abstract class RegexRunner {
37                 // constructor
38
39                 [MonoTODO]
40                 protected internal RegexRunner ()
41                 {
42                 }
43
44                 // protected abstract
45
46                 protected abstract bool FindFirstChar ();
47
48                 protected abstract void Go ();
49
50                 protected abstract void InitTrackCount ();
51
52                 // protected methods
53
54                 [MonoTODO]
55                 protected void Capture (int capnum, int start, int end) {
56                         throw new NotImplementedException ();
57                 }
58 #if NET_2_0
59                 [MonoTODO]
60                 protected static bool CharInClass (char ch, string charClass)
61                 {
62                         throw new NotImplementedException ();
63                 }
64 #endif
65                 [MonoTODO]
66                 protected static bool CharInSet (char ch, string set, string category) {
67                         throw new NotImplementedException ();
68                 }
69
70                 [MonoTODO]
71                 protected void Crawl (int i) {
72                         throw new NotImplementedException ();
73                 }
74
75                 [MonoTODO]
76                 protected int Crawlpos () {
77                         throw new NotImplementedException ();
78                 }
79
80                 [MonoTODO]
81                 protected void DoubleCrawl () {
82                         throw new NotImplementedException ();
83                 }
84
85                 [MonoTODO]
86                 protected void DoubleStack () {
87                         throw new NotImplementedException ();
88                 }
89
90                 [MonoTODO]
91                 protected void DoubleTrack () {
92                         throw new NotImplementedException ();
93                 }
94
95                 [MonoTODO]
96                 protected void EnsureStorage () {
97                         throw new NotImplementedException ();
98                 }
99
100                 [MonoTODO]
101                 protected bool IsBoundary (int index, int startpos, int endpos) {
102                         throw new NotImplementedException ();
103                 }
104
105                 [MonoTODO]
106                 protected bool IsECMABoundary (int index, int startpos, int endpos) {
107                         throw new NotImplementedException ();
108                 }
109
110                 [MonoTODO]
111                 protected bool IsMatched (int cap) {
112                         throw new NotImplementedException ();
113                 }
114
115                 [MonoTODO]
116                 protected int MatchIndex (int cap) {
117                         throw new NotImplementedException ();
118                 }
119
120                 [MonoTODO]
121                 protected int MatchLength (int cap) {
122                         throw new NotImplementedException ();
123                 }
124
125                 [MonoTODO]
126                 protected int Popcrawl () {
127                         throw new NotImplementedException ();
128                 }
129
130                 [MonoTODO]
131                 protected void TransferCapture (int capnum, int uncapnum, int start, int end) {
132                         throw new NotImplementedException ();
133                 }
134
135                 [MonoTODO]
136                 protected void Uncapture () {
137                         throw new NotImplementedException ();
138                 }
139
140                 // internal
141                 
142                 protected internal Match Scan (Regex regex, string text, int textbeg, int textend, int textstart, int prevlen, bool quick) {
143                         throw new NotImplementedException ();
144                 }
145
146                 [MonoTODO]
147                 protected internal int[] runcrawl;
148                 [MonoTODO]
149                 protected internal int runcrawlpos;
150                 [MonoTODO]
151                 protected internal Match runmatch;
152                 [MonoTODO]
153                 protected internal Regex runregex;
154                 [MonoTODO]
155                 protected internal int[] runstack;
156                 [MonoTODO]
157                 protected internal int runstackpos;
158                 [MonoTODO]
159                 protected internal string runtext;
160                 [MonoTODO]
161                 protected internal int runtextbeg;
162                 [MonoTODO]
163                 protected internal int runtextend;
164                 [MonoTODO]
165                 protected internal int runtextpos;
166                 [MonoTODO]
167                 protected internal int runtextstart;
168                 [MonoTODO]
169                 protected internal int[] runtrack;
170                 [MonoTODO]
171                 protected internal int runtrackcount;
172                 [MonoTODO]
173                 protected internal int runtrackpos;
174         }
175 }