MCPcopy Create free account
hub / github.com/cathery/sys-con / StringToKey

Function StringToKey

source/Sysmodule/source/config_handler.cpp:56–66  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

54 };
55
56 ControllerButton StringToKey(const char *text)
57 {
58 for (std::size_t i = 0; i != keyNames.size(); ++i)
59 {
60 if (strcmp(keyNames[i], text) == 0)
61 {
62 return static_cast<ControllerButton>(i);
63 }
64 }
65 return NONE;
66 }
67
68 RGBAColor DecodeColorValue(const char *value)
69 {

Callers 1

ParseConfigLineFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected