Liking cljdoc? Tell your friends :D

baredom.utils.value-list

A list of values in one attribute, as comma-separated text or as a JSON array of strings.

A list of values in one attribute, as comma-separated text or as a JSON array of strings.
raw docstring

allowed-value-formatscljs

source

csv-unrepresentablecljs

(csv-unrepresentable values)

The values that a comma-separated value cannot hold: those with the separator, or with leading or trailing whitespace.

The values that a comma-separated value cannot hold: those with the separator, or with
leading or trailing whitespace.
sourceraw docstring

default-value-formatcljs

source

normalize-value-formatcljs

(normalize-value-format s)

Normalizes raw value-format string. Falls back to default-value-format if invalid.

Normalizes raw value-format string. Falls back to default-value-format if invalid.
sourceraw docstring

parse-json-valuecljs

(parse-json-value s)

Parses a JSON array of strings into a set of its non-empty strings, kept exactly. Returns nil when s is not a JSON array of strings, and #{} when s is nil or empty.

Parses a JSON array of strings into a set of its non-empty strings, kept exactly. Returns nil
when `s` is not a JSON array of strings, and #{} when `s` is nil or empty.
sourceraw docstring

parse-valuecljs

(parse-value s)

Parses a comma-separated value string into a set of trimmed, non-empty strings. nil or empty string yields #{}.

Parses a comma-separated value string into a set of trimmed, non-empty strings.
nil or empty string yields #{}.
sourceraw docstring

parse-value-ascljs

(parse-value-as value-format s)

Parses a value attribute in value-format into {:value set :invalid? boolean}. An invalid json value yields the empty set.

Parses a value attribute in `value-format` into `{:value set :invalid? boolean}`. An invalid
json value yields the empty set.
sourceraw docstring

serialize-json-valuecljs

(serialize-json-value value-set)

Serializes a set of values into a sorted JSON array. Empty set yields empty string.

Serializes a set of values into a sorted JSON array. Empty set yields empty string.
sourceraw docstring

serialize-valuecljs

(serialize-value value-set)

Serializes a set of values into a sorted, comma-separated string. Empty set yields empty string.

Serializes a set of values into a sorted, comma-separated string.
Empty set yields empty string.
sourceraw docstring

serialize-value-ascljs

(serialize-value-as value-format value-set)

Serializes a set of values in value-format.

Serializes a set of values in `value-format`.
sourceraw docstring

value-format-csvcljs

source

value-format-jsoncljs

source

value-separatorcljs

source

cljdoc builds & hosts documentation for Clojure/Script libraries

Keyboard shortcuts
Ctrl+kJump to recent docs
←Move to previous article
→Move to next article
Ctrl+/Jump to the search field
× close