MCPcopy Create free account
hub / github.com/MyGUI/mygui / find_child_by_attribute

Method find_child_by_attribute

Tools/EditorFramework/pugixml.cpp:5038–5053  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

5036 }
5037
5038 PUGI__FN xml_node
5039 xml_node::find_child_by_attribute(const char_t* name_, const char_t* attr_name, const char_t* attr_value) const
5040 {
5041 if (!_root)
5042 return xml_node();
5043
5044 for (xml_node_struct* i = _root->first_child; i; i = i->next_sibling)
5045 if (i->name && impl::strequal(name_, i->name))
5046 {
5047 for (xml_attribute_struct* a = i->first_attribute; a; a = a->next_attribute)
5048 if (impl::strequal(attr_name, a->name) && impl::strequal(attr_value, a->value))
5049 return xml_node(i);
5050 }
5051
5052 return xml_node();
5053 }
5054
5055 PUGI__FN xml_node xml_node::find_child_by_attribute(const char_t* attr_name, const char_t* attr_value) const
5056 {

Callers

nothing calls this directly

Calls 2

xml_nodeClass · 0.70
strequalFunction · 0.70

Tested by

no test coverage detected