regexp/syntax.Regexp.Min (field)
22 uses
regexp/syntax (current package)
parse.go#L182: n = re.Min
parse.go#L241: if re.Min == 0 {
parse.go#L244: size = 1 + int64(re.Min)*sub // xxx+
parse.go#L249: size = int64(re.Max)*sub + int64(re.Max-re.Min)
parse.go#L431: re.Min = min
parse.go#L462: m = re.Min
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#L214: b.WriteString(strconv.Itoa(re.Min))
regexp.go#L215: if re.Max != re.Min {
simplify.go#L44: if re.Min == 0 && re.Max == 0 {
simplify.go#L54: if re.Min == 0 {
simplify.go#L59: if re.Min == 1 {
simplify.go#L66: for i := 0; i < re.Min-1; i++ {
simplify.go#L76: if re.Min == 1 && re.Max == 1 {
simplify.go#L86: if re.Min > 0 {
simplify.go#L89: for i := 0; i < re.Min; i++ {
simplify.go#L95: if re.Max > re.Min {
simplify.go#L97: for i := re.Min + 1; i < re.Max; i++ {
regexp
regexp.go#L293: return re.Min * minInputLen(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. |