Function: evil-ex-make-substitute-pattern
evil-ex-make-substitute-pattern is a byte-compiled function defined in
evil-search.el.
Signature
(evil-ex-make-substitute-pattern REGEXP FLAGS)
Documentation
Create a PATTERN for substitution with FLAGS.
This function respects the values of evil-ex-substitute-case
and evil-ex-substitute-global.
Source Code
;; Defined in ~/.emacs.d/elpa/evil-20251108.138/evil-search.el
;; a pattern
(defun evil-ex-make-substitute-pattern (regexp flags)
"Create a PATTERN for substitution with FLAGS.
This function respects the values of `evil-ex-substitute-case'
and `evil-ex-substitute-global'."
(evil-ex-make-pattern
regexp
(cond ((memq ?i flags) 'insensitive)
((memq ?I flags) 'sensitive)
((not evil-ex-substitute-case) evil-ex-search-case)
(t evil-ex-substitute-case))
(if (memq ?g flags)
(not evil-ex-substitute-global)
evil-ex-substitute-global)))