Lines Matching refs:max

931 int min, max, i;  in detect_repeat()  local
957 max = 0; in detect_repeat()
970 max++; in detect_repeat()
973 if (next[0] == type && next[1] == *begin && max >= 1) in detect_repeat()
978 for (i = 0; i < max; i++, next_end += 1 + LINK_SIZE) in detect_repeat()
982 if (i == max) in detect_repeat()
987 common->private_data_ptrs[max_end - common->start - LINK_SIZE + 2] = max + 2; in detect_repeat()
2576 static void peek_char(compiler_common *common, pcre_uint32 max) in peek_char() argument
2585 SLJIT_UNUSED_ARG(max); in peek_char()
2591 if (max < 128) return; in peek_char()
2604 if (max < 0xd800) return; in peek_char()
2664 static void read_char_range(compiler_common *common, pcre_uint32 min, pcre_uint32 max, BOOL update_… in read_char_range() argument
2679 SLJIT_UNUSED_ARG(max); in read_char_range()
2680 SLJIT_ASSERT(min <= max); in read_char_range()
2688 if (max < 128 && !update_str_ptr) return; in read_char_range()
2715 else if (min >= 0x800 && max <= 0xffff) in read_char_range()
2735 else if (max >= 0x800) in read_char_range()
2736 …add_jump(compiler, (max < 0x10000) ? &common->utfreadchar16 : &common->utfreadchar, JUMP(SLJIT_FAS… in read_char_range()
2737 else if (max < 128) in read_char_range()
2763 if (max >= 0x10000) in read_char_range()
2778 if (max < 0xd800 && !update_str_ptr) return; in read_char_range()
2785 if (max >= 0xd800) in read_char_range()
3584 int i, max, from; in fast_forward_first_n_chars() local
3598 max = scan_prefix(common, common->start, chars, bytes, MAX_N_CHARS, &rec_count); in fast_forward_first_n_chars()
3600 if (max <= 1) in fast_forward_first_n_chars()
3603 for (i = 0; i < max; i++) in fast_forward_first_n_chars()
3617 for (i = 0; i <= max; i++) in fast_forward_first_n_chars()
3625 if (i < max && bytes[i * MAX_N_BYTES] < 255) in fast_forward_first_n_chars()
3661 for (i = 0; i < max; i++) in fast_forward_first_n_chars()
3674 for (i = max - 1; i > offsets[0]; i--) in fast_forward_first_n_chars()
3725 max -= 1; in fast_forward_first_n_chars()
3731 OP2(SLJIT_SUB, STR_END, 0, STR_END, 0, SLJIT_IMM, IN_UCHARS(max)); in fast_forward_first_n_chars()
3737 OP2(SLJIT_SUB, STR_END, 0, STR_END, 0, SLJIT_IMM, IN_UCHARS(max)); in fast_forward_first_n_chars()
3810 OP2(SLJIT_ADD, STR_END, 0, STR_END, 0, SLJIT_IMM, IN_UCHARS(max)); in fast_forward_first_n_chars()
4785 sljit_uw c, charoffset, max = 256, min = READ_CHAR_MAX; in compile_xclass_matchingpath() local
4818 if (c > max) max = c; in compile_xclass_matchingpath()
4830 if (c > max) max = c; in compile_xclass_matchingpath()
4845 if (*other_cases > max) max = *other_cases; in compile_xclass_matchingpath()
4852 max = READ_CHAR_MAX; in compile_xclass_matchingpath()
4899 read_char_range(common, min, max, (cc[-1] & XCL_NOT) != 0); in compile_xclass_matchingpath()
4924 … (cc[-1] & XCL_NOT) == 0 ? backtracks : &found, CMP(SLJIT_GREATER, TMP2, 0, SLJIT_IMM, max - min)); in compile_xclass_matchingpath()
6094 int min = 0, max = 0; in compile_ref_iterator_matchingpath() local
6112 max = 0; in compile_ref_iterator_matchingpath()
6118 max = 0; in compile_ref_iterator_matchingpath()
6124 max = 1; in compile_ref_iterator_matchingpath()
6130 max = GET2(cc, 1 + IMM2_SIZE + 1 + IMM2_SIZE); in compile_ref_iterator_matchingpath()
6183 if (min > 1 || max > 1) in compile_ref_iterator_matchingpath()
6191 if (min > 1 || max > 1) in compile_ref_iterator_matchingpath()
6198 if (max > 1) in compile_ref_iterator_matchingpath()
6200 jump = CMP(SLJIT_GREATER_EQUAL, TMP1, 0, SLJIT_IMM, max); in compile_ref_iterator_matchingpath()
6208 if (max == 0) in compile_ref_iterator_matchingpath()
6264 if (max > 0) in compile_ref_iterator_matchingpath()
6265 …cktrack->topbacktracks, CMP(SLJIT_GREATER_EQUAL, SLJIT_MEM1(STACK_TOP), STACK(1), SLJIT_IMM, max)); in compile_ref_iterator_matchingpath()
6279 else if (max > 0) in compile_ref_iterator_matchingpath()
7805 …common *common, pcre_uchar *cc, pcre_uchar *opcode, pcre_uchar *type, int *max, int *min, pcre_uch… in get_iterator_parameters() argument
7861 *max = GET2(cc, (class_len + IMM2_SIZE)); in get_iterator_parameters()
7866 SLJIT_ASSERT(*max != 0); in get_iterator_parameters()
7869 if (*max == *min) in get_iterator_parameters()
7880 *max = GET2(cc, 0); in get_iterator_parameters()
7909 int max = -1, min = -1; in compile_iterator_matchingpath() local
7922 cc = get_iterator_parameters(common, cc, &opcode, &type, &max, &min, &end); in compile_iterator_matchingpath()
7995 if (opcode == OP_UPTO || (opcode == OP_CRRANGE && max > 0)) in compile_iterator_matchingpath()
7996 jump = CMP(SLJIT_GREATER_EQUAL, TMP1, 0, SLJIT_IMM, max); in compile_iterator_matchingpath()
8023 else if (opcode == OP_CRRANGE && max == 0) in compile_iterator_matchingpath()
8033 CMPTO(SLJIT_LESS, TMP1, 0, SLJIT_IMM, max + 1, label); in compile_iterator_matchingpath()
8075 OP1(SLJIT_MOV, tmp_base, tmp_offset, SLJIT_IMM, max); in compile_iterator_matchingpath()
8088 OP1(SLJIT_MOV, SLJIT_MEM1(SLJIT_SP), POSSESSIVE1, SLJIT_IMM, max); in compile_iterator_matchingpath()
8120 if (max != 0) in compile_iterator_matchingpath()
8122 SLJIT_ASSERT(max - min > 0); in compile_iterator_matchingpath()
8123 OP1(SLJIT_MOV, SLJIT_MEM1(SLJIT_SP), POSSESSIVE1, SLJIT_IMM, max - min); in compile_iterator_matchingpath()
8129 if (max == 0) in compile_iterator_matchingpath()
8604 int max = -1, min = -1; in compile_iterator_backtrackingpath() local
8613 cc = get_iterator_parameters(common, cc, &opcode, &type, &max, &min, NULL); in compile_iterator_backtrackingpath()
8689 if (opcode == OP_CRMINRANGE && max == 0) in compile_iterator_backtrackingpath()
8692 CMPTO(SLJIT_LESS, TMP1, 0, SLJIT_IMM, max + 2, CURRENT_AS(iterator_backtrack)->matchingpath); in compile_iterator_backtrackingpath()