Function: eudc-replace-in-string
eudc-replace-in-string is a byte-compiled function defined in
eudc.el.gz.
Signature
(eudc-replace-in-string STR REGEXP NEWTEXT)
Documentation
Replace all matches in STR for REGEXP with NEWTEXT.
Value is the new string.
Source Code
;; Defined in /usr/src/emacs/lisp/net/eudc.el.gz
(defun eudc-replace-in-string (str regexp newtext)
"Replace all matches in STR for REGEXP with NEWTEXT.
Value is the new string."
(let ((rtn-str "")
(start 0)
match prev-start)
(while (setq match (string-match regexp str start))
(setq prev-start start
start (match-end 0)
rtn-str
(concat rtn-str
(substring str prev-start match)
newtext)))
(concat rtn-str (substring str start))))