Lines Matching defs:replacement

189     char   *replacement;		/* replacement string */
191 size_t max_sub; /* largest $number in replacement */
458 * Skip $number substitutions when the replacement text contains
463 return match_rule->replacement;
466 * We've got a match. Perform substitution on replacement string.
479 if (mac_parse(match_rule->replacement, dict_pcre_expand,
481 msg_fatal("pcre map %s, line %d: bad replacement syntax",
536 if (match_rule->replacement)
537 myfree((void *) match_rule->replacement);
652 /* dict_pcre_prescan - sanity check $number instances in replacement text */
661 * only if the replacement text contains no $number expression. This way
662 * we can avoid having to scan the replacement text at lookup time.
670 msg_warn("pcre map %s, line %d: non-numeric replacement index \"%s\"",
676 msg_warn("pcre map %s, line %d: out of range replacement index \"%s\"",
771 * An ordinary match rule takes one pattern and replacement text.
786 * Get the replacement text.
791 msg_warn("pcre map %s, line %d: no replacement text: "
795 * Sanity check the $number instances in the replacement text.
826 msg_warn("pcre map %s, line %d: bad replacement syntax: "
832 * Substring replacement not possible with negative regexps.
836 "replacement text: skipping this rule", mapname, lineno);
879 msg_warn("pcre map %s, line %d: out of range replacement index \"%d\": "
898 match_rule->replacement = prescan_context.literal;
900 match_rule->replacement = mystrdup(p);
907 * The IF operator takes one pattern but no replacement text.
956 * The ENDIF operator takes no patterns and no replacement text.