MCPcopy Create free account
hub / github.com/Bush2021/chrome_plus / FindInKeyMap

Function FindInKeyMap

src/utils.cc:334–342  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

332
333template <size_t N>
334constexpr std::optional<UINT> FindInKeyMap(
335 std::wstring_view key,
336 const std::pair<std::wstring_view, UINT> (&map)[N]) {
337 for (const auto& [name, code] : map) {
338 if (EqualsIgnoreCase(key, name))
339 return code;
340 }
341 return std::nullopt;
342}
343
344// Parse function key (F1-F24)
345std::optional<UINT> ParseFunctionKey(std::wstring_view key) {

Callers 1

ParseHotkeysFunction · 0.85

Calls 1

EqualsIgnoreCaseFunction · 0.85

Tested by

no test coverage detected