| 275 | |
| 276 | |
| 277 | void ParserEngine::parseByteInputStream(XMLByteInputStream& istr) |
| 278 | { |
| 279 | std::streamsize n = readBytes(istr, _pBuffer, PARSE_BUFFER_SIZE); |
| 280 | while (n > 0) |
| 281 | { |
| 282 | if (!XML_Parse(_parser, _pBuffer, static_cast<int>(n), 0)) |
| 283 | handleError(XML_GetErrorCode(_parser)); |
| 284 | if (istr.good()) |
| 285 | n = readBytes(istr, _pBuffer, PARSE_BUFFER_SIZE); |
| 286 | else |
| 287 | n = 0; |
| 288 | } |
| 289 | if (!XML_Parse(_parser, _pBuffer, 0, 1)) |
| 290 | handleError(XML_GetErrorCode(_parser)); |
| 291 | } |
| 292 | |
| 293 | |
| 294 | void ParserEngine::parseCharInputStream(XMLCharInputStream& istr) |
nothing calls this directly
no test coverage detected