Files
dotfiles/cabal/share/doc/x86_64-osx-ghc-7.10.1/MissingH-1.3.0.1/html/System-Path-WildMatch.html
2015-04-05 17:47:08 +02:00

16 lines
5.4 KiB
HTML

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"><html xmlns="http://www.w3.org/1999/xhtml"><head><meta http-equiv="Content-Type" content="text/html; charset=UTF-8" /><title>System.Path.WildMatch</title><link href="ocean.css" rel="stylesheet" type="text/css" title="Ocean" /><script src="haddock-util.js" type="text/javascript"></script><script type="text/javascript">//<![CDATA[
window.onload = function () {pageLoad();setSynopsis("mini_System-Path-WildMatch.html");};
//]]>
</script></head><body><div id="package-header"><ul class="links" id="page-menu"><li><a href="index.html">Contents</a></li><li><a href="doc-index.html">Index</a></li></ul><p class="caption">MissingH-1.3.0.1: Large utility library</p></div><div id="content"><div id="module-header"><table class="info"><tr><th>Copyright</th><td>Copyright (C) 2006-2011 John Goerzen</td></tr><tr><th>License</th><td>BSD3</td></tr><tr><th>Maintainer</th><td>John Goerzen &lt;jgoerzen@complete.org&gt;</td></tr><tr><th>Stability</th><td>provisional</td></tr><tr><th>Portability</th><td>portable</td></tr><tr><th>Safe Haskell</th><td>None</td></tr><tr><th>Language</th><td>Haskell98</td></tr></table><p class="caption">System.Path.WildMatch</p></div><div id="table-of-contents"><p class="caption">Contents</p><ul><li><a href="#g:1">Wildcard matching</a></li></ul></div><div id="description"><p class="caption">Description</p><div class="doc"><p>Matching filenames with wildcards. See also <a href="System-Path-Glob.html">System.Path.Glob</a> for
support for generating lists of files based on wildcards.</p><p>Inspired by fnmatch.py, part of the Python standard library.</p><p>Written by John Goerzen, jgoerzen@complete.org</p><p>The input wildcard for functions in this module is expected to be in
the standard style of Posix shells.</p><p>That is:</p><pre>? matches exactly one character
\* matches zero or more characters
[list] matches any character in list
[!list] matches any character not in the list</pre><p>The returned regular expression will always end in $ but never begins
with ^, making it suitable for appending to the end of paths. If you want to
match a given filename directly, you should prepend the ^ character to the
returned value from this function.</p><p>Please note:</p><ul><li>Neither the path separator (the slash or backslash) nor the period carry
any special meaning for the functions in this module. That is, <code>*</code> will
match <code>/</code> in a filename. If this is not the behavior you want, you probably
want <a href="System-Path-Glob.html">System.Path.Glob</a> instead of this module.</li><li>Unlike the Unix shell, filenames that begin with a period are not ignored
by this module. That is, <code>*.txt</code> will match <code>.test.txt</code>.</li><li>This module does not current permit escaping of special characters.</li></ul></div></div><div id="synopsis"><p id="control.syn" class="caption expander" onclick="toggleSection('syn')">Synopsis</p><ul id="section.syn" class="hide" onclick="toggleSection('syn')"><li class="src short"><a href="#v:wildCheckCase">wildCheckCase</a> :: <a href="file:///usr/local/Cellar/ghc/7.10.1/share/doc/ghc/html/libraries/base-4.8.0.0/Data-String.html#t:String">String</a> -&gt; <a href="file:///usr/local/Cellar/ghc/7.10.1/share/doc/ghc/html/libraries/base-4.8.0.0/Data-String.html#t:String">String</a> -&gt; <a href="file:///usr/local/Cellar/ghc/7.10.1/share/doc/ghc/html/libraries/base-4.8.0.0/Data-Bool.html#t:Bool">Bool</a></li><li class="src short"><a href="#v:wildToRegex">wildToRegex</a> :: <a href="file:///usr/local/Cellar/ghc/7.10.1/share/doc/ghc/html/libraries/base-4.8.0.0/Data-String.html#t:String">String</a> -&gt; <a href="file:///usr/local/Cellar/ghc/7.10.1/share/doc/ghc/html/libraries/base-4.8.0.0/Data-String.html#t:String">String</a></li></ul></div><div id="interface"><h1 id="g:1">Wildcard matching</h1><div class="top"><p class="src"><a name="v:wildCheckCase" class="def">wildCheckCase</a></p><div class="subs arguments"><p class="caption">Arguments</p><table><tr><td class="src">:: <a href="file:///usr/local/Cellar/ghc/7.10.1/share/doc/ghc/html/libraries/base-4.8.0.0/Data-String.html#t:String">String</a></td><td class="doc"><p>The wildcard pattern to use as the base</p></td></tr><tr><td class="src">-&gt; <a href="file:///usr/local/Cellar/ghc/7.10.1/share/doc/ghc/html/libraries/base-4.8.0.0/Data-String.html#t:String">String</a></td><td class="doc"><p>The filename to check against it</p></td></tr><tr><td class="src">-&gt; <a href="file:///usr/local/Cellar/ghc/7.10.1/share/doc/ghc/html/libraries/base-4.8.0.0/Data-Bool.html#t:Bool">Bool</a></td><td class="doc"><p>Result</p></td></tr></table></div><div class="doc"><p>Check the given name against the given pattern, being case-sensitive.</p><p>The given pattern is forced to match the given name starting at the beginning.</p></div></div><div class="top"><p class="src"><a name="v:wildToRegex" class="def">wildToRegex</a> :: <a href="file:///usr/local/Cellar/ghc/7.10.1/share/doc/ghc/html/libraries/base-4.8.0.0/Data-String.html#t:String">String</a> -&gt; <a href="file:///usr/local/Cellar/ghc/7.10.1/share/doc/ghc/html/libraries/base-4.8.0.0/Data-String.html#t:String">String</a></p><div class="doc"><p>Convert a wildcard to an (uncompiled) regular expression.</p></div></div></div></div><div id="footer"><p>Produced by <a href="http://www.haskell.org/haddock/">Haddock</a> version 2.16.0</p></div></body></html>