Sentence::tokenize() now uses flex-based ::tokenize()
[vspell.git] / libvspell / posgen.h
blob678abbd256fe6f7f121088ebe209464c17de18cd
1 #ifndef __POSGEN_H__ // -*- tab-width: 2 mode: c++ -*-
2 #define __POSGEN_H__
4 #ifndef __SPELL_H__
5 #include "spell.h"
6 #endif
8 #ifndef __VECTOR__
9 #include <vector>
10 #endif
12 /**
13 Position generator.
16 class Generator
18 private:
19 int ii,i,nr_misspelled;
20 std::vector<int> misspelled_pos;
21 bool run;
23 int len;
24 SentenceRef st;
26 public:
27 void init(const Sentence &st);
28 bool step(std::vector<int> &pos,int &len);
29 void done();
33 #endif