53 private bool ignoreTimeout;
55 private int timeoutOccursAt;
57 private const int TimeoutCheckFrequency = 1000;
59 private int timeoutChecksToSkip;
76 protected internal Match Scan(
Regex regex,
string text,
int textbeg,
int textend,
int textstart,
int prevlen,
bool quick)
78 return Scan(regex, text, textbeg, textend, textstart, prevlen, quick, regex.
MatchTimeout);
92 protected internal Match Scan(
Regex regex,
string text,
int textbeg,
int textend,
int textstart,
int prevlen,
bool quick,
TimeSpan timeout)
128 return TidyMatch(quick);
140 TidyMatch(quick:
true);
144 private void StartTimeoutWatch()
148 timeoutChecksToSkip = 1000;
156 if (!ignoreTimeout && --timeoutChecksToSkip == 0)
158 timeoutChecksToSkip = 1000;
163 private void DoCheckTimeout()
166 if (tickCount < timeoutOccursAt || (0 > timeoutOccursAt && 0 < tickCount))
174 protected abstract void Go();
183 private void InitMatch()
226 private Match TidyMatch(
bool quick)
256 protected bool IsBoundary(
int index,
int startpos,
int endpos)
258 return (index > startpos && RegexCharClass.IsWordChar(
runtext[index - 1])) != (index < endpos && RegexCharClass.IsWordChar(
runtext[index]));
268 return (index > startpos && RegexCharClass.IsECMAWordChar(
runtext[index - 1])) != (index < endpos && RegexCharClass.IsECMAWordChar(
runtext[index]));
276 protected static bool CharInSet(
char ch,
string set,
string category)
278 string set2 = RegexCharClass.ConvertOldStringsToClass(
set, category);
279 return RegexCharClass.CharInClass(ch, set2);
289 return RegexCharClass.CharInClass(ch, charClass);
295 int[] destinationArray =
new int[
runtrack.Length * 2];
304 int[] destinationArray =
new int[
runstack.Length * 2];
313 int[] destinationArray =
new int[
runcrawl.Length * 2];
348 protected void Capture(
int capnum,
int start,
int end)
357 runmatch.AddMatch(capnum, start, end - start);
380 else if (end <= num2)
400 runmatch.AddMatch(capnum, start, end - start);
int MatchLength(int cap)
Used by a T:System.Text.RegularExpressions.Regex object generated by the Overload:System....
bool IsECMABoundary(int index, int startpos, int endpos)
Used by a T:System.Text.RegularExpressions.Regex object generated by the Overload:System....
void Uncapture()
Used by a T:System.Text.RegularExpressions.Regex object generated by the Overload:System....
void EnsureStorage()
Used by a T:System.Text.RegularExpressions.Regex object generated by the Overload:System....
internal Regex runregex
Used by a T:System.Text.RegularExpressions.Regex object generated by the Overload:System....
void DoubleStack()
Used by a T:System.Text.RegularExpressions.Regex object generated by the Overload:System....
EditorBrowsableState
Specifies the browsable state of a property or method from within an editor.
internal Match runmatch
Used by a T:System.Text.RegularExpressions.Regex object generated by the Overload:System....
int MatchIndex(int cap)
Used by a T:System.Text.RegularExpressions.Regex object generated by the Overload:System....
internal Match Scan(Regex regex, string text, int textbeg, int textend, int textstart, int prevlen, bool quick)
Used by a T:System.Text.RegularExpressions.Regex object generated by the Overload:System....
double TotalMilliseconds
Gets the value of the current T:System.TimeSpan structure expressed in whole and fractional milliseco...
void CheckTimeout()
Used by a T:System.Text.RegularExpressions.Regex object generated by the Overload:System....
static internal void ValidateMatchTimeout(TimeSpan matchTimeout)
Checks whether a time-out interval is within an acceptable range.
bool IsMatched(int cap)
Used by a T:System.Text.RegularExpressions.Regex object generated by the Overload:System....
static Match Empty
Gets the empty group. All failed matches return this empty match.
void TransferCapture(int capnum, int uncapnum, int start, int end)
Used by a T:System.Text.RegularExpressions.Regex object generated by the Overload:System....
static TimeSpan FromMilliseconds(double value)
Returns a T:System.TimeSpan that represents a specified number of milliseconds.
internal int [] runstack
Used by a T:System.Text.RegularExpressions.Regex object generated by the Overload:System....
internal int capsize
Used by a T:System.Text.RegularExpressions.Regex object generated by the Overload:System....
internal int runtextpos
Used by a T:System.Text.RegularExpressions.Regex object generated by the Overload:System....
void Crawl(int i)
Used by a T:System.Text.RegularExpressions.Regex object generated by the Overload:System....
void Capture(int capnum, int start, int end)
Used by a T:System.Text.RegularExpressions.Regex object generated by the Overload:System....
Provides information about, and means to manipulate, the current environment and platform....
bool IsBoundary(int index, int startpos, int endpos)
Used by a T:System.Text.RegularExpressions.Regex object generated by the Overload:System....
abstract void Go()
Used by a T:System.Text.RegularExpressions.Regex object generated by the Overload:System....
int Crawlpos()
Used by a T:System.Text.RegularExpressions.Regex object generated by the Overload:System....
internal int runtrackpos
Used by a T:System.Text.RegularExpressions.Regex object generated by the Overload:System....
internal int runtrackcount
Used by a T:System.Text.RegularExpressions.Regex object generated by the Overload:System....
internal Hashtable caps
Used by a T:System.Text.RegularExpressions.Regex object generated by the Overload:System....
internal int runstackpos
Used by a T:System.Text.RegularExpressions.Regex object generated by the Overload:System....
Provides methods for creating, manipulating, searching, and sorting arrays, thereby serving as the ba...
static int TickCount
Gets the number of milliseconds elapsed since the system started.
internal int [] runcrawl
Used by a T:System.Text.RegularExpressions.Regex object generated by the Overload:System....
static bool CharInSet(char ch, string set, string category)
Used by a T:System.Text.RegularExpressions.Regex object generated by the Overload:System....
Represents the results from a single regular expression match.
bool RightToLeft
Gets a value that indicates whether the regular expression searches from right to left.
internal int runcrawlpos
Used by a T:System.Text.RegularExpressions.Regex object generated by the Overload:System....
void DoubleTrack()
Used by a T:System.Text.RegularExpressions.Regex object generated by the Overload:System....
static void Copy(Array sourceArray, Array destinationArray, int length)
Copies a range of elements from an T:System.Array starting at the first element and pastes them into ...
abstract void InitTrackCount()
Used by a T:System.Text.RegularExpressions.Regex object generated by the Overload:System....
internal int runtextend
Used by a T:System.Text.RegularExpressions.Regex object generated by the Overload:System....
internal string runtext
Used by a T:System.Text.RegularExpressions.Regex object generated by the Overload:System....
internal int runtextstart
Used by a T:System.Text.RegularExpressions.Regex object generated by the Overload:System....
static bool CharInClass(char ch, string charClass)
Used by a T:System.Text.RegularExpressions.Regex object generated by the Overload:System....
Represents a time interval.To browse the .NET Framework source code for this type,...
abstract bool FindFirstChar()
Used by a T:System.Text.RegularExpressions.Regex object generated by the Overload:System....
TimeSpan MatchTimeout
Gets the time-out interval of the current instance.
internal Match Scan(Regex regex, string text, int textbeg, int textend, int textstart, int prevlen, bool quick, TimeSpan timeout)
Used by a T:System.Text.RegularExpressions.Regex object generated by the Overload:System....
internal int [] runtrack
Used by a T:System.Text.RegularExpressions.Regex object generated by the Overload:System....
internal int runtextbeg
Used by a T:System.Text.RegularExpressions.Regex object generated by the Overload:System....
The T:System.Text.RegularExpressions.RegexRunner class is the base class for compiled regular express...
Represents an immutable regular expression.To browse the .NET Framework source code for this type,...
internal RegexRunner()
Initializes a new instance of the T:System.Text.RegularExpressions.RegexRunner class.
internal string pattern
Used by a T:System.Text.RegularExpressions.Regex object generated by the Overload:System....
int Popcrawl()
Used by a T:System.Text.RegularExpressions.Regex object generated by the Overload:System....
static readonly TimeSpan InfiniteMatchTimeout
Specifies that a pattern-matching operation should not time out.
void DoubleCrawl()
Used by a T:System.Text.RegularExpressions.Regex object generated by the Overload:System....