MCPcopy Create free account
hub / github.com/crossuo/crossuo / ToElementWithName

Method ToElementWithName

external/tinyxml2.cpp:1163–1176  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1161}
1162
1163const XMLElement* XMLNode::ToElementWithName( const char* name ) const
1164{
1165 const XMLElement* element = this->ToElement();
1166 if ( element == 0 ) {
1167 return 0;
1168 }
1169 if ( name == 0 ) {
1170 return element;
1171 }
1172 if ( XMLUtil::StringEqual( element->Name(), name ) ) {
1173 return element;
1174 }
1175 return 0;
1176}
1177
1178// --------- XMLText ---------- //
1179char* XMLText::ParseDeep( char* p, StrPair*, int* curLineNumPtr )

Callers 4

FirstChildElementMethod · 0.80
LastChildElementMethod · 0.80
NextSiblingElementMethod · 0.80

Calls 2

StringEqualFunction · 0.85
NameMethod · 0.45

Tested by

no test coverage detected