MCPcopy Create free account
hub / github.com/bytedance/Fastbot_Android / DeleteAttribute

Method DeleteAttribute

native/thirdpart/tinyxml2/tinyxml2.cpp:1908–1924  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1906
1907
1908void XMLElement::DeleteAttribute( const char* name )
1909{
1910 XMLAttribute* prev = 0;
1911 for( XMLAttribute* a=_rootAttribute; a; a=a->_next ) {
1912 if ( XMLUtil::StringEqual( name, a->Name() ) ) {
1913 if ( prev ) {
1914 prev->_next = a->_next;
1915 }
1916 else {
1917 _rootAttribute = a->_next;
1918 }
1919 DeleteAttribute( a );
1920 break;
1921 }
1922 prev = a;
1923 }
1924}
1925
1926
1927char* 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