Lines Matching refs:repeat_max
4461 int repeat_min = 0, repeat_max = 0; /* To please picky compilers */ in compile_branch() local
5669 ptr = read_repeat_counts(ptr+1, &repeat_min, &repeat_max, errorcodeptr); in compile_branch()
5675 repeat_max = -1; in compile_branch()
5680 repeat_max = -1; in compile_branch()
5685 repeat_max = 1; in compile_branch()
5704 reqvary = (repeat_min == repeat_max)? 0 : REQ_VARY; in compile_branch()
5882 if (repeat_max == 0) goto END_REPEAT; in compile_branch()
5893 if (repeat_max == -1) *code++ = OP_STAR + repeat_type; in compile_branch()
5894 else if (repeat_max == 1) *code++ = OP_QUERY + repeat_type; in compile_branch()
5898 PUT2INC(code, 0, repeat_max); in compile_branch()
5909 if (repeat_max == -1) in compile_branch()
5914 if (repeat_max == 1) goto END_REPEAT; in compile_branch()
5916 PUT2INC(code, 0, repeat_max - 1); in compile_branch()
5934 if (repeat_max < 0) in compile_branch()
5959 else if (repeat_max != repeat_min) in compile_branch()
5975 repeat_max -= repeat_min; in compile_branch()
5977 if (repeat_max == 1) in compile_branch()
5984 PUT2INC(code, 0, repeat_max); in compile_branch()
6023 if (repeat_max == 0) in compile_branch()
6029 if (repeat_min == 0 && repeat_max == -1) in compile_branch()
6031 else if (repeat_min == 1 && repeat_max == -1) in compile_branch()
6033 else if (repeat_min == 0 && repeat_max == 1) in compile_branch()
6039 if (repeat_max == -1) repeat_max = 0; /* 2-byte encoding for max */ in compile_branch()
6040 PUT2INC(code, 0, repeat_max); in compile_branch()
6075 if (repeat_max < 0 || repeat_max > 1) repeat_max = 1; in compile_branch()
6109 if (repeat_max <= 1) /* Covers 0, 1, and unlimited */ in compile_branch()
6115 if (repeat_max == 0) in compile_branch()
6150 repeat_max--; in compile_branch()
6223 if (repeat_max > 0) repeat_max -= repeat_min; in compile_branch()
6233 if (repeat_max >= 0) in compile_branch()
6242 if (lengthptr != NULL && repeat_max > 0) in compile_branch()
6244 int delta = repeat_max * (length_prevgroup + 1 + 2 + 2*LINK_SIZE) - in compile_branch()
6246 if ((INT64_OR_DOUBLE)repeat_max * in compile_branch()
6259 else for (i = repeat_max - 1; i >= 0; i--) in compile_branch()