Function: preview-parse-counters
preview-parse-counters is a byte-compiled function defined in
preview.el.
Signature
(preview-parse-counters STRING)
Documentation
Extract counter information from STRING.
Source Code
;; Defined in ~/.emacs.d/elpa/auctex-14.1.2/preview.el
(defun preview-parse-counters (string)
"Extract counter information from STRING."
(let ((list preview-parsed-counters) (pos 0))
(while (eq pos (string-match " *\\({\\([^{}]+\\)}{[-0-9]+}\\)" string pos))
(setcdr (or (assoc (match-string 2 string) list)
(car (push (list (match-string 2 string)) list)))
(match-string 1 string))
(setq pos (match-end 1)))
list))