MCPcopy Create free account
hub / github.com/FlaxEngine/FlaxEngine / find

Method find

Source/ThirdParty/pugixml/pugixml.cpp:11258–11269  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

11256 }
11257
11258 PUGI__FN xpath_variable* xpath_variable_set::find(const char_t* name) const
11259 {
11260 const size_t hash_size = sizeof(_data) / sizeof(_data[0]);
11261 size_t hash = impl::hash_string(name) % hash_size;
11262
11263 // look for existing variable
11264 for (xpath_variable* var = _data[hash]; var; var = var->_next)
11265 if (impl::strequal(var->name(), name))
11266 return var;
11267
11268 return 0;
11269 }
11270
11271 PUGI__FN xpath_variable* xpath_variable_set::add(const char_t* name, xpath_value_type type)
11272 {

Callers

nothing calls this directly

Calls 3

hash_stringFunction · 0.85
strequalFunction · 0.70
nameMethod · 0.45

Tested by

no test coverage detected