MCPcopy Create free account
hub / github.com/bytedance/Fastbot_Android / Attribute

Method Attribute

native/thirdpart/tinyxml2/tinyxml2.cpp:1595–1605  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1593
1594
1595const char* XMLElement::Attribute( const char* name, const char* value ) const
1596{
1597 const XMLAttribute* a = FindAttribute( name );
1598 if ( !a ) {
1599 return 0;
1600 }
1601 if ( !value || XMLUtil::StringEqual( a->Value(), value )) {
1602 return a->Value();
1603 }
1604 return 0;
1605}
1606
1607int XMLElement::IntAttribute(const char* name, int defaultValue) const
1608{

Callers 2

MatchMethod · 0.80
attribute_valueFunction · 0.80

Calls 2

StringEqualFunction · 0.85
ValueMethod · 0.45

Tested by

no test coverage detected