MCPcopy Create free account
hub / github.com/Kitware/CMake / ParseBuffer

Method ParseBuffer

Source/cmXMLParser.cxx:108–117  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

106}
107
108int cmXMLParser::ParseBuffer(char const* buffer, std::string::size_type count)
109{
110 // Pass the buffer to the expat XML parser.
111 if (!XML_Parse(static_cast<XML_Parser>(this->Parser), buffer,
112 static_cast<int>(count), 0)) {
113 this->ReportXmlParseError();
114 return 0;
115 }
116 return 1;
117}
118
119int cmXMLParser::ParseBuffer(char const* buffer)
120{

Callers 1

ParseChunkMethod · 0.95

Calls 3

ReportXmlParseErrorMethod · 0.95
XML_ParseFunction · 0.85
strlenFunction · 0.50

Tested by

no test coverage detected