MCPcopy Create free account
hub / github.com/FlaxEngine/FlaxEngine / prepend_child

Method prepend_child

Source/ThirdParty/pugixml/pugixml.cpp:5063–5075  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

5061 }
5062
5063 PUGI__FN xml_node xml_node::prepend_child(xml_node_type type_)
5064 {
5065 if (!impl::allow_insert_child(type(), type_)) return xml_node();
5066
5067 xml_node n(impl::allocate_node(impl::get_allocator(_root), type_));
5068 if (!n) return xml_node();
5069
5070 impl::prepend_node(n._root, _root);
5071
5072 if (type_ == node_declaration) n.set_name(PUGIXML_TEXT("xml"));
5073
5074 return n;
5075 }
5076
5077 PUGI__FN xml_node xml_node::insert_child_before(xml_node_type type_, const xml_node& node)
5078 {

Callers

nothing calls this directly

Calls 6

allow_insert_childFunction · 0.85
xml_nodeClass · 0.85
allocate_nodeFunction · 0.85
prepend_nodeFunction · 0.85
set_nameMethod · 0.80
typeEnum · 0.50

Tested by

no test coverage detected