MCPcopy Create free account
hub / github.com/assimp/assimp / evaluate_string

Method evaluate_string

contrib/pugixml/src/pugixml.cpp:13328–13347  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

13326
13327#ifndef PUGIXML_NO_STL
13328 PUGI_IMPL_FN string_t xpath_query::evaluate_string(const xpath_node& n) const
13329 {
13330 if (!_impl) return string_t();
13331
13332 impl::xpath_context c(n, 1, 1);
13333 impl::xpath_stack_data sd;
13334
13335 impl::xpath_string r = static_cast<impl::xpath_query_impl*>(_impl)->root->eval_string(c, sd.stack);
13336
13337 if (sd.oom)
13338 {
13339 #ifdef PUGIXML_NO_EXCEPTIONS
13340 return string_t();
13341 #else
13342 throw std::bad_alloc();
13343 #endif
13344 }
13345
13346 return string_t(r.c_str(), r.length());
13347 }
13348#endif
13349
13350 PUGI_IMPL_FN size_t xpath_query::evaluate_string(char_t* buffer, size_t capacity, const xpath_node& n) const

Callers

nothing calls this directly

Calls 2

xpath_stringFunction · 0.85
eval_stringMethod · 0.80

Tested by

no test coverage detected