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

Method getFirstChild

src/svg/xml/XMLDOM.cpp:83–93  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

81}
82
83std::shared_ptr<DOMNode> DOMNode::getFirstChild(const std::string& name) const {
84 auto child = this->firstChild;
85 if (!name.empty()) {
86 for (; child != nullptr; child = child->nextSibling) {
87 if (child->name != name) {
88 break;
89 }
90 }
91 }
92 return child;
93}
94
95std::shared_ptr<DOMNode> DOMNode::getNextSibling(const std::string& name) const {
96 auto sibling = this->nextSibling;

Callers 4

countChildrenMethod · 0.95
TGFX_TESTFunction · 0.80
write_domFunction · 0.80
walk_domFunction · 0.80

Calls 1

emptyMethod · 0.45

Tested by 1

TGFX_TESTFunction · 0.64