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

Method is_spellchecking_needed

src/core/SpellChecker.cpp:257–262  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

255}
256
257bool SpellChecker::is_spellchecking_needed(std::wstring_view word, TextPosition word_start) const {
258 if (!m_speller_container.active_speller().is_working())
259 return false;
260
261 return SpellCheckerHelpers::is_word_spell_checking_needed(m_settings, m_editor, word, word_start);
262}
263
264bool SpellChecker::is_word_under_cursor_correct(TextPosition &pos, TextPosition &length, bool use_text_cursor) const {
265 TextPosition init_char_pos, selection_start = 0, selection_end = 0;

Callers

nothing calls this directly

Calls 2

is_workingMethod · 0.45

Tested by

no test coverage detected