MCPcopy Create free account
hub / github.com/axmolengine/axmol / evaluate_string

Method evaluate_string

3rdparty/pugixml/pugixml.cpp:12993–13012  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

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

Callers

nothing calls this directly

Calls 4

xpath_stringFunction · 0.85
eval_stringMethod · 0.80
c_strMethod · 0.45
lengthMethod · 0.45

Tested by

no test coverage detected