| 5199 | } |
| 5200 | |
| 5201 | PUGI__FN xml_node xml_node::append_move(const xml_node& moved) |
| 5202 | { |
| 5203 | if (!impl::allow_move(*this, moved)) return xml_node(); |
| 5204 | |
| 5205 | // disable document_buffer_order optimization since moving nodes around changes document order without changing buffer pointers |
| 5206 | impl::get_document(_root).header |= impl::xml_memory_page_contents_shared_mask; |
| 5207 | |
| 5208 | impl::remove_node(moved._root); |
| 5209 | impl::append_node(moved._root, _root); |
| 5210 | |
| 5211 | return moved; |
| 5212 | } |
| 5213 | |
| 5214 | PUGI__FN xml_node xml_node::prepend_move(const xml_node& moved) |
| 5215 | { |
nothing calls this directly
no test coverage detected