Details
-
Type:
Enhancement
-
Status:
Closed
-
Resolution: Completed
-
Affects Version/s: None
-
Fix Version/s: Release 1.2
-
Component/s: None
-
Labels:None
-
Approval:Ok
Description
Promote the following from clojure.contrib.string to a new namespace, clojure.string
- join
- chop
- chomp
- split (fix perf, return vector)
- replace (subsumes all replace- variants)
- replace-first (subsumes all replace-first- variants)
- reverse
- capitalize
- upper-case
- lower-case
- trim
Where necessary, change fns to take the string as first arg
Issues raised on mailing list:
- perf test, particularly join
- design guidelines for when nil works
- arg order / point-free style?
- trim options
- trim modifiers at end
Converted from http://www.assembla.com/spaces/clojure/tickets/359
Attachments:
0359-promote-string.patch - https://www.assembla.com/spaces/clojure/documents/aColQyBFar36SeeJe5cbCb/download/aColQyBFar36SeeJe5cbCb
0359-promote-string-take-2.patch - https://www.assembla.com/spaces/clojure/documents/cggc9eBOOr34uaeJe5cbCb/download/cggc9eBOOr34uaeJe5cbCb
0359-promote-string-take-3.patch - https://www.assembla.com/spaces/clojure/documents/dZkYPeB08r36cLeJe5cbLr/download/dZkYPeB08r36cLeJe5cbLr