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

Method FindAttribute

Source/ThirdParty/tinyxml2/tinyxml2.cpp:1505–1513  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1503
1504
1505const XMLAttribute* XMLElement::FindAttribute( const char* name ) const
1506{
1507 for( XMLAttribute* a = _rootAttribute; a; a = a->_next ) {
1508 if ( XMLUtil::StringEqual( a->Name(), name ) ) {
1509 return a;
1510 }
1511 }
1512 return 0;
1513}
1514
1515
1516const char* XMLElement::Attribute( const char* name, const char* value ) const

Callers 2

FindAttributeFunction · 0.80
AncestorAttrValFunction · 0.80

Calls 2

StringEqualFunction · 0.85
NameMethod · 0.45

Tested by

no test coverage detected