Skip to content
This repository was archived by the owner on Dec 15, 2022. It is now read-only.

Commit 305faa3

Browse files
committed
Add stub hunspell impl for bulk spell-checking function
1 parent fed2854 commit 305faa3

File tree

2 files changed

+6
-0
lines changed

2 files changed

+6
-0
lines changed

src/spellchecker_hunspell.cc

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -48,6 +48,11 @@ bool HunspellSpellchecker::IsMisspelled(const std::string& word) {
4848
return hunspell->spell(word.c_str()) == 0;
4949
}
5050

51+
std::vector<MisspelledRange> HunspellSpellchecker::CheckSpelling(const char *text, size_t length) {
52+
std::vector<MisspelledRange> result;
53+
return result;
54+
}
55+
5156
void HunspellSpellchecker::Add(const std::string& word) {
5257
if (hunspell) {
5358
hunspell->add(word.c_str());

src/spellchecker_hunspell.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@ class HunspellSpellchecker : public SpellcheckerImplementation {
1616
std::vector<std::string> GetAvailableDictionaries(const std::string& path);
1717
std::vector<std::string> GetCorrectionsForMisspelling(const std::string& word);
1818
bool IsMisspelled(const std::string& word);
19+
std::vector<MisspelledRange> CheckSpelling(const char *text, size_t length);
1920
void Add(const std::string& word);
2021

2122
private:

0 commit comments

Comments
 (0)