| 318 | } |
| 319 | |
| 320 | bool SpellChecker::check_word(std::wstring_view word, TextPosition word_start) const { |
| 321 | print_to_log(L"bool SpellChecker::check_word(NppViewType view, std::wstring_view word, TextPosition word_start)", |
| 322 | m_editor.get_editor_hwnd()); |
| 323 | if (!is_spellchecking_needed(word, word_start)) |
| 324 | return true; |
| 325 | |
| 326 | return m_speller_container.active_speller().check_word(to_word_for_speller(word)); |
| 327 | } |
| 328 | |
| 329 | TextPosition SpellChecker::next_token_end(std::wstring_view target, TextPosition index) const { |
| 330 | return m_settings.do_with_tokenizer(target, [index](const auto &tokenizer) { return tokenizer.next_token_end(index); }); |
no test coverage detected