summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorVlad Voicu <vladvoic@gmail.com>2011-11-29 01:15:18 (GMT)
committervlad <vlad@tyrion.(none)>2012-10-13 13:55:44 (GMT)
commit5e7be9a49cf540a68275f084e57a6efe8d7c1626 (patch)
tree9b1e68541c3d00d598f2613537e4c47e60543e16 /SwifTools/SpellChecker.h
parent4ef710cfcc4aa4f171426ef55cbece00cd69af62 (diff)
downloadswift-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.h7
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_;
};
}