MCPcopy Create free account
hub / github.com/alibaba/CicadaPlayer / parse

Method parse

framework/utils/xml/DOMParser.cpp:33–45  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

31}
32
33bool Cicada::DOMParser::parse(const char *buffer, int size)
34{
35 mReader = xmlReaderForMemory(buffer, size, nullptr, nullptr, 0);
36 if (!mReader) {
37 return false;
38 }
39 mRoot = processNode();
40 xmlFreeTextReader(mReader);
41
42 print();
43
44 return mRoot != nullptr;
45}
46
47bool Cicada::DOMParser::parseFile(const char *filePath, int size)
48{

Callers 1

TESTFunction · 0.45

Calls 1

printFunction · 0.50

Tested by 1

TESTFunction · 0.36