Function: evil-match-substitute-replacement

evil-match-substitute-replacement is a byte-compiled function defined in evil-common.el.

Signature

(evil-match-substitute-replacement REPLACEMENT &optional FIXEDCASE STRING)

Documentation

Return REPLACEMENT as it will be inserted by evil-replace-match.

If REPLACEMENT is an expression it will be evaluated to compute the replacement text first.

Source Code

;; Defined in ~/.emacs.d/elpa/evil-20251108.138/evil-common.el
(defun evil-match-substitute-replacement (replacement &optional fixedcase string)
  "Return REPLACEMENT as it will be inserted by `evil-replace-match'.
If REPLACEMENT is an expression it will be evaluated to compute the
replacement text first."
  (match-substitute-replacement
   (if (stringp replacement)
       replacement
     (funcall (car replacement)
              (cdr replacement)
              0))
   fixedcase nil string))