Maven module :un.api : api-common :
Class : un.api.regex.RegexExec
Extends/Implements : un.api.regex.NFAStateExec
Subclasses : -

Regular expression executor.
Can be used two ways :
match(text)
Or in iterative calls with :
reset()
process(cp)
This class is not concurrent.
author  Johann Sorel


Variables : -
Functions : RegexExec, match, split, replace, process



public void RegexExec (NFAState state)


Check if given text match expression.
param  text to test
return  true if given string match regex
public boolean match (Chars text)


Split the text each time the pattern is found.
TODO add argument to control empty split at begining and end
param  text
return  splitted text
public Chars[] split (Chars text)


Replace all instances of matching elements in the char array by given text.
param  text
param  replacement
return
public Chars replace (Chars text, Chars replacement)


Process a new character.
param  cp unicode code point
return  Collection of current NFA states
public Sequence process (int cp)