Changeset 19497 in project
- Timestamp:
- 08/18/10 01:33:06 (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
release/3/content-type/trunk/content-type.scm
r13256 r19497 40 40 41 41 (define content-type-make 42 (let* ((rxstr (format #f (cond (irregex-feature? "^(Content-type:)?\\s*(~A)\\s*/\\s*(~A)~A") 43 (pcre-feature? "\\s*(~A)\\s*/\\s*(~A)~A")) 44 type type pars)) 45 (expr (regexp rxstr #t))) 42 (let ((expr (regexp (format #f "^(\\s*Content-type:)?\\s*(~A)\\s*/\\s*(~A)~A" type type pars)))) 46 43 (lambda (line) 47 44 (and-let* ((match (string-match expr line))) 48 45 (call-with-current-continuation 49 46 (lambda (cont) 50 (let ((match 1(cddr match)))51 (make-content-type (format #f "~(~A~)" (car match 1)) (format #f "~(~A~)" (cadr match1))52 (make-content-type-params cont (caddr match 1))))))))))47 (let ((match (cddr match))) 48 (make-content-type (format #f "~(~A~)" (car match)) (format #f "~(~A~)" (cadr match)) 49 (make-content-type-params cont (caddr match)))))))))) 53 50 54 51 (define make-content-type-params
Note: See TracChangeset
for help on using the changeset viewer.