Function: kfill:negate-string
kfill:negate-string is a byte-compiled function defined in kfill.el.
Signature
(kfill:negate-string STRING)
Source Code
;; Defined in ~/.emacs.d/elpa/hyperbole-20260414.325/kotl/kfill.el
(defun kfill:negate-string (string)
(let ((len (length string))
(i 0) string-list)
(setq string-list (cons "\\(" nil))
(while (< i len)
(setq string-list
(cons (if (= i (1- len)) "" "\\|")
(cons "]"
(cons (substring string i (1+ i))
(cons "[^"
(cons (regexp-quote (substring string 0 i))
string-list)))))
i (1+ i)))
(setq string-list (cons "\\)" string-list))
(apply 'concat (nreverse string-list))))