MCPcopy Create free account
hub / github.com/Tencent/tgfx / Make

Method Make

src/svg/xml/XMLDOM.cpp:34–42  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

32DOM::~DOM() = default;
33
34std::shared_ptr<DOM> DOM::Make(Stream& stream) {
35 DOMParser parser;
36 if (!parser.parse(stream)) {
37 return nullptr;
38 }
39 auto root = parser.getRoot();
40 auto dom = std::shared_ptr<DOM>(new DOM(root));
41 return dom;
42}
43
44static void walk_dom(std::shared_ptr<DOMNode> node, XMLParser* parser) {
45 auto element = node->name;

Callers

nothing calls this directly

Calls 2

getRootMethod · 0.80
parseMethod · 0.45

Tested by

no test coverage detected