| 12991 | |
| 12992 | #ifndef PUGIXML_NO_STL |
| 12993 | PUGI__FN string_t xpath_query::evaluate_string(const xpath_node& n) const |
| 12994 | { |
| 12995 | if (!_impl) return string_t(); |
| 12996 | |
| 12997 | impl::xpath_context c(n, 1, 1); |
| 12998 | impl::xpath_stack_data sd; |
| 12999 | |
| 13000 | impl::xpath_string r = static_cast<impl::xpath_query_impl*>(_impl)->root->eval_string(c, sd.stack); |
| 13001 | |
| 13002 | if (sd.oom) |
| 13003 | { |
| 13004 | #ifdef PUGIXML_NO_EXCEPTIONS |
| 13005 | return string_t(); |
| 13006 | #else |
| 13007 | throw std::bad_alloc(); |
| 13008 | #endif |
| 13009 | } |
| 13010 | |
| 13011 | return string_t(r.c_str(), r.length()); |
| 13012 | } |
| 13013 | #endif |
| 13014 | |
| 13015 | PUGI__FN size_t xpath_query::evaluate_string(char_t* buffer, size_t capacity, const xpath_node& n) const |
nothing calls this directly
no test coverage detected