| 10917 | } |
| 10918 | |
| 10919 | PUGI__FN bool xpath_query::evaluate_boolean(const xpath_node& n) const |
| 10920 | { |
| 10921 | if (!_impl) |
| 10922 | return false; |
| 10923 | |
| 10924 | impl::xpath_context c(n, 1, 1); |
| 10925 | impl::xpath_stack_data sd; |
| 10926 | |
| 10927 | #ifdef PUGIXML_NO_EXCEPTIONS |
| 10928 | if (setjmp(sd.error_handler)) |
| 10929 | return false; |
| 10930 | #endif |
| 10931 | |
| 10932 | return static_cast<impl::xpath_query_impl*>(_impl)->root->eval_boolean(c, sd.stack); |
| 10933 | } |
| 10934 | |
| 10935 | PUGI__FN double xpath_query::evaluate_number(const xpath_node& n) const |
| 10936 | { |
nothing calls this directly
no test coverage detected