MCPcopy Create free account
hub / github.com/avast/retdec / DeleteAttribute

Method DeleteAttribute

deps/tinyxml2/tinyxml2.cpp:1866–1882  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1864
1865
1866void XMLElement::DeleteAttribute( const char* name )
1867{
1868 XMLAttribute* prev = 0;
1869 for( XMLAttribute* a=_rootAttribute; a; a=a->_next ) {
1870 if ( XMLUtil::StringEqual( name, a->Name() ) ) {
1871 if ( prev ) {
1872 prev->_next = a->_next;
1873 }
1874 else {
1875 _rootAttribute = a->_next;
1876 }
1877 DeleteAttribute( a );
1878 break;
1879 }
1880 prev = a;
1881 }
1882}
1883
1884
1885char* XMLElement::ParseAttributes( char* p, int* curLineNumPtr )

Callers

nothing calls this directly

Calls 3

StringEqualFunction · 0.50
NameMethod · 0.45
FreeMethod · 0.45

Tested by

no test coverage detected