comparison Implab/Parsing/Scanner.cs @ 60:10c7337d29e7

+JSONXmlReaderOptions *JSONScanner: fixed reading from TextReader *code cleanup
author cin
date Thu, 19 Jun 2014 03:41:28 +0400
parents 21611344d366
children 05e6468f066f
comparison
equal deleted inserted replaced
59:21611344d366 60:10c7337d29e7
165 165
166 bool Shift() { 166 bool Shift() {
167 m_pointer++; 167 m_pointer++;
168 168
169 if (m_pointer >= m_bufferSize) { 169 if (m_pointer >= m_bufferSize) {
170 return ReadNextChunk(); 170 if (!ReadNextChunk())
171 return false;
171 } 172 }
172 173
173 m_previewCode = m_alphabetMap[m_buffer[m_pointer]]; 174 m_previewCode = m_alphabetMap[m_buffer[m_pointer]];
174 175
175 return true; 176 return true;