MCPcopy Create free account
hub / github.com/bulletphysics/bullet3 / DeleteAttribute

Method DeleteAttribute

examples/ThirdPartyLibs/tinyxml2/tinyxml2.cpp:1862–1882  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

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

Callers

nothing calls this directly

Calls 3

StringEqualFunction · 0.85
NameMethod · 0.80
FreeMethod · 0.45

Tested by

no test coverage detected