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

Method insert_move_before

Source/ThirdParty/pugixml/pugixml.cpp:5242–5255  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

5240 }
5241
5242 PUGI__FN xml_node xml_node::insert_move_before(const xml_node& moved, const xml_node& node)
5243 {
5244 if (!impl::allow_move(*this, moved)) return xml_node();
5245 if (!node._root || node._root->parent != _root) return xml_node();
5246 if (moved._root == node._root) return xml_node();
5247
5248 // disable document_buffer_order optimization since moving nodes around changes document order without changing buffer pointers
5249 impl::get_document(_root).header |= impl::xml_memory_page_contents_shared_mask;
5250
5251 impl::remove_node(moved._root);
5252 impl::insert_node_before(moved._root, node._root);
5253
5254 return moved;
5255 }
5256
5257 PUGI__FN bool xml_node::remove_attribute(const char_t* name_)
5258 {

Callers

nothing calls this directly

Calls 4

allow_moveFunction · 0.85
xml_nodeClass · 0.85
remove_nodeFunction · 0.85
insert_node_beforeFunction · 0.85

Tested by

no test coverage detected