summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorVlad Voicu <vladv@rosedu.org>2012-01-19 21:49:08 (GMT)
committervlad <vlad@tyrion.(none)>2012-10-13 13:55:44 (GMT)
commiteca3a097403adbd85fe3b0cf366f29ecc37cacc6 (patch)
treedbc86052c3c5e8f98eee56af06b20d79261d27f0 /SwifTools/HunspellChecker.h
parent66d6e33635a22bfdfdd82ffab1b1693aa77f6181 (diff)
downloadswift-contrib-eca3a097403adbd85fe3b0cf366f29ecc37cacc6.zip
swift-contrib-eca3a097403adbd85fe3b0cf366f29ecc37cacc6.tar.bz2
Big spell checker chunk
Diffstat (limited to 'SwifTools/HunspellChecker.h')
-rw-r--r--SwifTools/HunspellChecker.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/SwifTools/HunspellChecker.h b/SwifTools/HunspellChecker.h
index e016c08..bf56778 100644
--- a/SwifTools/HunspellChecker.h
+++ b/SwifTools/HunspellChecker.h
@@ -6,6 +6,7 @@
#include <vector>
#include <boost/algorithm/string.hpp>
+#include <boost/tuple/tuple.hpp>
#include <SwifTools/SpellChecker.h>
#pragma once
@@ -19,6 +20,7 @@ namespace Swift {
virtual ~HunspellChecker();
virtual bool isCorrect(const std::string& word);
virtual void getSuggestions(const std::string& word, std::vector<std::string>& list);
+ virtual void checkFragment(const std::string& fragment, PositionPairVector& misspelledPositions);
private:
Hunspell* speller_;
};