(type egg)
(signature "fnmatch egg")
(timestamp 1612269487)
(sxml ((section 2 "Outdated egg!" (p "This is an egg for CHICKEN 4, the unsupported old release.  You're almost certainly looking for " (int-link "/eggref/5/fnmatch" "the CHICKEN 5 version of this egg") ", if it exists.") (p "If it does not exist, there may be equivalent functionality provided by another egg; have a look at the " (link "https://wiki.call-cc.org/chicken-projects/egg-index-5.html" "egg index") ". Otherwise, please consider porting this egg to the current version of CHICKEN.")) (section 2 "fnmatch" (toc) (p "CHICKEN Scheme bindings for fnmatch(3). Provides glob-like pattern matching for filenames using shell wildcard patterns.")) (section 2 "Example use" (highlight scheme "    \n(fnmatch \"dir/*.scm\" \"dir/foo.scm\") ;; => #t\n(fnmatch \"dir/*.scm\" \"dir/foo.txt\") ;; => #f")) (section 2 "API" (section 3 "fnmatch" (highlight scheme "  \n(fnmatch path pattern #!key (escape #t) (pathname #t) (period #f))") (p "Tests a pathname against a pattern, returning #t for a match or #f for no match.") (section 4 "Keyword arguments:" (ul (li (b "escape:") " when set to #f, treat backslash as an ordinary character, instead of an escape character") (li (b "pathname:") " match a slash in string only with a slash in pattern and not by an asterisk (*) or a question mark (?) metacharacter, nor by a bracket expression ([]) containing a slash") (li (b "period:") " a leading period in string has to be matched exactly by a period in pattern. A period is considered to be leading if it is the first character in string, or if both 'pathname' is set to #t and the period immediately follows a slash")))))))
