| 5061 | } |
| 5062 | |
| 5063 | PUGI__FN xml_node xml_node::prepend_child(xml_node_type type_) |
| 5064 | { |
| 5065 | if (!impl::allow_insert_child(type(), type_)) return xml_node(); |
| 5066 | |
| 5067 | xml_node n(impl::allocate_node(impl::get_allocator(_root), type_)); |
| 5068 | if (!n) return xml_node(); |
| 5069 | |
| 5070 | impl::prepend_node(n._root, _root); |
| 5071 | |
| 5072 | if (type_ == node_declaration) n.set_name(PUGIXML_TEXT("xml")); |
| 5073 | |
| 5074 | return n; |
| 5075 | } |
| 5076 | |
| 5077 | PUGI__FN xml_node xml_node::insert_child_before(xml_node_type type_, const xml_node& node) |
| 5078 | { |
nothing calls this directly
no test coverage detected