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