MCPcopy Create free account
hub / github.com/MyGUI/mygui / xpath_node xpath_first

Function xpath_node xpath_first

Tools/EditorFramework/pugixml.cpp:7503–7518  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

7501}
7502
7503PUGI__FN xpath_node xpath_first(const xpath_node* begin, const xpath_node* end, xpath_node_set::type_t type)
7504{
7505 if (begin == end)
7506 return xpath_node();
7507
7508 switch (type)
7509 {
7510 case xpath_node_set::type_sorted: return *begin;
7511
7512 case xpath_node_set::type_sorted_reverse: return *(end - 1);
7513
7514 case xpath_node_set::type_unsorted: return *min_element(begin, end, document_order_comparator());
7515
7516 default: assert(!"Invalid node set type"); return xpath_node();
7517 }
7518}
7519
7520class xpath_node_set_raw
7521{

Callers

nothing calls this directly

Calls 3

xpath_nodeClass · 0.70
min_elementFunction · 0.70

Tested by

no test coverage detected