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

Function allow_insert_child

Tools/EditorFramework/pugixml.cpp:3637–3647  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

3635}
3636
3637inline bool allow_insert_child(xml_node_type parent, xml_node_type child)
3638{
3639 if (parent != node_document && parent != node_element)
3640 return false;
3641 if (child == node_document || child == node_null)
3642 return false;
3643 if (parent != node_document && (child == node_declaration || child == node_doctype))
3644 return false;
3645
3646 return true;
3647}
3648
3649PUGI__FN void recursive_copy_skip(xml_node& dest, const xml_node& source, const xml_node& skip)
3650{

Callers 4

append_childMethod · 0.70
prepend_childMethod · 0.70
insert_child_beforeMethod · 0.70
insert_child_afterMethod · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected