Liking cljdoc? Tell your friends :D

pallet.common.string

String utilities

Follows design notes from clojure.string

String utilities

Follows design notes from clojure.string
raw docstring

quotedclj

(quoted s)

Add quotes to the argument s as a string

Add quotes to the argument s as a string
sourceraw docstring

substringclj

(substring s n)
(substring s n m)

The one index version drops first n characters from s. Returns an empty string if n is greater than the length of s.

The two index version returns a substring between the two indices.

(substring "test" 1) => "est"
(substring "test" 1 3) => "es"
The one index version drops first n characters from s.  Returns an empty
string if n is greater than the length of s.

The two index version returns a substring between the two indices.

    (substring "test" 1) => "est"
    (substring "test" 1 3) => "es"
sourceraw docstring

underscoreclj

(underscore s)

Replace all occurances of - with _

Replace all occurances of - with _
sourceraw docstring

cljdoc is a website building & hosting documentation for Clojure/Script libraries

× close