Ticket #699: make-uri-for-uri-generic-and-uri-common.patch
File make-uri-for-uri-generic-and-uri-common.patch, 1.9 KB (added by , 13 years ago) |
---|
-
uri-generic/trunk/uri-generic.scm
40 40 (provide 'uri-generic) 41 41 42 42 (module uri-generic 43 (uri-reference update-uri update-authority43 (uri-reference make-uri update-uri update-authority 44 44 uri-reference? uri-auth uri-authority uri-scheme uri-path uri-query 45 45 uri-fragment uri-host uri-port uri-username uri-password 46 46 authority? authority-host authority-port … … 134 134 (make-URI scheme: scheme path: path query: query fragment: fragment 135 135 authority: final-auth))) key/values)))) 136 136 137 (define (make-uri . key/values) 138 (apply update-uri (make-URI) key/values)) 139 137 140 ;; Character classes 138 141 139 142 (define (hexdigit-char? c) (and (char? c) (char-set-contains? char-set:hex-digit c))) -
uri-common/trunk/uri-common.scm
42 42 (module uri-common 43 43 (uri-reference uri-reference? absolute-uri absolute-uri? relative-ref? 44 44 uri->uri-generic uri-generic->uri uri->list 45 update-uri uri? uri-scheme uri-username uri-password45 make-uri update-uri uri? uri-scheme uri-username uri-password 46 46 uri-host uri-port uri-path uri-query uri-fragment 47 47 uri->string form-urlencode form-urldecode form-urlencoded-separator 48 48 uri-relative-to uri-relative-from … … 215 215 (URI-common-fragment-set! uc fragment)) 216 216 uc)))) 217 217 218 (define (make-uri . key/values) 219 (apply update-uri (make-URI-common generic: (generic:make-uri)) key/values)) 220 218 221 (define uri-encode-string generic:uri-encode-string) 219 222 (define uri-decode-string generic:uri-decode-string) 220 223 (define char-set:gen-delims generic:char-set:gen-delims)