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

Method check_word

src/core/SpellChecker.cpp:320–327  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

318}
319
320bool 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
329TextPosition 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); });

Callers 1

process_replace_allMethod · 0.45

Calls 2

print_to_logFunction · 0.85
get_editor_hwndMethod · 0.45

Tested by

no test coverage detected