Liking cljdoc? Tell your friends :D

utilis.string


collapse-whitespaceclj/s

(collapse-whitespace s)

Replaces a trimmed version of 's' with all consecutive runs of whitespace characters replaced with a single space.

Replaces a trimmed version of 's' with all consecutive runs of whitespace
characters replaced with a single space.
sourceraw docstring

ensure-ends-withclj/s

(ensure-ends-with s suffix)

Add 'suffix' to 's' if 's' does not already end with 'suffix'

Add 'suffix' to 's' if 's' does not already end with 'suffix'
sourceraw docstring

ensure-starts-withclj/s

(ensure-starts-with s prefix)

Add 'prefix' to 's' if 's' does not already start with 'prefix'

Add 'prefix' to 's' if 's' does not already start with 'prefix'
sourceraw docstring

formatclj/s

source

numeric?clj/s

(numeric? s)

Returns a boolean indicating whether 's' represents a numeric value

Returns a boolean indicating whether 's' represents a numeric value
sourceraw docstring

splitclj

(split s re & {:keys [quote-chars]})

Splits a string 's' on the regular expression 're'. Optional :quote-chars can be provided to avoid splitting the string within quoted sections.

Splits a string 's' on the regular expression 're'. Optional
:quote-chars can be provided to avoid splitting the string within
quoted sections.
sourceraw docstring

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

× close