doc/api/python/pathaddition.match-module.html
changeset 432 f2ddfa555b0f
equal deleted inserted replaced
431:7685cec9fd3c 432:f2ddfa555b0f
       
     1 <?xml version="1.0" encoding="ascii"?>
       
     2 <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
       
     3           "DTD/xhtml1-transitional.dtd">
       
     4 <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
       
     5 <head>
       
     6   <title>pathaddition.match</title>
       
     7   <link rel="stylesheet" href="epydoc.css" type="text/css" />
       
     8   <script type="text/javascript" src="epydoc.js"></script>
       
     9 </head>
       
    10 
       
    11 <body bgcolor="white" text="black" link="blue" vlink="#204080"
       
    12       alink="#204080">
       
    13 <!-- ==================== NAVIGATION BAR ==================== -->
       
    14 <table class="navbar" border="0" width="100%" cellpadding="0"
       
    15        bgcolor="#a0c0ff" cellspacing="0">
       
    16   <tr valign="middle">
       
    17 
       
    18   <!-- Tree link -->
       
    19       <th>&nbsp;&nbsp;&nbsp;<a
       
    20         href="module-tree.html">Trees</a>&nbsp;&nbsp;&nbsp;</th>
       
    21 
       
    22   <!-- Index link -->
       
    23       <th>&nbsp;&nbsp;&nbsp;<a
       
    24         href="identifier-index.html">Indices</a>&nbsp;&nbsp;&nbsp;</th>
       
    25 
       
    26   <!-- Help link -->
       
    27       <th>&nbsp;&nbsp;&nbsp;<a
       
    28         href="help.html">Help</a>&nbsp;&nbsp;&nbsp;</th>
       
    29 
       
    30       <th class="navbar" width="100%"></th>
       
    31   </tr>
       
    32 </table>
       
    33 <table width="100%" cellpadding="0" cellspacing="0">
       
    34   <tr valign="top">
       
    35     <td width="100%">
       
    36       <span class="breadcrumbs">
       
    37         <a href="pathaddition-module.html">Package&nbsp;pathaddition</a> ::
       
    38         Module&nbsp;match
       
    39       </span>
       
    40     </td>
       
    41     <td>
       
    42       <table cellpadding="0" cellspacing="0">
       
    43         <!-- hide/show private -->
       
    44         <tr><td align="right"><span class="options">[<a href="javascript:void(0);" class="privatelink"
       
    45     onclick="toggle_private();">hide&nbsp;private</a>]</span></td></tr>
       
    46         <tr><td align="right"><span class="options"
       
    47             >[<a href="frames.html" target="_top">frames</a
       
    48             >]&nbsp;|&nbsp;<a href="pathaddition.match-module.html"
       
    49             target="_top">no&nbsp;frames</a>]</span></td></tr>
       
    50       </table>
       
    51     </td>
       
    52   </tr>
       
    53 </table>
       
    54 <!-- ==================== MODULE DESCRIPTION ==================== -->
       
    55 <h1 class="epydoc">Module match</h1><span class="codelink"><a href="pathaddition.match-pysrc.html">source&nbsp;code</a></span><br /><br />
       
    56 This module provides support for Ant-style wildcards,
       
    57 which are not the same as regular expressions (which are documented in the re module).<br /><br />
       
    58 
       
    59 <!-- ==================== FUNCTIONS ==================== -->
       
    60 <a name="section-Functions"></a>
       
    61 <table class="summary" border="1" cellpadding="3"
       
    62        cellspacing="0" width="100%" bgcolor="white">
       
    63 <tr bgcolor="#70b0f0" class="table-header">
       
    64   <td colspan="2" class="table-header">
       
    65     <table border="0" cellpadding="0" cellspacing="0" width="100%">
       
    66       <tr valign="top">
       
    67         <td align="left"><span class="table-header">Functions</span></td>
       
    68         <td align="right" valign="top"
       
    69          ><span class="options">[<a href="#section-Functions"
       
    70          class="privatelink" onclick="toggle_private();"
       
    71          >hide private</a>]</span></td>
       
    72       </tr>
       
    73     </table>
       
    74   </td>
       
    75 </tr>
       
    76 <tr>
       
    77     <td width="15%" align="right" valign="top" class="summary">
       
    78       <span class="summary-type">&nbsp;</span>
       
    79     </td><td class="summary">
       
    80       <table width="100%" cellpadding="0" cellspacing="0" border="0">
       
    81         <tr>
       
    82           <td><span class="summary-sig"><a name="ant_match"></a><span class="summary-sig-name">ant_match</span>(<span class="summary-sig-arg">name</span>,
       
    83         <span class="summary-sig-arg">pattern</span>,
       
    84         <span class="summary-sig-arg">casesensitive</span>=<span class="summary-sig-default">True</span>)</span><br />
       
    85       Check if name matches pattern (Ant-style wildcards).</td>
       
    86           <td align="right" valign="top">
       
    87             <span class="codelink"><a href="pathaddition.match-pysrc.html#ant_match">source&nbsp;code</a></span>
       
    88             
       
    89           </td>
       
    90         </tr>
       
    91       </table>
       
    92       
       
    93     </td>
       
    94   </tr>
       
    95 <tr>
       
    96     <td width="15%" align="right" valign="top" class="summary">
       
    97       <span class="summary-type">&nbsp;</span>
       
    98     </td><td class="summary">
       
    99       <table width="100%" cellpadding="0" cellspacing="0" border="0">
       
   100         <tr>
       
   101           <td><span class="summary-sig"><a href="pathaddition.match-module.html#translate" class="summary-sig-name">translate</a>(<span class="summary-sig-arg">pat</span>)</span><br />
       
   102       Translate a Ant-style PATTERN to a regular expression.</td>
       
   103           <td align="right" valign="top">
       
   104             <span class="codelink"><a href="pathaddition.match-pysrc.html#translate">source&nbsp;code</a></span>
       
   105             
       
   106           </td>
       
   107         </tr>
       
   108       </table>
       
   109       
       
   110     </td>
       
   111   </tr>
       
   112 </table>
       
   113 <!-- ==================== VARIABLES ==================== -->
       
   114 <a name="section-Variables"></a>
       
   115 <table class="summary" border="1" cellpadding="3"
       
   116        cellspacing="0" width="100%" bgcolor="white">
       
   117 <tr bgcolor="#70b0f0" class="table-header">
       
   118   <td colspan="2" class="table-header">
       
   119     <table border="0" cellpadding="0" cellspacing="0" width="100%">
       
   120       <tr valign="top">
       
   121         <td align="left"><span class="table-header">Variables</span></td>
       
   122         <td align="right" valign="top"
       
   123          ><span class="options">[<a href="#section-Variables"
       
   124          class="privatelink" onclick="toggle_private();"
       
   125          >hide private</a>]</span></td>
       
   126       </tr>
       
   127     </table>
       
   128   </td>
       
   129 </tr>
       
   130 <tr class="private">
       
   131     <td width="15%" align="right" valign="top" class="summary">
       
   132       <span class="summary-type">&nbsp;</span>
       
   133     </td><td class="summary">
       
   134         <a name="_logger"></a><span class="summary-name">_logger</span> = <code title="logging.getLogger('path.match')">logging.getLogger('path.match')</code>
       
   135     </td>
       
   136   </tr>
       
   137 <tr class="private">
       
   138     <td width="15%" align="right" valign="top" class="summary">
       
   139       <span class="summary-type">&nbsp;</span>
       
   140     </td><td class="summary">
       
   141         <a name="_cache"></a><span class="summary-name">_cache</span> = <code title="{}">{}</code>
       
   142     </td>
       
   143   </tr>
       
   144 </table>
       
   145 <!-- ==================== FUNCTION DETAILS ==================== -->
       
   146 <a name="section-FunctionDetails"></a>
       
   147 <table class="details" border="1" cellpadding="3"
       
   148        cellspacing="0" width="100%" bgcolor="white">
       
   149 <tr bgcolor="#70b0f0" class="table-header">
       
   150   <td colspan="2" class="table-header">
       
   151     <table border="0" cellpadding="0" cellspacing="0" width="100%">
       
   152       <tr valign="top">
       
   153         <td align="left"><span class="table-header">Function Details</span></td>
       
   154         <td align="right" valign="top"
       
   155          ><span class="options">[<a href="#section-FunctionDetails"
       
   156          class="privatelink" onclick="toggle_private();"
       
   157          >hide private</a>]</span></td>
       
   158       </tr>
       
   159     </table>
       
   160   </td>
       
   161 </tr>
       
   162 </table>
       
   163 <a name="translate"></a>
       
   164 <div>
       
   165 <table class="details" border="1" cellpadding="3"
       
   166        cellspacing="0" width="100%" bgcolor="white">
       
   167 <tr><td>
       
   168   <table width="100%" cellpadding="0" cellspacing="0" border="0">
       
   169   <tr valign="top"><td>
       
   170   <h3 class="epydoc"><span class="sig"><span class="sig-name">translate</span>(<span class="sig-arg">pat</span>)</span>
       
   171   </h3>
       
   172   </td><td align="right" valign="top"
       
   173     ><span class="codelink"><a href="pathaddition.match-pysrc.html#translate">source&nbsp;code</a></span>&nbsp;
       
   174     </td>
       
   175   </table>
       
   176   
       
   177   <p>Translate a Ant-style PATTERN to a regular expression.</p>
       
   178 <p>There is no way to quote meta-characters.</p>
       
   179   <dl class="fields">
       
   180   </dl>
       
   181 </td></tr></table>
       
   182 </div>
       
   183 <br />
       
   184 <!-- ==================== NAVIGATION BAR ==================== -->
       
   185 <table class="navbar" border="0" width="100%" cellpadding="0"
       
   186        bgcolor="#a0c0ff" cellspacing="0">
       
   187   <tr valign="middle">
       
   188 
       
   189   <!-- Tree link -->
       
   190       <th>&nbsp;&nbsp;&nbsp;<a
       
   191         href="module-tree.html">Trees</a>&nbsp;&nbsp;&nbsp;</th>
       
   192 
       
   193   <!-- Index link -->
       
   194       <th>&nbsp;&nbsp;&nbsp;<a
       
   195         href="identifier-index.html">Indices</a>&nbsp;&nbsp;&nbsp;</th>
       
   196 
       
   197   <!-- Help link -->
       
   198       <th>&nbsp;&nbsp;&nbsp;<a
       
   199         href="help.html">Help</a>&nbsp;&nbsp;&nbsp;</th>
       
   200 
       
   201       <th class="navbar" width="100%"></th>
       
   202   </tr>
       
   203 </table>
       
   204 <table border="0" cellpadding="0" cellspacing="0" width="100%%">
       
   205   <tr>
       
   206     <td align="left" class="footer">
       
   207     Generated by Epydoc 3.0beta1 on Wed Sep 09 13:44:16 2009
       
   208     </td>
       
   209     <td align="right" class="footer">
       
   210       <a href="http://epydoc.sourceforge.net">http://epydoc.sourceforge.net</a>
       
   211     </td>
       
   212   </tr>
       
   213 </table>
       
   214 
       
   215 <script type="text/javascript">
       
   216   <!--
       
   217   // Private objects are initially displayed (because if
       
   218   // javascript is turned off then we want them to be
       
   219   // visible); but by default, we want to hide them.  So hide
       
   220   // them unless we have a cookie that says to show them.
       
   221   checkCookie()
       
   222   // -->
       
   223 </script>
       
   224   
       
   225 </body>
       
   226 </html>