| 116 | } |
| 117 | |
| 118 | static 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 | |
| 132 | Settings::Settings(std::wstring_view ini_filepath) |
| 133 | : m_ini_filepath(ini_filepath) { |
no outgoing calls
no test coverage detected