Function: rx--translate-counted-repetition
rx--translate-counted-repetition is a byte-compiled function defined
in rx.el.gz.
Signature
(rx--translate-counted-repetition MIN-COUNT MAX-COUNT BODY)
Source Code
;; Defined in /usr/src/emacs/lisp/emacs-lisp/rx.el.gz
(defun rx--translate-counted-repetition (min-count max-count body)
(let ((operand (rx--translate-seq body)))
(if (car operand)
(cons (append
(rx--atomic-regexp operand)
(list (concat "\\{"
(number-to-string min-count)
(cond ((null max-count) ",")
((< min-count max-count)
(concat "," (number-to-string max-count))))
"\\}")))
t)
operand)))