Lines Matching refs:length

437   int length;  member
930 sljit_sw length = end - begin; in detect_repeat() local
948 if (next_end - next != length || memcmp(begin, next, IN_UCHARS(length)) != 0) in detect_repeat()
967 …if (next_end - next != (length + 2 + LINK_SIZE) || memcmp(begin, next + 2 + LINK_SIZE, IN_UCHARS(l… in detect_repeat()
976 if (next_end - next == (length + 1) && memcmp(begin, next + 1, IN_UCHARS(length)) == 0) in detect_repeat()
1244 int length = 0; in get_framesize() local
1264 possessive = length = (common->capture_last_ptr != 0) ? 5 : 3; in get_framesize()
1280 length += 2; in get_framesize()
1293 length += 2; in get_framesize()
1305 length += 2; in get_framesize()
1310 length += 2; in get_framesize()
1315 length += 2; in get_framesize()
1328 length += 2; in get_framesize()
1331 length += 3; in get_framesize()
1416 if (SLJIT_UNLIKELY(possessive == length)) in get_framesize()
1419 if (length > 0) in get_framesize()
1420 return length + 1; in get_framesize()
2167 static SLJIT_INLINE void reset_ovector(compiler_common *common, int length) in reset_ovector() argument
2174 SLJIT_ASSERT(length > 1); in reset_ovector()
2177 if (length < 8) in reset_ovector()
2179 for (i = 1; i < length; i++) in reset_ovector()
2185 OP1(SLJIT_MOV, SLJIT_R2, 0, SLJIT_IMM, length - 1); in reset_ovector()
2193 static SLJIT_INLINE void do_reset_match(compiler_common *common, int length) in do_reset_match() argument
2199 SLJIT_ASSERT(length > 1); in do_reset_match()
2201 if (length > 2) in do_reset_match()
2203 if (length < 8) in do_reset_match()
2205 for (i = 2; i < length; i++) in do_reset_match()
2211 OP1(SLJIT_MOV, STACK_TOP, 0, SLJIT_IMM, length - 2); in do_reset_match()
4253 int i, byte, length = 0; in check_class_ranges() local
4269 if (length >= MAX_RANGE_SIZE) in check_class_ranges()
4271 ranges[length] = i; in check_class_ranges()
4272 length++; in check_class_ranges()
4282 if (length >= MAX_RANGE_SIZE) in check_class_ranges()
4284 ranges[length] = 256; in check_class_ranges()
4285 length++; in check_class_ranges()
4288 if (length < 0 || length > 4) in check_class_ranges()
4295 if (length == 0 && bit == 0) in check_class_ranges()
4298 switch(length) in check_class_ranges()
4640 if (context->length >= 4) in byte_sequence_compare()
4641 OP1(SLJIT_MOV_SI, TMP1, 0, SLJIT_MEM1(STR_PTR), -context->length); in byte_sequence_compare()
4642 else if (context->length >= 2) in byte_sequence_compare()
4643 OP1(SLJIT_MOV_UH, TMP1, 0, SLJIT_MEM1(STR_PTR), -context->length); in byte_sequence_compare()
4646 OP1(SLJIT_MOV_UB, TMP1, 0, SLJIT_MEM1(STR_PTR), -context->length); in byte_sequence_compare()
4649 if (context->length >= 4) in byte_sequence_compare()
4650 OP1(SLJIT_MOV_SI, TMP1, 0, SLJIT_MEM1(STR_PTR), -context->length); in byte_sequence_compare()
4653 OP1(MOV_UCHAR, TMP1, 0, SLJIT_MEM1(STR_PTR), -context->length); in byte_sequence_compare()
4655 OP1(MOV_UCHAR, TMP1, 0, SLJIT_MEM1(STR_PTR), -context->length); in byte_sequence_compare()
4669 context->length -= IN_UCHARS(1); in byte_sequence_compare()
4686 …if (context->ucharptr >= 4 || context->length == 0 || (context->ucharptr == 2 && context->length =… in byte_sequence_compare()
4688 if (context->ucharptr >= 2 || context->length == 0) in byte_sequence_compare()
4691 if (context->length >= 4) in byte_sequence_compare()
4692 OP1(SLJIT_MOV_SI, context->sourcereg, 0, SLJIT_MEM1(STR_PTR), -context->length); in byte_sequence_compare()
4693 else if (context->length >= 2) in byte_sequence_compare()
4694 OP1(SLJIT_MOV_UH, context->sourcereg, 0, SLJIT_MEM1(STR_PTR), -context->length); in byte_sequence_compare()
4696 else if (context->length >= 1) in byte_sequence_compare()
4697 OP1(SLJIT_MOV_UB, context->sourcereg, 0, SLJIT_MEM1(STR_PTR), -context->length); in byte_sequence_compare()
4733 if (context->length >= 1) in byte_sequence_compare()
4734 OP1(MOV_UCHAR, context->sourcereg, 0, SLJIT_MEM1(STR_PTR), -context->length); in byte_sequence_compare()
5288 int length; in compile_char1_matchingpath() local
5667 length = 1; in compile_char1_matchingpath()
5669 if (common->utf && HAS_EXTRALEN(*cc)) length += GET_EXTRALEN(*cc); in compile_char1_matchingpath()
5673 OP2(SLJIT_ADD, STR_PTR, 0, STR_PTR, 0, SLJIT_IMM, IN_UCHARS(length)); in compile_char1_matchingpath()
5676 context.length = IN_UCHARS(length); in compile_char1_matchingpath()
5698 return cc + length; in compile_char1_matchingpath()
5707 return cc + length; in compile_char1_matchingpath()
5712 return cc + length; in compile_char1_matchingpath()
5717 length = 1; in compile_char1_matchingpath()
5745 GETCHARLEN(c, cc, length); in compile_char1_matchingpath()
5773 return cc + length; in compile_char1_matchingpath()
5830 length = GET(cc, 0); in compile_char1_matchingpath()
5831 if (length == 0) in compile_char1_matchingpath()
5838 OP1(SLJIT_MOV, TMP2, 0, SLJIT_IMM, length); in compile_char1_matchingpath()
5849 OP2(SLJIT_SUB, STR_PTR, 0, STR_PTR, 0, SLJIT_IMM, IN_UCHARS(length)); in compile_char1_matchingpath()
5868 context.length = 0; in compile_charn_matchingpath()
5902 context.length += IN_UCHARS(size); in compile_charn_matchingpath()
5904 while (size > 0 && context.length <= 128); in compile_charn_matchingpath()
5907 if (context.length > 0) in compile_charn_matchingpath()
5910 OP2(SLJIT_ADD, STR_PTR, 0, STR_PTR, 0, SLJIT_IMM, context.length); in compile_charn_matchingpath()
5917 …equence_compare(common, *cc == OP_CHARI, cc + 1, &context, backtracks); while (context.length > 0); in compile_charn_matchingpath()
10412 int length, int start_offset, int options, int *offsets, int offset_count) in PRIV()
10435 arguments.end = subject + length; in PRIV()
10486 PCRE_SPTR subject, int length, int start_offset, int options, in pcre_jit_exec() argument
10491 PCRE_SPTR16 subject, int length, int start_offset, int options, in pcre_jit_exec()
10496 PCRE_SPTR32 subject, int length, int start_offset, int options, in pcre_jit_exec()
10528 arguments.end = subject_ptr + length; in pcre_jit_exec()