private void FixupFormatSpecifiers(List <Capture> aCaptures, ParserLine aLine) { int lastCapturePos = 0; // Pull out all the format specifiers and build regular expressions int count = aCaptures.Count; for (int i = 0; i < count; i++) { Capture capture = aCaptures[i]; // Process the capture, starting at the last capture pos lastCapturePos = TryToProcessCapture(capture, lastCapturePos, aLine); } aLine.Finalise(); }