MCPcopy Create free account
hub / github.com/WheretIB/nullc / has_declaration

Function has_declaration

external/pugixml/pugixml.cpp:3013–3024  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

3011 }
3012
3013 inline bool has_declaration(const xml_node& node)
3014 {
3015 for (xml_node child = node.first_child(); child; child = child.next_sibling())
3016 {
3017 xml_node_type type = child.type();
3018
3019 if (type == node_declaration) return true;
3020 if (type == node_element) return false;
3021 }
3022
3023 return false;
3024 }
3025
3026 inline bool allow_insert_child(xml_node_type parent, xml_node_type child)
3027 {

Callers 1

saveMethod · 0.85

Calls 3

first_childMethod · 0.80
next_siblingMethod · 0.80
typeMethod · 0.45

Tested by

no test coverage detected