Public Methods |
virtual bool | RegisterRegExp (unsigned int key, iRegExp &re)=0 |
| Register a regular expression for matching.
|
virtual bool | UnregisterRegExp (unsigned int key)=0 |
| Unregister a previously registered expression.
|
virtual unsigned int | GetFreeKey ()=0 |
| Requests a new (free) key.
|
virtual unsigned int | GetError ()=0 |
| Returns the last error. Value is only valid when a member function has returned false.
|
virtual unsigned int | GetMatchedKey ()=0 |
| Returns the key of the last RE matched.
|
virtual iString* | GetMatchedText ()=0 |
| Returns a pointer to the last matched text.
|
virtual bool | PushStream (iDataBuffer &buf)=0 |
| Saves the current input stream and state, then resets the current state and uses stream from buf.
|
virtual bool | PopStream ()=0 |
| Replaces the current input stream and state with the next stream and state on the stack.
|
virtual unsigned int | Match ()=0 |
| Scans the input stream for a match by one of the RegularExpression's returns 0 on failure, otherwise returns the key of the matched RE.
|