Liking cljdoc? Tell your friends :D

automaton-core.adapters.string

String manipulation usable both in clj and cljs

String manipulation usable both in clj and cljs
raw docstring

ellipsisclj/s


limit-lengthclj/s

(limit-length s limit)
(limit-length s limit prefix suffix on-ellipsis)

Limit the length of the string Params:

  • s string to limit
  • limit maximum numbers of character of the resulting string, with prefix and suffix included, with an ellipsis of string s if necessary
  • on-ellipsis a function executed when the ellipsis is done
Limit the length of the string
Params:
* `s` string to limit
* `limit` maximum numbers of character of the resulting string, with prefix and suffix included, with an ellipsis of string s if necessary
* `on-ellipsis` a function executed when the ellipsis is done
raw docstring

remove-first-last-characterclj/s

(remove-first-last-character s)

Remove the first and last character of a string

Remove the first and last character of a string
raw docstring

remove-last-characterclj/s

(remove-last-character s)

Remove the last character of a string

Remove the last character of a string
raw docstring

remove-trailing-characterclj/s

(remove-trailing-character s char)

Remove last character if it is matching char Params:

  • s string
  • char a character to compare to last character of s
Remove last character if it is matching char
Params:
* `s` string
* `char` a character to compare to last character of `s`
raw docstring

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

× close