What to use instead of str-utils functions?

At http://clojure.github.com/clojure-contrib/str-utils-api.html it says that

String utilities for Clojure
Deprecated since clojure-contrib version 1.2

but it is not written what I should use instead. Convenient features include chomp or re-partition.

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

+5
source share
3 answers

Some of the functions are in the clojure.string namespace. For example, chompexists as trim-newline, str-join- join.

+2
source

clojure.contrib.string str-utils contrib

(use 'clojure.contrib.string)
+1

, , clojure/core string re library .

-1
source

All Articles