Liking cljdoc? Tell your friends :D

hive-system.pattern.core

Facade for the pattern subsystem: name what you are looking for, get an answer, never mention an engine.

(pattern/register-pattern! #:pattern{:id :audit/probe :expr "ready\?"}) (pattern/match? :audit/probe source) (pattern/scan :audit/probe source)

The regex engine registers itself on load, so :regex is available without ceremony; *default-engine* selects what an engine-less Pattern uses.

Re-exports are DELEGATING fns, never def-aliases — a def alias of a protocol method freezes its method cache.

Facade for the pattern subsystem: name what you are looking for, get an
answer, never mention an engine.

  (pattern/register-pattern! #:pattern{:id :audit/probe :expr "ready\\?"})
  (pattern/match? :audit/probe source)
  (pattern/scan  :audit/probe source)

The regex engine registers itself on load, so `:regex` is available without
ceremony; `*default-engine*` selects what an engine-less Pattern uses.

Re-exports are DELEGATING fns, never def-aliases — a def alias of a protocol
method freezes its method cache.
raw docstring

*default-engine*clj

Engine used by a Pattern that names none.

Engine used by a Pattern that names none.
sourceraw docstring

find-firstclj

(find-first ref subject)

The first occurrence of REF in SUBJECT, or nil. Returns Result<Match?>.

The first occurrence of REF in SUBJECT, or nil. Returns Result<Match?>.
sourceraw docstring

match?clj

(match? ref subject)

Does REF occur in SUBJECT? Returns Result<boolean>.

Does REF occur in SUBJECT? Returns Result<boolean>.
sourceraw docstring

register-engine!clj

(register-engine! engine)

Register an IPatternEngine. Returns the engine.

Register an IPatternEngine. Returns the engine.
sourceraw docstring

register-pattern!clj

(register-pattern! pattern)

Register a named Pattern. Returns Result<Pattern>.

Register a named Pattern. Returns Result<Pattern>.
sourceraw docstring

scanclj

(scan ref subject)

Every occurrence of REF in SUBJECT. Returns Result<Matches>.

Every occurrence of REF in SUBJECT. Returns Result<Matches>.
sourceraw docstring

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