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

Method DeleteAttribute

Dependencies/tinyxml2/src/tinyxml2.cpp:1793–1809  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1791
1792
1793void XMLElement::DeleteAttribute( const char* name )
1794{
1795 XMLAttribute* prev = 0;
1796 for( XMLAttribute* a=_rootAttribute; a; a=a->_next ) {
1797 if ( XMLUtil::StringEqual( name, a->Name() ) ) {
1798 if ( prev ) {
1799 prev->_next = a->_next;
1800 }
1801 else {
1802 _rootAttribute = a->_next;
1803 }
1804 DeleteAttribute( a );
1805 break;
1806 }
1807 prev = a;
1808 }
1809}
1810
1811
1812char* XMLElement::ParseAttributes( char* p, int* curLineNumPtr )

Callers

nothing calls this directly

Calls 3

StringEqualFunction · 0.85
NameMethod · 0.45
FreeMethod · 0.45

Tested by

no test coverage detected