Liking cljdoc? Tell your friends :D

shuriken.string

### Functions on strings
raw docstring

adjustclj

(adjust direction n s)

Left or right-adjust a string.

Left or right-adjust a string.
sourceraw docstring

format-codeclj

(format-code code)

Returns a string as formatted by clojure.pprint/code-dispatch.

Returns a string as formatted by `clojure.pprint/code-dispatch`.
sourceraw docstring

join-linesclj

(join-lines lines)

Glues strings together with newlines.

Glues strings together with newlines.
sourceraw docstring

join-wordsclj

(join-words words)

Glues strings together with spaces.

Glues strings together with spaces.
sourceraw docstring

linesclj

(lines s)

Splits a string around newlines.

Splits a string around newlines.
sourceraw docstring

no-printcljmacro

(no-print & body)

Binds out to an anonymous writer used as /dev/null and returns the value of the last expr in body.

Binds *out* to an anonymous writer used as /dev/null and returns
the value of the last expr in body.
sourceraw docstring

tabulateclj

(tabulate s pad)

Left-pad a string with pad, taking newlines into account.

Left-pad a string with `pad`, taking newlines into account.
sourceraw docstring

truncateclj

(truncate s length)
(truncate s length pad)

Truncate a string with pad beyond a certain length. By default, pad is "...".

Truncate a string with `pad` beyond a certain length. By default,
`pad` is `"..."`.
sourceraw docstring

wordsclj

(words s)

Splits a string around whitespaces.

Splits a string around whitespaces.
sourceraw docstring

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

× close