Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type DankEncoder ¶
type DankEncoder struct {
// contains filtered or unexported fields
}
DankEncoder is the main struct matching Python's C++ backend.
func NewDankEncoder ¶
func NewDankEncoder(regexStr string, fixedSlice int) *DankEncoder
NewDankEncoder initializes and builds the automaton using C++ algorithm.
func (*DankEncoder) GenerateAtFixedLength ¶
func (d *DankEncoder) GenerateAtFixedLength(fixedLen int) []string
GenerateAtFixedLength returns all strings of exactly fixedLen
func (*DankEncoder) NumNFAStates ¶
func (d *DankEncoder) NumNFAStates() int
NumNFAStates returns the number of NFA states (for debugging)
func (*DankEncoder) NumStates ¶
func (d *DankEncoder) NumStates() int
NumStates returns the number of DFA states
func (*DankEncoder) NumWords ¶
func (d *DankEncoder) NumWords(minLen, maxLen int) int64
NumWords counts accepted strings using DP
Click to show internal directories.
Click to hide internal directories.