Public Member Functions | |
mask (const std::string &str) | |
unsigned int | size () const |
char | space () const |
bool | validate (unsigned int n, char sym) const |
std::string | apply (const std::string &str) const |
unsigned int | real_pos (unsigned int n) const |
Private Types | |
typedef std::vector< std::string::size_type > | pos_vector |
Private Member Functions | |
void | init_mapping () |
unsigned int | real_len () const |
Private Attributes | |
std::string | pattern_ |
pos_vector | mapping_ |
|
map position in the text() to position on the pattern |
|
|
|
apply text to the mask |
|
|
|
real pattern length without ';r' |
|
real cursor position |
|
size of the real symbols + 1 |
|
default space symbol |
|
check are symbol at possition valid |
|
mapping between text and position in the pattern |
|
mask pattern |