MCPcopy Create free account
hub / github.com/MyGUI/mygui / has_declaration

Function has_declaration

UnitTests/TestApp/pugixml.cpp:3622–3635  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

3620}
3621
3622inline bool has_declaration(const xml_node& node)
3623{
3624 for (xml_node child = node.first_child(); child; child = child.next_sibling())
3625 {
3626 xml_node_type type = child.type();
3627
3628 if (type == node_declaration)
3629 return true;
3630 if (type == node_element)
3631 return false;
3632 }
3633
3634 return false;
3635}
3636
3637inline bool allow_insert_child(xml_node_type parent, xml_node_type child)
3638{

Callers 1

saveMethod · 0.70

Calls 3

first_childMethod · 0.45
next_siblingMethod · 0.45
typeMethod · 0.45

Tested by

no test coverage detected