| 4992 | } |
| 4993 | |
| 4994 | PUGI__FN xml_attribute xml_node::insert_attribute_before(const char_t* name_, const xml_attribute& attr) |
| 4995 | { |
| 4996 | if (!impl::allow_insert_attribute(type())) return xml_attribute(); |
| 4997 | if (!attr || !impl::is_attribute_of(attr._attr, _root)) return xml_attribute(); |
| 4998 | |
| 4999 | xml_attribute a(impl::allocate_attribute(impl::get_allocator(_root))); |
| 5000 | if (!a) return xml_attribute(); |
| 5001 | |
| 5002 | impl::insert_attribute_before(a._attr, attr._attr, _root); |
| 5003 | |
| 5004 | a.set_name(name_); |
| 5005 | |
| 5006 | return a; |
| 5007 | } |
| 5008 | |
| 5009 | PUGI__FN xml_attribute xml_node::append_copy(const xml_attribute& proto) |
| 5010 | { |
nothing calls this directly
no test coverage detected