MCPcopy Create free account
hub / github.com/bulletphysics/bullet3 / ToElementWithName

Method ToElementWithName

examples/ThirdPartyLibs/tinyxml2/tinyxml2.cpp:1201–1217  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1199}
1200
1201const XMLElement* XMLNode::ToElementWithName(const char* name) const
1202{
1203 const XMLElement* element = this->ToElement();
1204 if (element == 0)
1205 {
1206 return 0;
1207 }
1208 if (name == 0)
1209 {
1210 return element;
1211 }
1212 if (XMLUtil::StringEqual(element->Name(), name))
1213 {
1214 return element;
1215 }
1216 return 0;
1217}
1218
1219// --------- XMLText ---------- //
1220char* 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.80

Tested by

no test coverage detected