MCPcopy Create free account
hub / github.com/IppClub/Dora-SSR / LastChildElement

Method LastChildElement

Source/3rdParty/tinyxml2/tinyxml2.cpp:652–662  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

650}
651
652const XMLElement* XMLNode::LastChildElement(const char* value) const {
653 for (XMLNode* node = _lastChild; node; node = node->_prev) {
654 XMLElement* element = node->ToElement();
655 if (element) {
656 if (!value || XMLUtil::StringEqual(element->Name(), value)) {
657 return element;
658 }
659 }
660 }
661 return 0;
662}
663
664const XMLElement* XMLNode::NextSiblingElement(const char* value) const {
665 for (XMLNode* element = this->_next; element; element = element->_next) {

Callers

nothing calls this directly

Calls 3

StringEqualFunction · 0.85
NameMethod · 0.65
ToElementMethod · 0.45

Tested by

no test coverage detected