regexp

package
v0.10.2 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jun 14, 2019 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func IncrementBytes

func IncrementBytes(in []byte) []byte

IncrementBytes increments the provided bytes to the next word boundary.

func LiteralPrefix

func LiteralPrefix(s *syntax.Regexp) string

LiteralPrefix returns the literal prefix given the parse tree for a regexp

func ParseRegexp

func ParseRegexp(pattern string) (a *vregexp.Regexp, prefixBeg, prefixEnd []byte, err error)

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.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL