MCPcopy Create free account
hub / github.com/cppcheck-opensource/cppcheck / Attribute

Method Attribute

externals/tinyxml2/tinyxml2.cpp:1627–1637  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1625
1626
1627const char* XMLElement::Attribute( const char* name, const char* value ) const
1628{
1629 const XMLAttribute* a = FindAttribute( name );
1630 if ( !a ) {
1631 return 0;
1632 }
1633 if ( !value || XMLUtil::StringEqual( a->Value(), value )) {
1634 return a->Value();
1635 }
1636 return 0;
1637}
1638
1639int XMLElement::IntAttribute(const char* name, int defaultValue) const
1640{

Callers 15

loadMethod · 0.80
loadFunctionMethod · 0.80
ErrorMessageMethod · 0.80
analyseWholeProgramMethod · 0.80
readAttrStringFunction · 0.80
loadFromXmlMethod · 0.80
importSlnxMethod · 0.80
ProjectConfigurationMethod · 0.80
ConditionalGroupMethod · 0.80
importPropertyGroupFunction · 0.80
importVcxprojMethod · 0.80

Calls 2

StringEqualFunction · 0.85
ValueMethod · 0.45

Tested by

no test coverage detected