| 6143 | namespace |
| 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 | { |
no test coverage detected