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

Method insert_child_after

Source/ThirdParty/pugixml/pugixml.cpp:5092–5105  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

5090 }
5091
5092 PUGI__FN xml_node xml_node::insert_child_after(xml_node_type type_, const xml_node& node)
5093 {
5094 if (!impl::allow_insert_child(type(), type_)) return xml_node();
5095 if (!node._root || node._root->parent != _root) return xml_node();
5096
5097 xml_node n(impl::allocate_node(impl::get_allocator(_root), type_));
5098 if (!n) return xml_node();
5099
5100 impl::insert_node_after(n._root, node._root);
5101
5102 if (type_ == node_declaration) n.set_name(PUGIXML_TEXT("xml"));
5103
5104 return n;
5105 }
5106
5107 PUGI__FN xml_node xml_node::append_child(const char_t* name_)
5108 {

Callers

nothing calls this directly

Calls 6

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

Tested by

no test coverage detected