MCPcopy Create free account
hub / github.com/AcademySoftwareFoundation/OpenImageIO / append_attribute

Method append_attribute

src/include/pugixml.cpp:4169–4177  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

4167 }
4168
4169 PUGI__FN xml_attribute xml_node::append_attribute(const char_t* name_)
4170 {
4171 if (type() != node_element && type() != node_declaration) return xml_attribute();
4172
4173 xml_attribute a(impl::append_attribute_ll(_root, impl::get_allocator(_root)));
4174 a.set_name(name_);
4175
4176 return a;
4177 }
4178
4179 PUGI__FN xml_attribute xml_node::prepend_attribute(const char_t* name_)
4180 {

Callers 2

to_xmlMethod · 0.80
recursive_copy_skipFunction · 0.80

Calls 2

typeFunction · 0.85
set_nameMethod · 0.80

Tested by 1

to_xmlMethod · 0.64