Liking cljdoc? Tell your friends :D

b2w-commons-string.replace

String replacement helpers.

String replacement helpers.
raw docstring

replace-all-tokensclj

(replace-all-tokens token template value)

Replaces all matches of a given token with value;

Replaces all matches of a given token with value;
raw docstring

replace-first-tokenclj

(replace-first-token token template value)

Replaces the first match of a given token with value.

Replaces the first match of a given token with value.
raw docstring

replace-from-mapclj

(replace-from-map template map-data)

Replaces all matches from a map key with it's values.

Replaces all matches from a map key with it's values.
raw docstring

replace-kvclj

(replace-kv template [k v])

Replaces the key (k) with the value (v) in a given string template.

Replaces the key (k) with the value (v) in a given string template.
raw docstring

replace-sequentialclj

(replace-sequential template token sequence)

Replaces the matches of a given token with the sequence values. E.g.: (replace-sequential "My name is % %" "%" ["Iago" "Oliveira"]) Will produce the input: "My name is Iago Oliveira"

Replaces the matches of a given token with the sequence values.
E.g.:
(replace-sequential "My name is % %" "%" ["Iago" "Oliveira"])
Will produce the input:
"My name is Iago Oliveira"
raw docstring

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

× close