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

MatchIndex() private method

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

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

Usage Example

Esempio n. 1
0
 /// <summary>
 /// Call out to runmatch to get around visibility issues
 /// </summary>
 protected int MatchIndex(int cap)
 {
     return(runmatch.MatchIndex(cap));
 }