Lines Matching refs:length

507   int length;  member
1622 sljit_sw length = end - begin; in detect_repeat() local
1640 if (next_end - next != length || memcmp(begin, next, IN_UCHARS(length)) != 0) in detect_repeat()
1659 …if (next_end - next != (length + 2 + LINK_SIZE) || memcmp(begin, next + 2 + LINK_SIZE, IN_UCHARS(l… in detect_repeat()
1668 if (next_end - next == (length + 1) && memcmp(begin, next + 1, IN_UCHARS(length)) == 0) in detect_repeat()
1938 int length = 0; in get_framesize() local
1958 possessive = length = (common->capture_last_ptr != 0) ? 5 : 3; in get_framesize()
1974 length += 2; in get_framesize()
1988 length += 2; in get_framesize()
2000 length += 2; in get_framesize()
2005 length += 2; in get_framesize()
2010 length += 2; in get_framesize()
2023 length += 2; in get_framesize()
2026 length += 3; in get_framesize()
2114 if (SLJIT_UNLIKELY(possessive == length)) in get_framesize()
2117 if (length > 0) in get_framesize()
2118 return length + 1; in get_framesize()
2325 int length = 1; in get_recurse_data_length() local
2365 length++; in get_recurse_data_length()
2384 length++; in get_recurse_data_length()
2391 length += 2; in get_recurse_data_length()
2395 length++; in get_recurse_data_length()
2401 length += 2 + 2; in get_recurse_data_length()
2411 length++; in get_recurse_data_length()
2417 length++; in get_recurse_data_length()
2426 length += 2; in get_recurse_data_length()
2435 length += 2; in get_recurse_data_length()
2444 length++; in get_recurse_data_length()
2450 length += 2; in get_recurse_data_length()
2456 length += 2; in get_recurse_data_length()
2469 length += get_class_iterator_size(cc + size); in get_recurse_data_length()
2523 length++; in get_recurse_data_length()
2525 length++; in get_recurse_data_length()
2529 length++; in get_recurse_data_length()
2531 length++; in get_recurse_data_length()
2537 return length; in get_recurse_data_length()
3116 static SLJIT_INLINE void reset_ovector(compiler_common *common, int length) in reset_ovector() argument
3123 SLJIT_ASSERT(length > 1); in reset_ovector()
3126 if (length < 8) in reset_ovector()
3128 for (i = 1; i < length; i++) in reset_ovector()
3136 OP1(SLJIT_MOV, SLJIT_R2, 0, SLJIT_IMM, length - 1); in reset_ovector()
3145 OP1(SLJIT_MOV, SLJIT_R2, 0, SLJIT_IMM, length - 1); in reset_ovector()
3205 static SLJIT_INLINE void do_reset_match(compiler_common *common, int length) in do_reset_match() argument
3211 SLJIT_ASSERT(length > 1); in do_reset_match()
3213 if (length > 2) in do_reset_match()
3215 if (length < 8) in do_reset_match()
3217 for (i = 2; i < length; i++) in do_reset_match()
3225 OP1(SLJIT_MOV, STACK_TOP, 0, SLJIT_IMM, length - 2); in do_reset_match()
3234 OP1(SLJIT_MOV, STACK_TOP, 0, SLJIT_IMM, length - 2); in do_reset_match()
6634 int i, byte, length = 0; in optimize_class_ranges() local
6650 if (length >= MAX_CLASS_RANGE_SIZE) in optimize_class_ranges()
6652 ranges[length] = i; in optimize_class_ranges()
6653 length++; in optimize_class_ranges()
6663 if (length >= MAX_CLASS_RANGE_SIZE) in optimize_class_ranges()
6665 ranges[length] = 256; in optimize_class_ranges()
6666 length++; in optimize_class_ranges()
6669 if (length < 0 || length > 4) in optimize_class_ranges()
6676 if (length == 0 && bit == 0) in optimize_class_ranges()
6679 switch(length) in optimize_class_ranges()
7196 if (context->length >= 4) in byte_sequence_compare()
7197 OP1(SLJIT_MOV_S32, TMP1, 0, SLJIT_MEM1(STR_PTR), -context->length); in byte_sequence_compare()
7198 else if (context->length >= 2) in byte_sequence_compare()
7199 OP1(SLJIT_MOV_U16, TMP1, 0, SLJIT_MEM1(STR_PTR), -context->length); in byte_sequence_compare()
7202 OP1(MOV_UCHAR, TMP1, 0, SLJIT_MEM1(STR_PTR), -context->length); in byte_sequence_compare()
7205 if (context->length >= 4) in byte_sequence_compare()
7206 OP1(SLJIT_MOV_S32, TMP1, 0, SLJIT_MEM1(STR_PTR), -context->length); in byte_sequence_compare()
7209 OP1(MOV_UCHAR, TMP1, 0, SLJIT_MEM1(STR_PTR), -context->length); in byte_sequence_compare()
7211 OP1(MOV_UCHAR, TMP1, 0, SLJIT_MEM1(STR_PTR), -context->length); in byte_sequence_compare()
7225 context->length -= IN_UCHARS(1); in byte_sequence_compare()
7242 …if (context->ucharptr >= 4 || context->length == 0 || (context->ucharptr == 2 && context->length =… in byte_sequence_compare()
7244 if (context->ucharptr >= 2 || context->length == 0) in byte_sequence_compare()
7247 if (context->length >= 4) in byte_sequence_compare()
7248 OP1(SLJIT_MOV_S32, context->sourcereg, 0, SLJIT_MEM1(STR_PTR), -context->length); in byte_sequence_compare()
7249 else if (context->length >= 2) in byte_sequence_compare()
7250 OP1(SLJIT_MOV_U16, context->sourcereg, 0, SLJIT_MEM1(STR_PTR), -context->length); in byte_sequence_compare()
7252 else if (context->length >= 1) in byte_sequence_compare()
7253 OP1(SLJIT_MOV_U8, context->sourcereg, 0, SLJIT_MEM1(STR_PTR), -context->length); in byte_sequence_compare()
7289 if (context->length >= 1) in byte_sequence_compare()
7290 OP1(MOV_UCHAR, context->sourcereg, 0, SLJIT_MEM1(STR_PTR), -context->length); in byte_sequence_compare()
7939 int length; in compile_simple_assertion_matchingpath() local
8178 length = GET(cc, 0); in compile_simple_assertion_matchingpath()
8179 if (length == 0) in compile_simple_assertion_matchingpath()
8191 OP1(SLJIT_MOV, TMP3, 0, SLJIT_IMM, length); in compile_simple_assertion_matchingpath()
8201 OP2(SLJIT_SUB, STR_PTR, 0, STR_PTR, 0, SLJIT_IMM, IN_UCHARS(length)); in compile_simple_assertion_matchingpath()
8423 int length; in compile_char1_matchingpath() local
8641 length = 1; in compile_char1_matchingpath()
8643 if (common->utf && HAS_EXTRALEN(*cc)) length += GET_EXTRALEN(*cc); in compile_char1_matchingpath()
8651 OP2(SLJIT_ADD, STR_PTR, 0, STR_PTR, 0, SLJIT_IMM, IN_UCHARS(length)); in compile_char1_matchingpath()
8652 if (length > 1 || (check_str_ptr && common->mode == PCRE2_JIT_COMPLETE)) in compile_char1_matchingpath()
8655 context.length = IN_UCHARS(length); in compile_char1_matchingpath()
8694 return cc + length; in compile_char1_matchingpath()
8701 length = 1; in compile_char1_matchingpath()
8729 GETCHARLEN(c, cc, length); in compile_char1_matchingpath()
8757 return cc + length; in compile_char1_matchingpath()
8834 context.length = 0; in compile_charn_matchingpath()
8868 context.length += IN_UCHARS(size); in compile_charn_matchingpath()
8870 while (size > 0 && context.length <= 128); in compile_charn_matchingpath()
8873 if (context.length > 0) in compile_charn_matchingpath()
8876 OP2(SLJIT_ADD, STR_PTR, 0, STR_PTR, 0, SLJIT_IMM, context.length); in compile_charn_matchingpath()
8883 …equence_compare(common, *cc == OP_CHARI, cc + 1, &context, backtracks); while (context.length > 0); in compile_charn_matchingpath()