projects
/
mit-scheme.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
895d98b
)
Change the default of 'copy? in string-trimmer to #f.
author
Chris Hanson
<org/chris-hanson/cph>
Sun, 5 Mar 2017 00:20:27 +0000
(16:20 -0800)
committer
Chris Hanson
<org/chris-hanson/cph>
Sun, 5 Mar 2017 00:20:27 +0000
(16:20 -0800)
src/runtime/ustring.scm
patch
|
blob
|
history
diff --git
a/src/runtime/ustring.scm
b/src/runtime/ustring.scm
index c13edc268d149c0e3b756ede0e193f21deaeaccf..eb8378c0d237c5239cdb3676ac6d9e23d255b212 100644
(file)
--- a/
src/runtime/ustring.scm
+++ b/
src/runtime/ustring.scm
@@
-1312,7
+1312,7
@@
USA.
(define-deferred string-trimmer-options
(keyword-option-parser
(list (list 'where '(leading trailing both) 'both)
- (list 'copy? boolean? #
t
)
+ (list 'copy? boolean? #
f
)
(list 'trim-char? unary-procedure? char-whitespace?))))
(define (string-padder . options)
@@
-1541,6
+1541,7
@@
USA.
(define (legacy-string-trimmer where)
(lambda (string #!optional char-set)
((string-trimmer 'where where
+ 'copy? #t
'trim-char?
(char-set-predicate
(if (default-object? char-set)