internal void Reset(string?text, int textLength) { Text = text; _textbeg = 0; _textend = textLength; int[] matchcount = _matchcount; for (int i = 0; i < matchcount.Length; i++) { matchcount[i] = 0; } _balancing = false; _groupcoll?.Reset(); }
internal void Reset(Regex regex, string?text, int textbeg, int textend, int textstart) { _regex = regex; Text = text; _textbeg = textbeg; _textend = textend; _textstart = textstart; int[] matchcount = _matchcount; for (int i = 0; i < matchcount.Length; i++) { matchcount[i] = 0; } _balancing = false; _groupcoll?.Reset(); }