MCPcopy Create free account
hub / github.com/JayXon/Leanify / FirstChildElement

Method FirstChildElement

lib/tinyxml2/tinyxml2.cpp:796–807  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

794
795
796const XMLElement* XMLNode::FirstChildElement( const char* value ) const
797{
798 for( XMLNode* node=_firstChild; node; node=node->_next ) {
799 XMLElement* element = node->ToElement();
800 if ( element ) {
801 if ( !value || XMLUtil::StringEqual( element->Name(), value ) ) {
802 return element;
803 }
804 }
805 }
806 return 0;
807}
808
809
810const XMLElement* XMLNode::LastChildElement( const char* value ) const

Callers 3

FirstChildElementFunction · 0.80
LeanifyMethod · 0.80
TraverseElementsMethod · 0.80

Calls 1

NameMethod · 0.80

Tested by

no test coverage detected