What to use instead of str-utils functions?

759 views Asked by At

In http://clojure.github.com/clojure-contrib/str-utils-api.html it is written that

String utilities for Clojure
Deprecated since clojure-contrib version 1.2

but it is not written what should I use instead. There are convenient functions like "chomp" or "re-partition" there.

What should I do to port old clojure v1.1 code to the recent version? Should I just copy functions from clojure-contrib directly to the source code?

3

There are 3 answers

0
number23_cn On

yes, I think clojure/core string and re library is better for you.

2
Ankur On

You can use clojure.contrib.string instead of str-utils contrib

(use 'clojure.contrib.string)
0
Alex Taggart On

Some of the functionality is in the clojure.string namespace. E.g., chomp exists as trim-newline, str-join is join.