MCPcopy Create free account
hub / github.com/WheretIB/nullc / xpath_sort

Function xpath_sort

external/pugixml/pugixml.cpp:6145–6159  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

6143namespace
6144{
6145 xpath_node_set::type_t xpath_sort(xpath_node* begin, xpath_node* end, xpath_node_set::type_t type, bool rev)
6146 {
6147 xpath_node_set::type_t order = rev ? xpath_node_set::type_sorted_reverse : xpath_node_set::type_sorted;
6148
6149 if (type == xpath_node_set::type_unsorted)
6150 {
6151 sort(begin, end, document_order_comparator());
6152
6153 type = xpath_node_set::type_sorted;
6154 }
6155
6156 if (type != order) reverse(begin, end);
6157
6158 return order;
6159 }
6160
6161 xpath_node xpath_first(const xpath_node* begin, const xpath_node* end, xpath_node_set::type_t type)
6162 {

Callers 2

sort_doMethod · 0.85
sortMethod · 0.85

Calls 3

sortFunction · 0.85
reverseFunction · 0.85

Tested by

no test coverage detected