Lines Matching refs:subject
171 /* This function applies a compiled re to a subject string and creates a new
177 subject points to the subject string
178 length length of subject string (may contain binary zeros)
179 start_offset where to start in the subject string
220 pcre2_substitute(const pcre2_code *code, PCRE2_SPTR subject, PCRE2_SIZE length,
275 /* Check for using a match that has already happened. Note that the subject
326 scb.input = subject;
330 /* A NULL subject of zero length is treated as an empty string. */
332 if (subject == NULL)
335 subject = (PCRE2_SPTR)"";
338 /* Find length of zero-terminated subject */
341 length = subject? PRIV(strlen)(subject) : 0;
362 /* Error if the start match offset is greater than the length of the subject. */
373 if (!replacement_only) CHECKMEMCPY(subject, start_offset);
389 else rc = pcre2_match(code, subject, length, start_offset, options|goptions,
398 subject, breaks the global loop. Otherwise, advance the starting point by one
414 if (subject[start_offset-1] == CHAR_CR &&
418 subject[start_offset] == CHAR_LF)
426 while (start_offset < length && (subject[start_offset] & 0xc0) == 0x80)
430 (subject[start_offset] & 0xfc00) == 0xdc00)
439 if (!replacement_only) CHECKMEMCPY(subject + save_start, fraglength);
445 or start before the current point in the subject are not supported. */
488 if (!replacement_only) CHECKMEMCPY(subject + start_offset, fraglength);
773 subptr = subject + ovector[group*2];
774 subptrend = subject + ovector[group*2 + 1];
935 if (!replacement_only) CHECKMEMCPY(subject + ovector[0], oldlength);
945 offset to point to the rest of the subject string. If we re-used an existing
957 /* Copy the rest of the subject unless not required, and terminate the output
963 CHECKMEMCPY(subject + start_offset, fraglength);