Lines Matching defs:replacement
183 replacement points to the replacement string
184 rlength length of replacement string
222 pcre2_match_context *mcontext, PCRE2_SPTR replacement, PCRE2_SIZE rlength,
258 PCRE2_UNSET, so as not to imply an offset in the replacement. */
263 /* Validate length and find the end of the replacement. A NULL replacement of
266 if (replacement == NULL)
269 replacement = (PCRE2_SPTR)"";
272 if (rlength == PCRE2_ZERO_TERMINATED) rlength = PRIV(strlen)(replacement);
273 repend = replacement + rlength;
343 /* Check UTF replacement string if necessary. */
348 rc = PRIV(valid_utf)(replacement, rlength, &(match_data->startchar));
371 /* Copy up to the start offset, unless only the replacement is required. */
492 /* Process the replacement string. If the entire replacement is literal, just
495 ptr = replacement;
501 /* Within a non-literal replacement, which must be scanned character by
515 if (ptrstackptr == 0) break; /* End of replacement string */
913 } /* End of loop for scanning the replacement. */
915 /* The replacement has been copied to the output, or its size has been
917 replacement. */
1005 *blength = (PCRE2_SIZE)(ptr - replacement);