MCPcopy Create free account
hub / github.com/crossuo/crossuo / GetConfigKey

Function GetConfigKey

src/Managers/ConfigManager.cpp:317–328  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

315static_assert(countof(s_Keys) == CMKC_COUNT + 1, "Missing key string for configuration option");
316
317static uint32_t GetConfigKey(const astr_t &key)
318{
319 auto str = str_lower(key);
320 for (int i = 0; s_Keys[i].key_name; i++)
321 {
322 if (str == s_Keys[i].key_name)
323 {
324 return s_Keys[i].key;
325 }
326 }
327 return CMKC_NONE;
328}
329
330} // namespace cmkc
331

Callers 1

LoadMethod · 0.70

Calls 1

str_lowerFunction · 0.85

Tested by

no test coverage detected