public override void Reset() { base.Reset(); this.str = PatternAnalyzer.ToString(m_input); // LUCENENET: Since we need to "reset" the Match // object, we also need an "isReset" flag to indicate // whether we are at the head of the match and to // take the appropriate measures to ensure we don't // overwrite our matcher variable with // matcher = matcher.NextMatch(); // before it is time. A string could potentially // match on index 0, so we need another variable to // manage this state. this.matcher = pattern.Match(this.str); this.isReset = true; this.pos = 0; this.initialized = true; }
public override void Reset() { base.Reset(); this.str = PatternAnalyzer.ToString(m_input); this.pos = 0; }