System.Text.RegularExpressions.RegexRunner.Scan C# (CSharp) Method

Scan() protected method

Scans the string to find the first match. Uses the Match object both to feed text in and as a place to store matches that come out. All the action is in the abstract Go() method defined by subclasses. Our responsibility is to load up the class members (as done here) before calling Go. The optimizer can compute a set of candidate starting characters, and we could use a separate method Skip() that will quickly scan past any characters that we know can't match.
protected Scan ( Regex regex, string text, int textbeg, int textend, int textstart, int prevlen, bool quick ) : Match
regex Regex
text string
textbeg int
textend int
textstart int
prevlen int
quick bool
return Match
        protected internal Match Scan(Regex regex, string text, int textbeg, int textend, int textstart, int prevlen, bool quick)
        {
            return Scan(regex, text, textbeg, textend, textstart, prevlen, quick, regex.MatchTimeout);
        }

Same methods

RegexRunner::Scan ( Regex regex, string text, int textbeg, int textend, int textstart, int prevlen, bool quick, System.TimeSpan timeout ) : Match
RegexRunner::Scan ( System regex, string text, int textbeg, int textend, int textstart, int prevlen, bool quick ) : System.Text.RegularExpressions.Match
RegexRunner::Scan ( System regex, string text, int textbeg, int textend, int textstart, int prevlen, bool quick, System timeout ) : System.Text.RegularExpressions.Match