Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Match ¶ added in v0.9.0
type Match struct { Node *Node Length int // how many matchable characters contributed Replaced bool // whether a replacement character contributed Separate bool // false if the match came after another caracter (no space/separation) and contains no skipped characters }
func (Match) EqualsExceptLength ¶ added in v0.9.0
type Queue ¶
type Queue struct { // For correctness, at least longestWord * 2 because some characters turn into 2 matches // In reality, there are no profanities that are missed by reducing this to a lower level // For performance, should be a power of 2 so that modulo division is faster Storage [32]Match // contains filtered or unexported fields }
func (*Queue) AppendUnique ¶
appends to back if queue does not already contain node
Click to show internal directories.
Click to hide internal directories.