MCPcopy Create free account
hub / github.com/Overload-Technologies/Overload / Attribute

Method Attribute

Dependencies/tinyxml2/src/tinyxml2.cpp:1523–1533  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1521
1522
1523const char* XMLElement::Attribute( const char* name, const char* value ) const
1524{
1525 const XMLAttribute* a = FindAttribute( name );
1526 if ( !a ) {
1527 return 0;
1528 }
1529 if ( !value || XMLUtil::StringEqual( a->Value(), value )) {
1530 return a->Value();
1531 }
1532 return 0;
1533}
1534
1535int XMLElement::IntAttribute(const char* name, int defaultValue) const
1536{

Callers

nothing calls this directly

Calls 2

StringEqualFunction · 0.85
ValueMethod · 0.45

Tested by

no test coverage detected