Ejemplo n.º 1
0
        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();
        }
Ejemplo n.º 2
0
        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();
        }