| The Modular DocBook Stylesheets | ||
|---|---|---|
| Prev | DSSSL Library | Next |
(repl-substring string target repl pos)
Replaces target with repl in string at pos.
Norman Walsh, <norm@berkshire.net>
(define (repl-substring string target repl pos)
;; Replace substring in a string
(let ((matches (repl-substring? string target pos)))
(if matches
(string-append
(substring string 0 pos)
repl
(substring string
(+ pos (string-length target))
(string-length string)))
string)))| Prev | Home | Next |
| repl-substring-list? | Up | repl-substring? |
Copyright © 1997, 1998 Norman Walsh