diff options
| author | Vlad Voicu <vladvoic@gmail.com> | 2011-11-29 01:15:18 (GMT) |
|---|---|---|
| committer | vlad <vlad@tyrion.(none)> | 2012-10-13 13:55:44 (GMT) |
| commit | 5e7be9a49cf540a68275f084e57a6efe8d7c1626 (patch) | |
| tree | 9b1e68541c3d00d598f2613537e4c47e60543e16 /SwifTools/SpellChecker.h | |
| parent | 4ef710cfcc4aa4f171426ef55cbece00cd69af62 (diff) | |
| download | swift-contrib-5e7be9a49cf540a68275f084e57a6efe8d7c1626.zip swift-contrib-5e7be9a49cf540a68275f084e57a6efe8d7c1626.tar.bz2 | |
Modified the Spellchecker to use hunspell instead of aspell
Diffstat (limited to 'SwifTools/SpellChecker.h')
| -rw-r--r-- | SwifTools/SpellChecker.h | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/SwifTools/SpellChecker.h b/SwifTools/SpellChecker.h index 3a9ff38..1c3148b 100644 --- a/SwifTools/SpellChecker.h +++ b/SwifTools/SpellChecker.h @@ -9,17 +9,16 @@ #pragma once -class AspellSpeller; -class AspellConfig; +class Hunspell; namespace Swift { class SpellChecker { public: SpellChecker(); + ~SpellChecker(); bool isCorrect(const std::string& word); void getSuggestions(const std::string& word, std::vector<std::string>& list); private: - AspellSpeller* speller_; - AspellConfig* config_; + Hunspell* speller_; }; } |
Swift