PenaltyDAG: now decrease weights of both left and right edge of a fuzzy node
[vspell.git] / libvspell / shuffle.h
blob71e8abeb4c4aefbc4080314d8c99a39d9d7db512
1 // -*- tab-width: 2 mode: c++ -*-
3 #ifndef __STRING__
4 #include <string>
5 #endif
7 #ifndef __SPELL_H__
8 #include "spell.h"
9 #endif
11 class CharInserter//CharShuffle
13 private:
14 std::string input;
15 uint i,i2;
16 uint len;
18 public:
19 void init(const char *input);
20 bool step(std::string &output);
21 void done();
24 class CharEraser//CharShuffle
26 private:
27 std::string input;
28 uint i;
29 uint len;
31 public:
32 void init(const char *input);
33 bool step(std::string &output);
34 void done();
37 class CharTransposer//CharShuffle
39 private:
40 std::string input;
41 uint i;
42 uint len;
44 public:
45 void init(const char *input);
46 bool step(std::string &output);
47 void done();