public Dictionary <string, string> Process(string lineString)
        {
            Dictionary <string, string> dictionary = new Dictionary <string, string>();

            if (!IsMatch(lineString))
            {
                return((NextLineProcessor == null) ? dictionary : NextLineProcessor.Process(lineString));
            }
            return(Parse(lineString));
        }
Beispiel #2
0
        private async IAsyncEnumerable <string> GetProcessedLinesAsync(ILineReader reader)
        {
            string?line;

            while ((line = await reader.ReadLineAsync()) != null)
            {
                var processResult = _patcher.Process(line);

                if (processResult.LineAction != LineAction.Remove)
                {
                    yield return(processResult.Line);
                }
            }
        }
Beispiel #3
0
 public void Visit(TextLine line)
 {
     _processor.Process(line);
 }