MCPcopy Create free account
hub / github.com/FlaxEngine/FlaxEngine / prepend_attribute

Method prepend_attribute

Source/ThirdParty/pugixml/pugixml.cpp:4965–4977  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

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 {

Callers

nothing calls this directly

Calls 5

allow_insert_attributeFunction · 0.85
allocate_attributeFunction · 0.85
prepend_attributeFunction · 0.85
set_nameMethod · 0.80
typeEnum · 0.50

Tested by

no test coverage detected