[utilities] deprecate gnc:substring-replace-from-to

with jqplot gone, no need to use this function anymore.
This commit is contained in:
Christopher Lam 2020-02-18 21:25:02 +08:00
parent d5729306a0
commit fd76a31104

View File

@ -163,6 +163,7 @@
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
(define-public (gnc:substring-replace-from-to s1 s2 s3 start end-after)
(issue-deprecation-warning "gnc:substring-replace-from-to is deprecated.")
(string-replace-substring
s1 s2 s3 0 (string-length s1) (max 0 (1- start))
(and (positive? end-after) (+ (max 0 (1- start)) (1- end-after)))))