| 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 | { |
nothing calls this directly
no test coverage detected