no need for special regexp-quote

svn: r4934
This commit is contained in:
Eli Barzilay 2006-11-23 10:08:23 +00:00
parent 6fbc2dc27f
commit 698a9fec23

View File

@ -9,7 +9,7 @@
(provide (all-from (lib "list.ss")))
(require (lib "etc.ss"))
(provide (all-from (lib "etc.ss")))
(require (all-except (lib "string.ss") regexp-quote))
(require (all-except (lib "string.ss")))
(provide (all-from (lib "string.ss")))
;; ----------------------------------------------------------------------------
@ -591,12 +591,6 @@
(and (apply pred? (car l) (map car rest))
(mapf (cdr l) (map cdr rest)))))]))
;;>> (regexp-quote string)
;;> The same as `regexp-quote' from mzlib/string, but faster.
(define* regexp-quote
(let ([re (regexp "[][*?+|().\\$^-]")])
(lambda (s) (regexp-replace* re s "\\\\&"))))
;;>> (with-output-to-string thunk)
;;> Run `thunk' collecting generated output into a string.
(define* (with-output-to-string thunk)