Exemple #1
0
        private char Advance()
        {
            char c = Current;

            _reader.Advance();
            _read += c;

            // update position
            if (c == '\n' || (c == '\r' && Current != '\n'))
            {
                _line++;
                _col = 1;
            }
            else
            {
                _col++;
            }

            return(c);
        }