MCPcopy Create free account
hub / github.com/Predelnik/DSpellCheck / default_language

Function default_language

src/plugin/Settings.cpp:118–130  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

116}
117
118static const wchar_t *default_language(SpellerId value) {
119 switch (value) {
120 case SpellerId::aspell:
121 return L"en";
122 case SpellerId::hunspell:
123 return L"en_GB";
124 case SpellerId::native:
125 return L"en-US";
126 case SpellerId::COUNT:
127 break;
128 }
129 throw std::runtime_error("Incorrect SpellerId value");
130}
131
132Settings::Settings(std::wstring_view ini_filepath)
133 : m_ini_filepath(ini_filepath) {

Callers 2

processMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected