replace-first
.Most of these are motivated by the changes to clojure.string
in 1.8.
contains?
to includes?
and expand input values to include java.lang.CharSequence
.contains-all?
to includes-all?
.contains-any?
to includes-any?
.clojure.string/index-of?
replacing our own implementation.clojure.string/last-index-of?
replacing our own implementation.starts-with?
to include anything implementing java.lang.CharSequence
to match the version in clojure.string
.ends-with?
to include anything implementing java.lang.CharSequence
to match the version in clojure.string
.in
slugnow changes
łto
l`, instead of deleting the character.translate
, used to translate occurrences of certain characters into something else.strip-accents
translated the letter ł
to l
in the cljs version.title-case
, it was duplicating clojure.string/capitalize
.pascal-case
docstring. Examples were correct, prose was wrong.char-at
, which wraps the native String/charAtre-quote
which quotes a string, for use in regular expressions.mixed-case?
is now false on strings like "123" where no character has a case.swap-case
on "ß" now returns "SS"starts-with?
throwing exception when prefix
is longer than s
.Can you improve this documentation?Edit on GitHub
cljdoc is a website building & hosting documentation for Clojure/Script libraries
× close