Documentation
¶
Overview ¶
Package regexp builds regular expressions out of scalable flowgraphs
Index ¶
- Variables
- func FuncBar(a, b fgbase.Edge, x fgbase.Edge, sink bool) fgbase.Node
- func FuncMatch(a, b fgbase.Edge, x fgbase.Edge, ignoreCase bool) fgbase.Node
- func FuncRepeat(newmatch, subsrc, dnstreq fgbase.Edge, oldmatch, subdst, upstreq fgbase.Edge, ...) fgbase.Node
- func NextID() int64
- type Mode
- type Search
Constants ¶
This section is empty.
Variables ¶
var CurrID int64 = 0
Functions ¶
func FuncBar ¶
FuncBar waits for both inputs and returns the one that matches the shortest string. Returns nil if no match at all.
func FuncMatch ¶
FuncMatch advances a byte slice if it matches a string, otherwise returns the empty slice
func FuncRepeat ¶
func FuncRepeat(newmatch, subsrc, dnstreq fgbase.Edge, oldmatch, subdst, upstreq fgbase.Edge, min, max int) fgbase.Node
FuncRepeat repeats a match zero or more times
inputs: newmatch -- new match string subsrc -- fedback result of last match, successful (remainder string) or not (nil) dnstreq -- receive downstream request for new remainder string
outputs: oldmatch -- continue match (remainder string) subdst -- match done, successful (remainder string) or not (nil) upstreq -- send upstream request for new remainder string