| 292 | |
| 293 | |
| 294 | void ParserEngine::parseCharInputStream(XMLCharInputStream& istr) |
| 295 | { |
| 296 | std::streamsize n = readChars(istr, reinterpret_cast<XMLChar*>(_pBuffer), PARSE_BUFFER_SIZE/sizeof(XMLChar)); |
| 297 | while (n > 0) |
| 298 | { |
| 299 | if (!XML_Parse(_parser, _pBuffer, static_cast<int>(n*sizeof(XMLChar)), 0)) |
| 300 | handleError(XML_GetErrorCode(_parser)); |
| 301 | if (istr.good()) |
| 302 | n = readChars(istr, reinterpret_cast<XMLChar*>(_pBuffer), PARSE_BUFFER_SIZE/sizeof(XMLChar)); |
| 303 | else |
| 304 | n = 0; |
| 305 | } |
| 306 | if (!XML_Parse(_parser, _pBuffer, 0, 1)) |
| 307 | handleError(XML_GetErrorCode(_parser)); |
| 308 | } |
| 309 | |
| 310 | |
| 311 | void ParserEngine::parseExternal(XML_Parser extParser, InputSource* pInputSource) |
nothing calls this directly
no test coverage detected