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

◆ BalanceMatch()

void System.Text.RegularExpressions.Match.BalanceMatch ( int cap)
inlinepackageinherited

Definition at line 139 of file Match.cs.

140 {
141 _balancing = true;
142 int num = _matchcount[cap];
143 int num2 = num * 2 - 2;
144 int[][] matches = _matches;
145 if (matches[cap][num2] < 0)
146 {
147 num2 = -3 - matches[cap][num2];
148 }
149 num2 -= 2;
150 if (num2 >= 0 && matches[cap][num2] < 0)
151 {
152 AddMatch(cap, matches[cap][num2], matches[cap][num2 + 1]);
153 }
154 else
155 {
156 AddMatch(cap, -3 - num2, -4 - num2);
157 }
158 }
void AddMatch(int cap, int start, int len)
Definition Match.cs:114

References System.Text.RegularExpressions.Match._balancing, System.Text.RegularExpressions.Match._matchcount, System.Text.RegularExpressions.Match._matches, and System.Text.RegularExpressions.Match.AddMatch().

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