Liking cljdoc? Tell your friends :D

polylith.clj.core.util.str


add-firstclj

(add-first words val)
source

drop-lastclj

(drop-last n string)
source

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.
sourceraw docstring

lineclj

(line length)
source

skip-prefixclj

(skip-prefix string prefix)
source

skip-suffixclj

(skip-suffix string suffix)
source

skip-suffixesclj

(skip-suffixes string suffixes)
source

skip-untilclj

(skip-until string separator)
source

spacesclj

(spaces length)
source

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).
sourceraw docstring

take-untilclj

(take-until string separator)
source

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

× close