MCPcopy Create free account
hub / github.com/NanoMichael/MicroTeX / DeleteAttribute

Method DeleteAttribute

src/xml/tinyxml2.cpp:1357–1371  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1355
1356
1357void XMLElement::DeleteAttribute( const char* name ) {
1358 XMLAttribute* prev = 0;
1359 for( XMLAttribute* a=_rootAttribute; a; a=a->_next ) {
1360 if ( XMLUtil::StringEqual( name, a->Name() ) ) {
1361 if ( prev ) {
1362 prev->_next = a->_next;
1363 } else {
1364 _rootAttribute = a->_next;
1365 }
1366 DeleteAttribute( a );
1367 break;
1368 }
1369 prev = a;
1370 }
1371}
1372
1373
1374char* XMLElement::ParseAttributes( char* p ) {

Callers

nothing calls this directly

Calls 2

NameMethod · 0.80
FreeMethod · 0.80

Tested by

no test coverage detected