示例#1
0
        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);
        }
示例#2
0
        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));
            }
        }