Liking cljdoc? Tell your friends :D

provisdom.utility-belt.strings


abbreviateclj

(abbreviate s max-length)

Shortens string s to max-length using ellipses if needed.

Shortens string `s` to `max-length` using ellipses if needed.
raw docstring

butlast-stringclj

(butlast-string s)

Returns a possibly empty string of characters except the last.

Returns a possibly empty string of characters except the last.
raw docstring

insertclj

(insert s index substring)

Inserts a substring into a string s at index.

Inserts a `substring` into a string `s` at `index`.
raw docstring

maybe-keyword-to-stringclj

(maybe-keyword-to-string x)

If x is a keyword, returns string. Otherwise, returns x.

If `x` is a keyword, returns string. Otherwise, returns `x`.
raw docstring

rest-stringclj

(rest-string s)

Returns a possibly empty string of characters after the first.

Returns a possibly empty string of characters after the first.
raw docstring

substringclj

(substring s start-index)
(substring s start-index end-index)

Returns substring of string s starting at start-index and ending at optional end-index.

Returns substring of string `s` starting at `start-index` and ending at
optional `end-index`.
raw docstring

trim-endclj

(trim-end s suffix)

Trims all the suffix from the end of string s.

Trims all the `suffix` from the end of string `s`.
raw docstring

trim-startclj

(trim-start s prefix)

Trims all the prefix from the start of string s.

Trims all the `prefix` from the start of string `s`.
raw docstring

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

× close