MCPcopy Create free account
hub / github.com/MyGUI/mygui / find

Method find

Tools/EditorFramework/pugixml.cpp:10808–10819  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

10806 }
10807
10808 PUGI__FN xpath_variable* xpath_variable_set::find(const char_t* name) const
10809 {
10810 const size_t hash_size = sizeof(_data) / sizeof(_data[0]);
10811 size_t hash = impl::hash_string(name) % hash_size;
10812
10813 // look for existing variable
10814 for (xpath_variable* var = _data[hash]; var; var = var->_next)
10815 if (impl::strequal(var->name(), name))
10816 return var;
10817
10818 return 0;
10819 }
10820
10821 PUGI__FN xpath_variable* xpath_variable_set::add(const char_t* name, xpath_value_type type)
10822 {

Callers 13

fillStateDataMethod · 0.45
getStateByNameMethod · 0.45
ExistFactoryMethod · 0.45
CreateItemMethod · 0.45
getEventMethod · 0.45
getPropertyMethod · 0.45
loadXmlMethod · 0.45
addCommandMethod · 0.45
onKeyEventMethod · 0.45
executeCommandMethod · 0.45

Calls 3

hash_stringFunction · 0.70
strequalFunction · 0.70
nameMethod · 0.45

Tested by

no test coverage detected