private static int GetNumberOfFollowingEmptyLines(ref PeekStringReader reader) { int numberOfEmptyLines = 0; string peekedLine = reader.PeekLine(); while (peekedLine != null && peekedLine.Length == 0) { // The next line is an empty line numberOfEmptyLines++; reader.ReadLine(); peekedLine = reader.PeekLine(); } return(numberOfEmptyLines); }
private static void ProcessPossibleNextEmptyLine(ref PeekStringReader reader, List <LyricsLineViewModel> lines, TimeSpan span) { string peekedLine = reader.PeekLine(); if (peekedLine != null && peekedLine.Length == 0) { // The next line is an empty line lines.Add(new LyricsLineViewModel(span, peekedLine)); } }