| 102 | } |
| 103 | |
| 104 | static const wchar_t *to_string(SpellerId value) { |
| 105 | switch (value) { |
| 106 | case SpellerId::aspell: |
| 107 | return L"Aspell"; |
| 108 | case SpellerId::hunspell: |
| 109 | return L"Hunspell"; |
| 110 | case SpellerId::native: |
| 111 | return L"Native_Speller"; |
| 112 | case SpellerId::COUNT: |
| 113 | break; |
| 114 | } |
| 115 | throw std::runtime_error("Incorrect SpellerId value"); |
| 116 | } |
| 117 | |
| 118 | static const wchar_t *default_language(SpellerId value) { |
| 119 | switch (value) { |