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

◆ TidyBalancing()

void System.Text.RegularExpressions.Match.TidyBalancing ( )
inlineprivateinherited

Definition at line 210 of file Match.cs.

211 {
212 int[] matchcount = _matchcount;
213 int[][] matches = _matches;
214 for (int i = 0; i < matchcount.Length; i++)
215 {
216 int num = matchcount[i] * 2;
217 int[] array = matches[i];
218 int j;
219 for (j = 0; j < num && array[j] >= 0; j++)
220 {
221 }
222 int num2 = j;
223 for (; j < num; j++)
224 {
225 if (array[j] < 0)
226 {
227 num2--;
228 continue;
229 }
230 if (j != num2)
231 {
232 array[num2] = array[j];
233 }
234 num2++;
235 }
236 matchcount[i] = num2 / 2;
237 }
238 _balancing = false;
239 }

References System.Text.RegularExpressions.Match._balancing, System.Text.RegularExpressions.Match._matchcount, System.Text.RegularExpressions.Match._matches, System.Text.RegularExpressions.array, and System.Text.RegularExpressions.i.

Referenced by System.Text.RegularExpressions.Match.Tidy().