System.Text.RegularExpressions.Match.MatchLength C# (CSharp) Method

MatchLength() private method

private MatchLength ( int cap ) : int
cap int
return int
        internal virtual int MatchLength(int cap)
        {
            int i = _matches[cap][_matchcount[cap] * 2 - 1];
            if (i >= 0)
                return i;

            return _matches[cap][-3 - i];
        }

Usage Example

Example #1
0
 /// <summary>
 /// Call out to runmatch to get around visibility issues
 /// </summary>
 protected int MatchLength(int cap)
 {
     return(runmatch.MatchLength(cap));
 }
All Usage Examples Of System.Text.RegularExpressions.Match::MatchLength