1 // -*- tab-width: 2 mode: c++ -*-
7 void CharInserter::init(const char *input_
)
14 bool CharInserter::step(string
&output
)
16 static char *candidates
= "qwertyuiopasdfghjklzxcvbnm";
17 uint len2
= strlen(candidates
);
23 output
.insert(output
.begin()+i
,candidates
[i2
]);
32 void CharInserter::done()
36 void CharEraser::init(const char *input_
)
43 bool CharEraser::step(string
&output
)
55 void CharEraser::done()
59 void CharTransposer::init(const char *input_
)
66 bool CharTransposer::step(string
&output
)
74 output
[i
] = output
[i
+1];
81 void CharTransposer::done()