Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func IncrementBytes ¶
IncrementBytes increments the provided bytes to the next word boundary.
func LiteralPrefix ¶
LiteralPrefix returns the literal prefix given the parse tree for a regexp
func ParseRegexp ¶
ParseRegexp parses the provided regexp pattern into an equivalent matching automaton, and corresponding keys to bound prefix beginning and end during the FST search.
func ParsedRegexp ¶
func ParsedRegexp(pattern string, parsed *syntax.Regexp) (a *vregexp.Regexp, prefixBeg, prefixEnd []byte, err error)
ParsedRegexp uses the pre-parsed regexp pattern and creates an equivalent matching automaton, and corresponding keys to bound prefix beginning and end during the FST search.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.