regexp/syntax.Regexp.Max (field)
18 uses
regexp/syntax (current package)
parse.go#L180: n := re.Max
parse.go#L240: if re.Max == -1 {
parse.go#L249: size = int64(re.Max)*sub + int64(re.Max-re.Min)
parse.go#L432: re.Max = max
parse.go#L457: m := re.Max
parse.go#L683: (isCharClass(first) || (first.Op == OpRepeat && first.Min == first.Max && isCharClass(first.Sub[0]))) {
regexp.go#L24: Min, Max int // min, max for OpRepeat
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#L215: if re.Max != re.Min {
regexp.go#L217: if re.Max >= 0 {
regexp.go#L218: b.WriteString(strconv.Itoa(re.Max))
simplify.go#L44: if re.Min == 0 && re.Max == 0 {
simplify.go#L52: if re.Max == -1 {
simplify.go#L76: if re.Min == 1 && re.Max == 1 {
simplify.go#L95: if re.Max > re.Min {
simplify.go#L97: for i := re.Min + 1; i < re.Max; i++ {
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. |