MCPcopy Create free account
hub / github.com/cppcheck-opensource/cppcheck / PreviousSiblingElement

Method PreviousSiblingElement

externals/tinyxml2/tinyxml2.cpp:1060–1069  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1058
1059
1060const XMLElement* XMLNode::PreviousSiblingElement( const char* name ) const
1061{
1062 for( const XMLNode* node = _prev; node; node = node->_prev ) {
1063 const XMLElement* element = node->ToElementWithName( name );
1064 if ( element ) {
1065 return element;
1066 }
1067 }
1068 return 0;
1069}
1070
1071
1072char* XMLNode::ParseDeep( char* p, StrPair* parentEndTag, int* curLineNumPtr )

Callers 1

PreviousSiblingElementFunction · 0.80

Calls 1

ToElementWithNameMethod · 0.80

Tested by

no test coverage detected