Liking cljdoc? Tell your friends :D

hive.connectors.digest.text

Pure text helpers for the digest, over hive-system.pattern. Every pattern is named here once; call sites name what they look for.

Pure text helpers for the digest, over hive-system.pattern. Every pattern
is named here once; call sites name what they look for.
raw docstring

exciseclj

(excise id s with)

s with every match of id replaced by with.

`s` with every match of `id` replaced by `with`.
sourceraw docstring

first-sentenceclj

(first-sentence s)
source

found?clj

(found? id s)
source

groupsclj

(groups id s)

Capture groups of the first match of id in s, or nil.

Capture groups of the first match of `id` in `s`, or nil.
sourceraw docstring

matchesclj

(matches id s)

Every match of pattern id in s, as hive-system Match maps.

Every match of pattern `id` in `s`, as hive-system Match maps.
sourceraw docstring

patternsclj

The digest's named patterns.

The digest's named patterns.
sourceraw docstring

register!clj

(register!)

Register the digest's patterns. Idempotent (keyed by id); runs on load.

Register the digest's patterns. Idempotent (keyed by id); runs on load.
sourceraw docstring

squashclj

(squash s)

Collapse whitespace runs to one space and trim. Blank -> nil.

Collapse whitespace runs to one space and trim. Blank -> nil.
sourceraw docstring

strip-htmlclj

(strip-html s)

HTML fragment -> plain text on one line, or nil.

HTML fragment -> plain text on one line, or nil.
sourceraw docstring

truncateclj

(truncate s n)

At most n characters, cut at a word boundary, with an ellipsis.

At most `n` characters, cut at a word boundary, with an ellipsis.
sourceraw docstring

unescape-entitiesclj

(unescape-entities s)
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