Function: consult--compile-regexp

consult--compile-regexp is a byte-compiled function defined in consult.el.

Signature

(consult--compile-regexp INPUT TYPE IGNORE-CASE)

Documentation

Compile the INPUT string to a list of regular expressions.

Return a pair, the list of regular expressions and a highlight function. The highlight function takes a single argument, the string to highlight given the INPUT. TYPE is the desired type of regular expression, which can be basic, extended, emacs or pcre. If IGNORE-CASE is non-nil the highlight function matches case insensitively.

Source Code

;; Defined in ~/.emacs.d/elpa/consult-20260805.1130/consult.el
(defun consult--compile-regexp (input type ignore-case)
  "Compile the INPUT string to a list of regular expressions.
Return a pair, the list of regular expressions and a highlight function.
The highlight function takes a single argument, the string to highlight
given the INPUT.  TYPE is the desired type of regular expression, which
can be `basic', `extended', `emacs' or `pcre'.  If IGNORE-CASE is
non-nil the highlight function matches case insensitively."
  (funcall consult--regexp-compiler input type ignore-case))