Fix CVS crap
original commit: cc9a1fe584a421095441c48197ad18bb0dae06b7
This commit is contained in:
parent
9c29860de8
commit
a06af27c72
|
@ -73,6 +73,7 @@
|
|||
|
||||
(require (lib "unitsig.ss")
|
||||
(lib "match.ss")
|
||||
(lib "string.ss")
|
||||
"uri-codec-sig.ss")
|
||||
|
||||
(provide uri-codec@)
|
||||
|
@ -225,7 +226,9 @@
|
|||
#f
|
||||
(match (regexp-match-positions key-regexp str start)
|
||||
[((start . end))
|
||||
(vector (form-urlencoded-decode (substring str start end))
|
||||
(vector (let ([s (form-urlencoded-decode (substring str start end))])
|
||||
(string-lowercase! s)
|
||||
(string->symbol s))
|
||||
(add1 end))]
|
||||
[#f #f])))
|
||||
(define (next-value str start)
|
||||
|
@ -245,16 +248,16 @@
|
|||
[#f
|
||||
(vector (cons key "") (string-length str))])]
|
||||
[#f #f]))
|
||||
(let loop ((start 0)
|
||||
(end (string-length str))
|
||||
(alist '()))
|
||||
(let loop ([start 0]
|
||||
[end (string-length str)]
|
||||
[make-alist (lambda (x) x)])
|
||||
(cond
|
||||
[(>= start end) alist]
|
||||
[(>= start end) (make-alist '())]
|
||||
[else
|
||||
(match (next-pair str start)
|
||||
[#(pair next-start)
|
||||
(loop next-start end (cons pair alist))]
|
||||
[#f alist])])))
|
||||
(loop next-start end (lambda (x) (make-alist (cons pair x))))]
|
||||
[#f (make-alist '())])])))
|
||||
|
||||
))
|
||||
)
|
||||
|
|
Loading…
Reference in New Issue
Block a user