private int TryToProcessCapture(Capture aCapture, int aStartAt, ParserLine aLine) { // Return the end position of the current capture. int ret = -1; // foreach (RegExTranslatorBase translator in iTranslators) { ParserField field = translator.Process(aCapture, aStartAt, aLine); if (field != null) { aLine.Add(field); ret = field.FormatSpecifier.OriginalLocation + field.FormatSpecifier.OriginalLength; break; } } // return(ret); }