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

Method DeleteAttribute

Source/ThirdParty/tinyxml2/tinyxml2.cpp:1786–1802  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1784
1785
1786void XMLElement::DeleteAttribute( const char* name )
1787{
1788 XMLAttribute* prev = 0;
1789 for( XMLAttribute* a=_rootAttribute; a; a=a->_next ) {
1790 if ( XMLUtil::StringEqual( name, a->Name() ) ) {
1791 if ( prev ) {
1792 prev->_next = a->_next;
1793 }
1794 else {
1795 _rootAttribute = a->_next;
1796 }
1797 DeleteAttribute( a );
1798 break;
1799 }
1800 prev = a;
1801 }
1802}
1803
1804
1805char* XMLElement::ParseAttributes( char* p, int* curLineNumPtr )

Callers

nothing calls this directly

Calls 3

StringEqualFunction · 0.85
FreeMethod · 0.80
NameMethod · 0.45

Tested by

no test coverage detected