| 4963 | } |
| 4964 | |
| 4965 | PUGI__FN xml_attribute xml_node::prepend_attribute(const char_t* name_) |
| 4966 | { |
| 4967 | if (!impl::allow_insert_attribute(type())) return xml_attribute(); |
| 4968 | |
| 4969 | xml_attribute a(impl::allocate_attribute(impl::get_allocator(_root))); |
| 4970 | if (!a) return xml_attribute(); |
| 4971 | |
| 4972 | impl::prepend_attribute(a._attr, _root); |
| 4973 | |
| 4974 | a.set_name(name_); |
| 4975 | |
| 4976 | return a; |
| 4977 | } |
| 4978 | |
| 4979 | PUGI__FN xml_attribute xml_node::insert_attribute_after(const char_t* name_, const xml_attribute& attr) |
| 4980 | { |
nothing calls this directly
no test coverage detected