System.Text.RegularExpressions.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
 /*
  * Call out to runmatch to get around visibility issues
  */
 protected int MatchIndex(int cap)
 {
     return(_runmatch.MatchIndex(cap));
 }
All Usage Examples Of System.Text.RegularExpressions.Match::MatchIndex