Lines Matching defs:max
122 // Simplifies the expression re{min,max} in terms of *, +, and ?.
125 static Regexp* SimplifyRepeat(Regexp* re, int min, int max,
307 // Simplifies the expression re{min,max} in terms of *, +, and ?.
313 Regexp* SimplifyWalker::SimplifyRepeat(Regexp* re, int min, int max,
316 if (max == -1) {
337 if (min == 0 && max == 0)
341 if (min == 1 && max == 1)
359 if (max > min) {
361 for (int i = min+1; i < max; i++)
370 // Some degenerate case, like min > max, or min < max < 0.
372 LOG(DFATAL) << "Malformed repeat " << re->ToString() << " " << min << " " << max;