teditor
1.8.0@@fee5e94
Terminal based editor written in C++
|
Functions | |
bool | teditor::parser::NFA::isMatch (bool lastStateRemaining=false) const |
checks if we have reached match state, indicating a regex match More... | |
bool | teditor::parser::NFA::areActiveStatesEmpty () const |
Tells if after the current step() whether there are any active states still remaining. So, this can be used to prematurely stop the regex search in the string. More... | |
const Point & | teditor::parser::NFA::getMatchPos () const |
After the search has finished, use this to know the latest position of the match of the regex in the input string. More... | |
bool | teditor::parser::NFA::step (char c, const Point &pos) |
Step through the NFA state using the current char. More... | |
void | teditor::parser::NFA::reset () |
Reset all the variables used during regex search. This needs to be called once before beginning of every search. More... | |
|
inline |
Tells if after the current step()
whether there are any active states still remaining. So, this can be used to prematurely stop the regex search in the string.
|
inline |
After the search has finished, use this to know the latest position of the match of the regex in the input string.
bool teditor::parser::NFA::isMatch | ( | bool | lastStateRemaining = false | ) | const |
checks if we have reached match state, indicating a regex match
lastStateRemaining | if set to true, means that this will expect only one state to be remaining which should be Match state. |
void teditor::parser::NFA::reset | ( | ) |
Reset all the variables used during regex search. This needs to be called once before beginning of every search.