Liking cljdoc? Tell your friends :D

polylith.clj.core.util.str


add-firstclj

(add-first words val)

drop-lastclj

(drop-last n string)

keep?clj

(keep? [index word] words)

The split-text function will generate empty strings for initial separators (e.g. spaces) and if more than one space is repeated within the text, this function helps removing these spaces, except for initial ones.

The split-text function will generate empty strings
for initial separators (e.g. spaces) and if more than one
space is repeated within the text, this function
helps removing these spaces, except for initial ones.
raw docstring

lineclj

(line length)

skip-prefixclj

(skip-prefix string prefix)

skip-suffixclj

(skip-suffix string suffix)

skip-suffixesclj

(skip-suffixes string suffixes)

skip-untilclj

(skip-until string separator)

spacesclj

(spaces length)

split-textclj

(split-text text separator)

Splits a text, similar to string/split, but with two difference:

  • when a quote is found in the text, it stops splitting spaces utill a new quote is found.
  • if the text ends with space (separator) then it will return an empty string, in the same way if the text starts with space(s).
Splits a text, similar to string/split, but with two difference:
- when a quote is found in the text, it stops splitting spaces
  utill a new quote is found.
- if the text ends with space (separator) then it will return
  an empty string, in the same way if the text starts with
  space(s).
raw docstring

take-untilclj

(take-until string separator)

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

× close