Function: artist-string-split
artist-string-split is a byte-compiled function defined in
artist.el.gz.
Signature
(artist-string-split STR R)
Documentation
Split string STR at occurrences of regexp R, returning a list of strings.
Source Code
;; Defined in /usr/src/emacs/lisp/textmodes/artist.el.gz
(defun artist-string-split (str r)
"Split string STR at occurrences of regexp R, returning a list of strings."
(let ((res nil)
(start 0)
(match-pos 0))
(while (setq match-pos (string-match r str start))
(setq res (cons (copy-sequence (substring str start match-pos)) res))
(setq start (match-end 0)))
(if (null res)
(list str)
(if (< (match-end 0) (- (length str) 1))
(setq res (cons (substring str (match-end 0) (length str)) res)))
(reverse res))))