(balanced-unescaped-re opener closer)
(balanced-unescaped-re opener closer {:keys [intersect]})
(bounded-matches re s)
Returns a vector of hashes, each of which contains:
Returns a vector of hashes, each of which contains: * the RE match, i.e. the output of (re-find re s) * the start index (include) of re in s * the end index (exclusive) of re in s
(but-unescaped-re & cs)
Returns a RE which matches any character except the ones given. The last argument may be an options hash. Valid options are :allow and :exclude.
:allow is expected to be one or more character classes to match. When omitted, all characters except the arguments are matched.
:exclude is expected to be one or more character classes to not match. When omitted, only the arguments are forbidden to match. Providing a value here extends, not replaces, the blocklist.
Returns a RE which matches any character except the ones given. The last argument may be an options hash. Valid options are :allow and :exclude. :allow is expected to be one or more character classes to match. When omitted, all characters except the arguments are matched. :exclude is expected to be one or more character classes to not match. When omitted, only the arguments are forbidden to match. Providing a value here extends, not replaces, the blocklist.
(cluster pred coll)
Groups items in coll for which (pred acc x) returns true, where acc is the accumulated collection of clusters and x is the current item. Returns a vector of vectors.
Groups items in coll for which (pred acc x) returns true, where acc is the accumulated collection of clusters and x is the current item. Returns a vector of vectors.
(coalesce pred rf coll)
Clusters items in coll with pred, then reduces over them with rf.
Clusters items in coll with pred, then reduces over them with rf.
(collapse-whitespace string)
Replace consecutive whitespace characters with a single space.
Replace consecutive whitespace characters with a single space.
(excluding-re re)
(excluding-re re limit)
Returns a negative lookbehind RE which forbids match immediately prior to match the given regular expression.
Returns a negative lookbehind RE which forbids match immediately prior to match the given regular expression.
(expand-tab s)
(expand-tab s {:keys [tabstop limit] :or {tabstop tabstop}})
Expands a maximum of :limit tab characters to the :tabstop value. If :limit is not provided, expands all.
Expands a maximum of :limit tab characters to the :tabstop value. If :limit is not provided, expands all.
(graph pred coll)
Hashmap of items x and y in coll for which (pred x y) is true. The key is x and the associated value is a sequence of all y.
Hashmap of items x and y in coll for which (pred x y) is true. The key is x and the associated value is a sequence of all y.
(or-re & exps)
Returns a RE which matches any of the given expressions.
Returns a RE which matches any of the given expressions.
(percent-encode-uri uri)
Percent-encodes the path and query string, if any, of uri.
Percent-encodes the path and query string, if any, of uri.
Number of spaces to expand tabs to.
Number of spaces to expand tabs to.
(trim-leading-whitespace s n)
Removes whitespace from the beginning of string s. Tabs are expanded as needed before processing.
Removes whitespace from the beginning of string s. Tabs are expanded as needed before processing.
cljdoc is a website building & hosting documentation for Clojure/Script libraries
× close