| 11426 | } |
| 11427 | |
| 11428 | PUGI__FN xpath_node_set xpath_query::evaluate_node_set(const xpath_node& n) const |
| 11429 | { |
| 11430 | impl::xpath_ast_node* root = impl::evaluate_node_set_prepare(static_cast<impl::xpath_query_impl*>(_impl)); |
| 11431 | if (!root) return xpath_node_set(); |
| 11432 | |
| 11433 | impl::xpath_context c(n, 1, 1); |
| 11434 | impl::xpath_stack_data sd; |
| 11435 | |
| 11436 | #ifdef PUGIXML_NO_EXCEPTIONS |
| 11437 | if (setjmp(sd.error_handler)) return xpath_node_set(); |
| 11438 | #endif |
| 11439 | |
| 11440 | impl::xpath_node_set_raw r = root->eval_node_set(c, sd.stack, impl::nodeset_eval_all); |
| 11441 | |
| 11442 | return xpath_node_set(r.begin(), r.end(), r.type()); |
| 11443 | } |
| 11444 | |
| 11445 | PUGI__FN xpath_node xpath_query::evaluate_node(const xpath_node& n) const |
| 11446 | { |
no test coverage detected