Function: evil-concat-charsets
evil-concat-charsets is a byte-compiled function defined in
evil-common.el.
Signature
(evil-concat-charsets &rest SETS)
Documentation
Concatenate character sets.
A character set is the part between [ and ] in a regular expression. If any character set is complemented, the result is also complemented.
Source Code
;; Defined in ~/.emacs.d/elpa/evil-20251108.138/evil-common.el
(defun evil-concat-charsets (&rest sets)
"Concatenate character sets.
A character set is the part between [ and ] in a regular expression.
If any character set is complemented, the result is also complemented."
(let ((bracket "") (complement "") (hyphen "") result)
(dolist (set sets)
(when (string-match-p "^\\^" set)
(setq set (substring set 1)
complement "^"))
(when (string-match-p "^]" set)
(setq set (substring set 1)
bracket "]"))
(when (string-match-p "^-" set)
(setq set (substring set 1)
hyphen "-"))
(setq result (concat result set)))
(format "%s%s%s%s" complement bracket hyphen result)))