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

Method insert_attribute_before

Source/ThirdParty/pugixml/pugixml.cpp:4994–5007  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

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 {

Callers

nothing calls this directly

Calls 6

allow_insert_attributeFunction · 0.85
is_attribute_ofFunction · 0.85
allocate_attributeFunction · 0.85
insert_attribute_beforeFunction · 0.85
set_nameMethod · 0.80
typeEnum · 0.50

Tested by

no test coverage detected