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

Method Attribute

lib/tinyxml2/tinyxml2.cpp:1313–1323  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1311
1312
1313const char* XMLElement::Attribute( const char* name, const char* value ) const
1314{
1315 const XMLAttribute* a = FindAttribute( name );
1316 if ( !a ) {
1317 return 0;
1318 }
1319 if ( !value || XMLUtil::StringEqual( a->Value(), value )) {
1320 return a->Value();
1321 }
1322 return 0;
1323}
1324
1325
1326const char* XMLElement::GetText() const

Callers 1

LeanifyMethod · 0.80

Calls 2

FindAttributeFunction · 0.85
ValueMethod · 0.80

Tested by

no test coverage detected