MCPcopy Create free account
hub / github.com/avast/retdec / Attribute

Method Attribute

deps/tinyxml2/tinyxml2.cpp:1563–1573  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1561
1562
1563const char* XMLElement::Attribute( const char* name, const char* value ) const
1564{
1565 const XMLAttribute* a = FindAttribute( name );
1566 if ( !a ) {
1567 return 0;
1568 }
1569 if ( !value || XMLUtil::StringEqual( a->Value(), value )) {
1570 return a->Value();
1571 }
1572 return 0;
1573}
1574
1575int XMLElement::IntAttribute(const char* name, int defaultValue) const
1576{

Callers 1

getManifestHeuristicMethod · 0.80

Calls 2

StringEqualFunction · 0.50
ValueMethod · 0.45

Tested by

no test coverage detected