MCPcopy Create free account
hub / github.com/WheretIB/nullc / find

Method find

external/pugixml/pugixml.cpp:9316–9327  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

9314 }
9315
9316 xpath_variable* xpath_variable_set::find(const char_t* name) const
9317 {
9318 const size_t hash_size = sizeof(_data) / sizeof(_data[0]);
9319 size_t hash = hash_string(name) % hash_size;
9320
9321 // look for existing variable
9322 for (xpath_variable* var = _data[hash]; var; var = var->_next)
9323 if (strequal(var->name(), name))
9324 return var;
9325
9326 return 0;
9327 }
9328
9329 xpath_variable* xpath_variable_set::add(const char_t* name, xpath_value_type type)
9330 {

Callers

nothing calls this directly

Calls 3

hash_stringFunction · 0.85
strequalFunction · 0.85
nameMethod · 0.80

Tested by

no test coverage detected