MCPcopy Create free account
hub / github.com/DFHack/dfhack / ChildElement

Method ChildElement

depends/tinyxml/tinyxml.cpp:1718–1734  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1716
1717
1718TiXmlHandle TiXmlHandle::ChildElement( int count ) const
1719{
1720 if ( node )
1721 {
1722 int i;
1723 TiXmlElement* child = node->FirstChildElement();
1724 for ( i=0;
1725 child && i<count;
1726 child = child->NextSiblingElement(), ++i )
1727 {
1728 // nothing
1729 }
1730 if ( child )
1731 return TiXmlHandle( child );
1732 }
1733 return TiXmlHandle( 0 );
1734}
1735
1736
1737TiXmlHandle TiXmlHandle::ChildElement( const char* value, int count ) const

Callers

nothing calls this directly

Calls 3

TiXmlHandleClass · 0.85
FirstChildElementMethod · 0.45
NextSiblingElementMethod · 0.45

Tested by

no test coverage detected