Function: eww--string-count-words
eww--string-count-words is a byte-compiled function defined in
eww.el.gz.
Signature
(eww--string-count-words STRING)
Documentation
Return the number of words in STRING.
Source Code
;; Defined in /usr/src/emacs/lisp/net/eww.el.gz
(defun eww--string-count-words (string)
"Return the number of words in STRING."
(let ((start 0)
(count 0))
(while (string-match split-string-default-separators string start)
(when (< start (match-beginning 0))
(incf count))
(setq start (match-end 0)))
(when (length> string (1+ start))
(incf count))
count))