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.Engine used by a Pattern that names none.
Engine used by a Pattern that names none.
(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?>.
(match? ref subject)Does REF occur in SUBJECT? Returns Result<boolean>.
Does REF occur in SUBJECT? Returns Result<boolean>.
(register-engine! engine)Register an IPatternEngine. Returns the engine.
Register an IPatternEngine. Returns the engine.
(register-pattern! pattern)Register a named Pattern. Returns Result<Pattern>.
Register a named Pattern. Returns Result<Pattern>.
(scan ref subject)Every occurrence of REF in SUBJECT. Returns Result<Matches>.
Every occurrence of REF in SUBJECT. Returns Result<Matches>.
cljdoc builds & hosts documentation for Clojure/Script libraries
| Ctrl+k | Jump to recent docs |
| ← | Move to previous article |
| → | Move to next article |
| Ctrl+/ | Jump to the search field |