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

Method Child

depends/tinyxml/tinyxml.cpp:1680–1696  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1678
1679
1680TiXmlHandle TiXmlHandle::Child( int count ) const
1681{
1682 if ( node )
1683 {
1684 int i;
1685 TiXmlNode* child = node->FirstChild();
1686 for ( i=0;
1687 child && i<count;
1688 child = child->NextSibling(), ++i )
1689 {
1690 // nothing
1691 }
1692 if ( child )
1693 return TiXmlHandle( child );
1694 }
1695 return TiXmlHandle( 0 );
1696}
1697
1698
1699TiXmlHandle TiXmlHandle::Child( const char* value, int count ) const

Callers

nothing calls this directly

Calls 3

TiXmlHandleClass · 0.85
FirstChildMethod · 0.45
NextSiblingMethod · 0.45

Tested by

no test coverage detected