Function: editorconfig-fnmatch-p
editorconfig-fnmatch-p is a byte-compiled function defined in
editorconfig-fnmatch.el.gz.
Signature
(editorconfig-fnmatch-p STRING PATTERN)
Documentation
Test whether STRING match PATTERN.
Matching ignores case if case-fold-search is non-nil.
PATTERN should be a shell glob pattern, and some zsh-like wildcard matchings can be used:
* Matches any string of characters, except path separators (/)
** Matches any string of characters
? Matches any single character
[name] Matches any single character in name
[^name] Matches any single character not in name
{s1,s2,s3} Matches any of the strings given (separated by commas)
{min..max} Matches any number between min and max
Source Code
;; Defined in /usr/src/emacs/lisp/editorconfig-fnmatch.el.gz
(defun editorconfig-fnmatch-p (string pattern)
"Test whether STRING match PATTERN.
Matching ignores case if `case-fold-search' is non-nil.
PATTERN should be a shell glob pattern, and some zsh-like wildcard matchings can
be used:
* Matches any string of characters, except path separators (/)
** Matches any string of characters
? Matches any single character
[name] Matches any single character in name
[^name] Matches any single character not in name
{s1,s2,s3} Matches any of the strings given (separated by commas)
{min..max} Matches any number between min and max"
(string-match (editorconfig-fnmatch-translate pattern)
string))