diff options
author | Vlad Voicu <vladv@rosedu.org> | 2012-01-19 21:49:08 (GMT) |
---|---|---|
committer | vlad <vlad@tyrion.(none)> | 2012-10-13 13:55:44 (GMT) |
commit | eca3a097403adbd85fe3b0cf366f29ecc37cacc6 (patch) | |
tree | dbc86052c3c5e8f98eee56af06b20d79261d27f0 /SwifTools/SpellParser.h | |
parent | 66d6e33635a22bfdfdd82ffab1b1693aa77f6181 (diff) | |
download | swift-contrib-eca3a097403adbd85fe3b0cf366f29ecc37cacc6.zip swift-contrib-eca3a097403adbd85fe3b0cf366f29ecc37cacc6.tar.bz2 |
Big spell checker chunk
Diffstat (limited to 'SwifTools/SpellParser.h')
-rw-r--r-- | SwifTools/SpellParser.h | 29 |
1 files changed, 29 insertions, 0 deletions
diff --git a/SwifTools/SpellParser.h b/SwifTools/SpellParser.h new file mode 100644 index 0000000..2bc562d --- /dev/null +++ b/SwifTools/SpellParser.h @@ -0,0 +1,29 @@ +/* + * Copyright (c) 2011 Vlad Voicu + * Licensed under the Simplified BSD license. + * See Documentation/Licenses/BSD-simplified.txt for more information. + */ + +#pragma once + +#include <boost/algorithm/string.hpp> +#include <boost/tuple/tuple.hpp> +#include <boost/algorithm/string.hpp> + +#include <vector> + +namespace Swift { + enum token_ids + { + ID_WWW = 1, + ID_HTTP = 2, + ID_WORD = 3, + ID_CHAR = 4, + }; + typedef std::list<boost::tuple<int, int> > PositionPairVector; + + class SpellParser{ + public: + void check(const std::string& fragment, PositionPairVector& wordPositions); + }; +} |