Function: dictionary-split-string
dictionary-split-string is a byte-compiled function defined in
dictionary.el.gz.
Signature
(dictionary-split-string STRING)
Documentation
Split STRING consisting of space-separated words into elements.
This function knows about the special meaning of quotes (")
Source Code
;; Defined in /usr/src/emacs/lisp/net/dictionary.el.gz
(defun dictionary-split-string (string)
"Split STRING consisting of space-separated words into elements.
This function knows about the special meaning of quotes (\")"
(let ((list))
(while (and string (> (length string) 0))
(let ((search "\\(\\s-+\\)")
(start 0))
(if (= (aref string 0) ?\")
(setq search "\\(\"\\)\\s-*"
start 1))
(if (string-match search string start)
(progn
(setq list (cons (substring string start (- (match-end 1) 1)) list)
string (substring string (match-end 0))))
(setq list (cons string list)
string nil))))
(nreverse list)))