| 5212 | } |
| 5213 | |
| 5214 | PUGI__FN xml_node xml_node::prepend_move(const xml_node& moved) |
| 5215 | { |
| 5216 | if (!impl::allow_move(*this, moved)) return xml_node(); |
| 5217 | |
| 5218 | // disable document_buffer_order optimization since moving nodes around changes document order without changing buffer pointers |
| 5219 | impl::get_document(_root).header |= impl::xml_memory_page_contents_shared_mask; |
| 5220 | |
| 5221 | impl::remove_node(moved._root); |
| 5222 | impl::prepend_node(moved._root, _root); |
| 5223 | |
| 5224 | return moved; |
| 5225 | } |
| 5226 | |
| 5227 | PUGI__FN xml_node xml_node::insert_move_after(const xml_node& moved, const xml_node& node) |
| 5228 | { |
nothing calls this directly
no test coverage detected