| 7501 | } |
| 7502 | |
| 7503 | PUGI__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 | |
| 7520 | class xpath_node_set_raw |
| 7521 | { |
nothing calls this directly
no test coverage detected