const regexp/syntax.NonGreedy
15 uses
regexp/syntax (current package)
compile.go#L133: return c.star(c.compile(re.Sub[0]), re.Flags&NonGreedy != 0)
compile.go#L135: return c.plus(c.compile(re.Sub[0]), re.Flags&NonGreedy != 0)
compile.go#L137: return c.quest(c.compile(re.Sub[0]), re.Flags&NonGreedy != 0)
parse.go#L63: NonGreedy // make repetition operators default to non-greedy
parse.go#L412: flags ^= NonGreedy
parse.go#L1217: flags |= NonGreedy
regexp.go#L98: if x.Flags&NonGreedy != y.Flags&NonGreedy || !x.Sub[0].Equal(y.Sub[0]) {
regexp.go#L103: if x.Flags&NonGreedy != y.Flags&NonGreedy || x.Min != y.Min || x.Max != y.Max || !x.Sub[0].Equal(y.Sub[0]) {
regexp.go#L223: if re.Flags&NonGreedy != 0 {
simplify.go#L141: if op == sub.Op && flags&NonGreedy == sub.Flags&NonGreedy {
simplify.go#L144: if re != nil && re.Op == op && re.Flags&NonGreedy == flags&NonGreedy && sub == re.Sub[0] {
|
The pages are generated with Golds v0.6.7. (GOOS=linux GOARCH=amd64)
Golds is a Go 101 project developed by Tapir Liu.
PR and bug reports are welcome and can be submitted to the issue list.
Please follow @Go100and1 (reachable from the left QR code) to get the latest news of Golds. |