Terraria v1.4.4.9
Terraria source code documentation
Loading...
Searching...
No Matches

◆ MatchIndex()

int System.Text.RegularExpressions.Match.MatchIndex ( int cap)
inlinepackageinherited

Definition at line 175 of file Match.cs.

176 {
177 int[][] matches = _matches;
178 int num = matches[cap][_matchcount[cap] * 2 - 2];
179 if (num < 0)
180 {
181 return matches[cap][-3 - num];
182 }
183 return num;
184 }

References System.Text.RegularExpressions.Match._matchcount, and System.Text.RegularExpressions.Match._matches.

Referenced by System.Text.RegularExpressions.RegexRunner.MatchIndex().