repo.or.cz
/
vspell.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
Sentence::tokenize() now uses flex-based ::tokenize()
[vspell.git]
/
libvspell
/
posgen.h
blob
678abbd256fe6f7f121088ebe209464c17de18cd
1
#ifndef __POSGEN_H__
// -*- tab-width: 2 mode: c++ -*-
2
#define __POSGEN_H__
3
4
#ifndef __SPELL_H__
5
#include
"spell.h"
6
#endif
7
8
#ifndef __VECTOR__
9
#include <vector>
10
#endif
11
12
/**
13
Position generator.
14
*/
15
16
class
Generator
17
{
18
private
:
19
int
ii
,
i
,
nr_misspelled
;
20
std
::
vector
<
int
>
misspelled_pos
;
21
bool
run
;
22
23
int
len
;
24
SentenceRef st
;
25
26
public
:
27
void
init
(
const
Sentence
&
st
);
28
bool
step
(
std
::
vector
<
int
> &
pos
,
int
&
len
);
29
void
done
();
30
};
31
32
33
#endif