Pchp.Library.PerlRegex.Match.Match C# (CSharp) Method

Match() private method

private Match ( Regex regex, int capcount, string text, int begpos, int len, int startpos ) : System
regex Regex
capcount int
text string
begpos int
len int
startpos int
return System
        internal Match(Regex regex, int capcount, string text, int begpos, int len, int startpos)
            : base(text, new int[2], 0, "0")
        {
            _regex = regex;
            _matchcount = new int[capcount];

            _matches = new int[capcount][];
            _matches[0] = _caps;
            _textbeg = begpos;
            _textend = begpos + len;
            _textstart = startpos;
            _balancing = false;

            // No need for an exception here.  This is only called internally, so we'll use an Assert instead
            System.Diagnostics.Debug.Assert(!(_textbeg < 0 || _textstart < _textbeg || _textend < _textstart || _text.Length < _textend),
                                            "The parameters are out of range.");
        }