Moved tests to utils. Added .gitignore
[vspell.git] / libvspell / tokenize.h
blob618e1f72867514470e0921643e617d0ea79973eb
1 #ifndef __TOKENIZE_H__
2 #define __TOKENIZE_H__
4 #ifndef __VECTOR__
5 #include <vector>
6 #endif
7 #ifndef __STRING__
8 #include <string>
9 #endif
11 struct Token
13 bool is_token;
14 std::string value;
16 Token(bool _is_token, const std::string &_value):
17 is_token(_is_token),
18 value(_value)
22 typedef std::vector<Token> Tokens;
24 bool tokenize(const std::string& str,Tokens &tokens);
26 #endif