Lines Matching refs:length

131 pchars(const pcre_uchar *p, int length, BOOL is_subject, match_data *md)  in pchars()  argument
135 if (is_subject && length > md->end_subject - p) length = md->end_subject - p; in pchars()
136 while (length-- > 0) in pchars()
165 match_ref(int offset, register PCRE_PUCHAR eptr, int length, match_data *md, in match_ref() argument
180 pchars(eptr, length, TRUE, md); in match_ref()
183 pchars(p, length, FALSE, md); in match_ref()
190 if (length < 0) return -1; in match_ref()
210 PCRE_PUCHAR endptr = p + length; in match_ref()
236 while (length-- > 0) in match_ref()
254 while (length-- > 0) in match_ref()
592 #define length frame->Xlength in match() macro
648 int length; in match()
2715 length = (md->jscript_compat)? 0 : -1; in match()
2723 length = md->offset_vector[offset+1] - md->offset_vector[offset]; in match()
2737 length = (md->jscript_compat)? 0 : -1; in match()
2739 length = md->offset_vector[offset+1] - md->offset_vector[offset]; in match()
2769 if ((length = match_ref(offset, eptr, length, md, caseless)) < 0) in match()
2771 if (length == -2) eptr = md->end_subject; /* Partial match */ in match()
2775 eptr += length; in match()
2785 if (length == 0) continue; in match()
2786 if (length < 0 && min == 0) continue; in match()
2795 if ((slength = match_ref(offset, eptr, length, md, caseless)) < 0) in match()
2819 if ((slength = match_ref(offset, eptr, length, md, caseless)) < 0) in match()
2838 if ((slength = match_ref(offset, eptr, length, md, caseless)) < 0) in match()
2858 eptr -= length; in match()
3231 length = 1; in match()
3233 GETCHARLEN(fc, ecode, length); in match()
3234 if (length > md->end_subject - eptr) in match()
3239 while (length-- > 0) if (*ecode++ != UCHAR21INC(eptr)) RRETURN(MATCH_NOMATCH); in match()
3268 length = 1; in match()
3270 GETCHARLEN(fc, ecode, length); in match()
3293 ecode += length; in match()
3405 length = 1; in match()
3407 GETCHARLEN(fc, ecode, length); in match()
3408 ecode += length; in match()
3413 if (length > 1) in match()
3425 if (eptr <= md->end_subject - length && in match()
3426 memcmp(eptr, charptr, IN_UCHARS(length)) == 0) eptr += length; in match()
3448 if (eptr <= md->end_subject - length && in match()
3449 memcmp(eptr, charptr, IN_UCHARS(length)) == 0) eptr += length; in match()
3469 if (eptr <= md->end_subject - length && in match()
3470 memcmp(eptr, charptr, IN_UCHARS(length)) == 0) eptr += length; in match()
3493 eptr -= length; in match()
6270 #undef length
6348 PCRE_SPTR subject, int length, int start_offset, int options, int *offsets, in pcre_exec() argument
6353 PCRE_SPTR16 subject, int length, int start_offset, int options, int *offsets, in pcre_exec()
6358 PCRE_SPTR32 subject, int length, int start_offset, int options, int *offsets, in pcre_exec()
6400 if (re == NULL && extra_data == NULL && subject == NULL && length == -999 && in pcre_exec()
6414 if (length < 0) return PCRE_ERROR_BADLENGTH; in pcre_exec()
6415 if (start_offset < 0 || start_offset > length) return PCRE_ERROR_BADOFFSET; in pcre_exec()
6444 int errorcode = PRIV(valid_utf)((PCRE_PUCHAR)subject, length, &erroroffset); in pcre_exec()
6464 if (start_offset > 0 && start_offset < length && in pcre_exec()
6483 rc = PRIV(jit_exec)(extra_data, (const pcre_uchar *)subject, length, in pcre_exec()
6556 md->end_subject = md->start_subject + length; in pcre_exec()