Beispiel #1
0
        private static IEnumerable <char> ProcessLines(this IEnumerable <char> runes, CharLineTable lines)
        {
            char current = '\0';

            foreach (var rune in runes)
            {
                lines.MoveToNext(current, rune);

                yield return(rune);

                current = rune;
            }

            lines.MoveToNext(current, '\0');
        }
Beispiel #2
0
        // LineTracking
        public static IEnumerable <char> ProcessLines(this IEnumerable <char> runes, out CharLineTable lines)
        {
            lines = new CharLineTable();

            return(ProcessLines(runes, lines));
        }