MCPcopy Create free account
hub / github.com/deskflow/deskflow / getLanguageGroupID

Method getLanguageGroupID

src/lib/deskflow/KeyMap.cpp:301–313  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

299}
300
301int32_t KeyMap::getLanguageGroupID(int32_t group, const std::string &lang) const
302{
303 auto id = group;
304
305 if (auto it = std::find(m_keyboardLayouts.begin(), m_keyboardLayouts.end(), lang); it != m_keyboardLayouts.end()) {
306 id = static_cast<int>(std::distance(m_keyboardLayouts.begin(), it));
307 LOG_DEBUG1("language %s has group id %d", lang.c_str(), id);
308 } else {
309 LOG_DEBUG1("could not found requested language");
310 }
311
312 return id;
313}
314
315int32_t KeyMap::getNumGroups() const
316{

Callers

nothing calls this directly

Calls 2

beginMethod · 0.45
endMethod · 0.45

Tested by

no test coverage detected