mirror of
https://github.com/ashinn/chibi-scheme.git
synced 2025-05-21 14:49:18 +02:00
s/string-cursor-backward/string-cursor-back/g
This commit is contained in:
parent
19f6ea6054
commit
f1a2a8a8e0
3 changed files with 3 additions and 3 deletions
|
@ -192,7 +192,7 @@
|
||||||
(define (mime-decode-header str)
|
(define (mime-decode-header str)
|
||||||
(let* ((end (string-cursor-end str))
|
(let* ((end (string-cursor-end str))
|
||||||
;; need at least 8 chars: "=?Q?X??="
|
;; need at least 8 chars: "=?Q?X??="
|
||||||
(limit (string-cursor-backward end 8))
|
(limit (string-cursor-back end 8))
|
||||||
(start (string-cursor-start str)))
|
(start (string-cursor-start str)))
|
||||||
(let lp ((i start) (from start) (res '()))
|
(let lp ((i start) (from start) (res '()))
|
||||||
(cond
|
(cond
|
||||||
|
|
|
@ -183,7 +183,7 @@
|
||||||
(string-cursor-forward path j 2)
|
(string-cursor-forward path j 2)
|
||||||
(cons s res)))))
|
(cons s res)))))
|
||||||
((eqv? #\. (string-cursor-ref path (string-cursor-next path j)))
|
((eqv? #\. (string-cursor-ref path (string-cursor-next path j)))
|
||||||
(if (or (string-cursor>=? j (string-cursor-backward path end 2))
|
(if (or (string-cursor>=? j (string-cursor-back path end 2))
|
||||||
(eqv? #\/ (string-cursor-ref
|
(eqv? #\/ (string-cursor-ref
|
||||||
path
|
path
|
||||||
(string-cursor-forward path j 2))))
|
(string-cursor-forward path j 2))))
|
||||||
|
|
|
@ -141,7 +141,7 @@
|
||||||
(string-append s (make-string (- precision digits -1) #\0)))
|
(string-append s (make-string (- precision digits -1) #\0)))
|
||||||
(else
|
(else
|
||||||
(let* ((last
|
(let* ((last
|
||||||
(string-cursor-backward s end (- digits precision 1)))
|
(string-cursor-back s end (- digits precision 1)))
|
||||||
(res (substring-cursor s (string-cursor-start s) last)))
|
(res (substring-cursor s (string-cursor-start s) last)))
|
||||||
(if (and
|
(if (and
|
||||||
(string-cursor<? last end)
|
(string-cursor<? last end)
|
||||||
|
|
Loading…
Add table
Reference in a new issue