| 4949 | } |
| 4950 | |
| 4951 | PUGI__FN xml_attribute xml_node::append_attribute(const char_t* name_) |
| 4952 | { |
| 4953 | if (!impl::allow_insert_attribute(type())) return xml_attribute(); |
| 4954 | |
| 4955 | xml_attribute a(impl::allocate_attribute(impl::get_allocator(_root))); |
| 4956 | if (!a) return xml_attribute(); |
| 4957 | |
| 4958 | impl::append_attribute(a._attr, _root); |
| 4959 | |
| 4960 | a.set_name(name_); |
| 4961 | |
| 4962 | return a; |
| 4963 | } |
| 4964 | |
| 4965 | PUGI__FN xml_attribute xml_node::prepend_attribute(const char_t* name_) |
| 4966 | { |
no test coverage detected