MCPcopy Create free account
hub / github.com/MediaArea/MediaInfoLib / Attribute

Method Attribute

Source/ThirdParty/tinyxml2/tinyxml2.cpp:1516–1526  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1514
1515
1516const char* XMLElement::Attribute( const char* name, const char* value ) const
1517{
1518 const XMLAttribute* a = FindAttribute( name );
1519 if ( !a ) {
1520 return 0;
1521 }
1522 if ( !value || XMLUtil::StringEqual( a->Value(), value )) {
1523 return a->Value();
1524 }
1525 return 0;
1526}
1527
1528int XMLElement::IntAttribute(const char* name, int defaultValue) const
1529{

Callers

nothing calls this directly

Calls 3

FindAttributeFunction · 0.85
StringEqualFunction · 0.85
ValueMethod · 0.45

Tested by

no test coverage detected