Liking cljdoc? Tell your friends :D

contrib.str


align-regexpclj

(align-regexp regex string)

e.g. (align-regexp #" = " " var x = 1; var y = 2; var asdf = 3; ") => " var x = 1; var y = 2; var asdf = 3; "

e.g. (align-regexp #" = " 
"
var x = 1;
var y = 2;
var asdf = 3;
")
=>
"
var x    = 1;
var y    = 2;
var asdf = 3;
"
 
sourceraw docstring

align-regexp*clj

(align-regexp* regex lines)

Will align all lines to the first match of regex

Will align all `lines` to the first match of `regex`
sourceraw docstring

any-matches?clj

(any-matches? coll needle)
source

blank->nilclj

(blank->nil s)

Nullify empty strings, identity on all other values.

Nullify empty strings, identity on all other values.
sourceraw docstring

empty->nilcljdeprecated

(empty->nil s)

Deprecated. Use clojure.core/not-empty

Deprecated. Use clojure.core/not-empty
sourceraw docstring

empty?cljdeprecated

(empty? s)

Deprecated. Use clojure.core/empty?

Deprecated. Use clojure.core/empty?
sourceraw docstring

includes-str?cljdeprecated

(includes-str? v needle)
source

match-positionclj

(match-position regex string)

Return the position of the first regex match in string.

Return the position of the first `regex` match in `string`.
sourceraw docstring

or-strclj

(or-str a b)
(or-str a b c)
source

pad-stringclj

(pad-string regex position string)

left-pad the first regex match in string to shift it to the given position. e.g.: (pad-string #"@" 5 "left@right") => "left @right" -- because 'left' is 4 chars

left-pad the first `regex` match in `string` to shift it to the given `position`.
e.g.: (pad-string #"@" 5 "left@right") =>  "left @right" -- because 'left' is 4 chars 
sourceraw docstring

pprint-strclj

(pprint-str x)
source

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

× close