Function: corfu--match-symbol-p
corfu--match-symbol-p is a byte-compiled function defined in corfu.el.
Signature
(corfu--match-symbol-p PATTERN SYM)
Documentation
Return non-nil if SYM is matching an element of the PATTERN list.
Source Code
;; Defined in ~/.emacs.d/elpa/corfu-20260813.950/corfu.el
(defun corfu--match-symbol-p (pattern sym)
"Return non-nil if SYM is matching an element of the PATTERN list."
(cl-loop with case-fold-search = nil
for x in (and (symbolp sym) pattern)
thereis (if (symbolp x)
(eq sym x)
(string-match-p x (symbol-name sym)))))