FSATraversal

class FSATraversal(fsa: FSA)

This class implements some common matching and scanning operations on a generic FSA.

Constructors

Link copied to clipboard
constructor(fsa: FSA)

Functions

Link copied to clipboard
fun match(sequence: ByteArray): MatchResult
fun match(sequence: ByteArray, node: Int): MatchResult
fun match(sequence: ByteArray, start: Int, length: Int, node: Int): MatchResult
fun match(reuse: MatchResult, sequence: ByteArray, start: Int, length: Int, node: Int): MatchResult
Link copied to clipboard
fun perfectHash(sequence: ByteArray): Int
fun perfectHash(sequence: ByteArray, start: Int, length: Int, node: Int): Int