Function: emerge-count-matches-string

emerge-count-matches-string is a byte-compiled function defined in emerge.el.gz.

Signature

(emerge-count-matches-string STRING REGEXP)

Documentation

Return the number of matches in STRING for REGEXP.

Source Code

;; Defined in /usr/src/emacs/lisp/vc/emerge.el.gz
(defun emerge-count-matches-string (string regexp)
  "Return the number of matches in STRING for REGEXP."
  (let ((i 0)
	(count 0))
    (while (string-match regexp string i)
      (setq count (1+ count))
      (setq i (match-end 0)))
    count))