Function: rx--complement-intervals
rx--complement-intervals is a byte-compiled function defined in
rx.el.gz.
Signature
(rx--complement-intervals INTERVALS)
Documentation
Complement of the interval list INTERVALS.
Source Code
;; Defined in /usr/src/emacs/lisp/emacs-lisp/rx.el.gz
(defun rx--complement-intervals (intervals)
"Complement of the interval list INTERVALS."
(let ((compl nil)
(c 0))
(dolist (iv intervals)
(when (< c (car iv))
(push (cons c (1- (car iv))) compl))
(setq c (1+ (cdr iv))))
(when (< c (max-char))
(push (cons c (max-char)) compl))
(nreverse compl)))