MCPcopy Create free account
hub / github.com/BehaviorTree/BehaviorTree.CPP / ChildElementCount

Method ChildElementCount

3rdparty/tinyxml2/tinyxml2.cpp:821–832  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

819// ChildElementCount was originally suggested by msteiger on the sourceforge page for TinyXML and modified by KB1SPH for TinyXML-2.
820
821int XMLNode::ChildElementCount(const char *value) const {
822 int count = 0;
823
824 const XMLElement *e = FirstChildElement(value);
825
826 while (e) {
827 e = e->NextSiblingElement(value);
828 count++;
829 }
830
831 return count;
832}
833
834int XMLNode::ChildElementCount() const {
835 int count = 0;

Callers

nothing calls this directly

Calls 2

FirstChildElementFunction · 0.85
NextSiblingElementMethod · 0.80

Tested by

no test coverage detected