protected int ReaderRead() { int val = reader.Read(); if (recordRead && val >= 0) { recordedText.Append((char)val); } if ((val == '\r' && reader.Peek() != '\n') || val == '\n') { ++line; col = 1; LineBreak(); } else if (val >= 0) { col++; } return(val); }
void CheckPeek(LATextReader reader, int num1, char char2) { Assert.AreEqual((int)char2, reader.Peek(num1)); }