MCPcopy Create free account
hub / github.com/WinMerge/winmerge / parseByteInputStream

Method parseByteInputStream

Externals/poco/XML/src/ParserEngine.cpp:277–291  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

275
276
277void 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
294void ParserEngine::parseCharInputStream(XMLCharInputStream& istr)

Callers

nothing calls this directly

Calls 3

XML_ParseFunction · 0.85
XML_GetErrorCodeFunction · 0.85
goodMethod · 0.45

Tested by

no test coverage detected