Details
xmlAutomataPtr
typedef xmlAutomata *xmlAutomataPtr; |
A libxml automata description, It can be compiled into a regexp
xmlAutomataStatePtr
typedef xmlAutomataState *xmlAutomataStatePtr; |
A state int the automata description,
xmlNewAutomata ()
Create a new automata
xmlFreeAutomata ()
Free an automata
xmlAutomataGetInitState ()
xmlAutomataSetFinalState ()
Makes that state a final state
xmlAutomataNewState ()
Create a new disconnected state in the automata
xmlAutomataNewTransition ()
If to is NULL, this create first a new target state in the automata
and then adds a an epsilon transition from the from state to the
target state
xmlAutomataNewCountTrans ()
If to is NULL, this create first a new target state in the automata
and then adds a transition from the from state to the target state
activated by a succession of input of value token and whose number
is between min and max
xmlAutomataNewOnceTrans ()
If to is NULL, this create first a new target state in the automata
and then adds a transition from the from state to the target state
activated by a succession of input of value token and whose number
is between min and max, moreover that transistion can only be crossed
once.
xmlAutomataNewAllTrans ()
If to is NULL, this create first a new target state in the automata
and then adds a an ALL transition from the from state to the
target state. That transition is an epsilon transition allowed only when
all transitions from the from node have been activated.
xmlAutomataNewCountedTrans ()
If to is NULL, this create first a new target state in the automata
and then adds an epsilon transition from the from state to the target state
which will increment the counter provided
xmlAutomataNewCounterTrans ()
If to is NULL, this create first a new target state in the automata
and then adds an epsilon transition from the from state to the target state
which will be allowed only if the counter is within the right range.
xmlAutomataNewCounter ()
Create a new counter
xmlAutomataCompile ()
Compile the automata into a Reg Exp ready for being executed.
The automata should be free after this point.
xmlAutomataIsDeterminist ()
Checks if an automata is determinist.