MCPcopy Create free account
hub / github.com/MITK/MITK / Find

Method Find

Modules/CppMicroServices/src/usServicePropertiesImpl.cpp:67–77  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

65}
66
67int ServicePropertiesImpl::Find(const std::string& key) const
68{
69 for (std::size_t i = 0; i < keys.size(); ++i)
70 {
71 if (key.size() == keys[i].size() && ci_compare(key.c_str(), keys[i].c_str(), key.size()) == 0)
72 {
73 return static_cast<int>(i);
74 }
75 }
76 return -1;
77}
78
79int ServicePropertiesImpl::FindCaseSensitive(const std::string& key) const
80{

Callers 3

EvaluateMethod · 0.45
FilterModulesMethod · 0.45

Calls 1

sizeMethod · 0.45

Tested by

no test coverage detected