JezK
Edit File: apr__strmatch_8h_source.html
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "https://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/xhtml;charset=UTF-8"/> <meta http-equiv="X-UA-Compatible" content="IE=11"/> <meta name="generator" content="Doxygen 1.9.4"/> <meta name="viewport" content="width=device-width, initial-scale=1"/> <title>Apache Portable Runtime Utility Library: apr_strmatch.h Source File</title> <link href="tabs.css" rel="stylesheet" type="text/css"/> <script type="text/javascript" src="jquery.js"></script> <script type="text/javascript" src="dynsections.js"></script> <link href="search/search.css" rel="stylesheet" type="text/css"/> <script type="text/javascript" src="search/searchdata.js"></script> <script type="text/javascript" src="search/search.js"></script> <link href="doxygen.css" rel="stylesheet" type="text/css" /> </head> <body> <div id="top"><!-- do not remove this div, it is closed by doxygen! --> <div id="titlearea"> <table cellspacing="0" cellpadding="0"> <tbody> <tr id="projectrow"> <td id="projectalign"> <div id="projectname">Apache Portable Runtime Utility Library </div> </td> </tr> </tbody> </table> </div> <!-- end header part --> <!-- Generated by Doxygen 1.9.4 --> <script type="text/javascript"> /* @license magnet:?xt=urn:btih:d3d9a9a6595521f9666a5e94cc830dab83b65699&dn=expat.txt MIT */ var searchBox = new SearchBox("searchBox", "search",'Search','.html'); /* @license-end */ </script> <script type="text/javascript" src="menudata.js"></script> <script type="text/javascript" src="menu.js"></script> <script type="text/javascript"> /* @license magnet:?xt=urn:btih:d3d9a9a6595521f9666a5e94cc830dab83b65699&dn=expat.txt MIT */ $(function() { initMenu('',true,false,'search.php','Search'); $(document).ready(function() { init_search(); }); }); /* @license-end */ </script> <div id="main-nav"></div> <!-- window showing the filter options --> <div id="MSearchSelectWindow" onmouseover="return searchBox.OnSearchSelectShow()" onmouseout="return searchBox.OnSearchSelectHide()" onkeydown="return searchBox.OnSearchSelectKey(event)"> </div> <!-- iframe showing the search results (closed by default) --> <div id="MSearchResultsWindow"> <iframe src="javascript:void(0)" frameborder="0" name="MSearchResults" id="MSearchResults"> </iframe> </div> <div id="nav-path" class="navpath"> <ul> <li class="navelem"><a class="el" href="dir_d44c64559bbebec7f509842c48db8b23.html">include</a></li> </ul> </div> </div><!-- top --> <div class="header"> <div class="headertitle"><div class="title">apr_strmatch.h</div></div> </div><!--header--> <div class="contents"> <a href="apr__strmatch_8h.html">Go to the documentation of this file.</a><div class="fragment"><div class="line"><a id="l00001" name="l00001"></a><span class="lineno"> 1</span><span class="comment">/* Licensed to the Apache Software Foundation (ASF) under one or more</span></div> <div class="line"><a id="l00002" name="l00002"></a><span class="lineno"> 2</span><span class="comment"> * contributor license agreements. See the NOTICE file distributed with</span></div> <div class="line"><a id="l00003" name="l00003"></a><span class="lineno"> 3</span><span class="comment"> * this work for additional information regarding copyright ownership.</span></div> <div class="line"><a id="l00004" name="l00004"></a><span class="lineno"> 4</span><span class="comment"> * The ASF licenses this file to You under the Apache License, Version 2.0</span></div> <div class="line"><a id="l00005" name="l00005"></a><span class="lineno"> 5</span><span class="comment"> * (the "License"); you may not use this file except in compliance with</span></div> <div class="line"><a id="l00006" name="l00006"></a><span class="lineno"> 6</span><span class="comment"> * the License. You may obtain a copy of the License at</span></div> <div class="line"><a id="l00007" name="l00007"></a><span class="lineno"> 7</span><span class="comment"> *</span></div> <div class="line"><a id="l00008" name="l00008"></a><span class="lineno"> 8</span><span class="comment"> * http://www.apache.org/licenses/LICENSE-2.0</span></div> <div class="line"><a id="l00009" name="l00009"></a><span class="lineno"> 9</span><span class="comment"> *</span></div> <div class="line"><a id="l00010" name="l00010"></a><span class="lineno"> 10</span><span class="comment"> * Unless required by applicable law or agreed to in writing, software</span></div> <div class="line"><a id="l00011" name="l00011"></a><span class="lineno"> 11</span><span class="comment"> * distributed under the License is distributed on an "AS IS" BASIS,</span></div> <div class="line"><a id="l00012" name="l00012"></a><span class="lineno"> 12</span><span class="comment"> * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.</span></div> <div class="line"><a id="l00013" name="l00013"></a><span class="lineno"> 13</span><span class="comment"> * See the License for the specific language governing permissions and</span></div> <div class="line"><a id="l00014" name="l00014"></a><span class="lineno"> 14</span><span class="comment"> * limitations under the License.</span></div> <div class="line"><a id="l00015" name="l00015"></a><span class="lineno"> 15</span><span class="comment"> */</span></div> <div class="line"><a id="l00016" name="l00016"></a><span class="lineno"> 16</span> </div> <div class="line"><a id="l00017" name="l00017"></a><span class="lineno"> 17</span><span class="preprocessor">#ifndef APR_STRMATCH_H</span></div> <div class="line"><a id="l00018" name="l00018"></a><span class="lineno"> 18</span><span class="preprocessor">#define APR_STRMATCH_H</span></div> <div class="line"><a id="l00024" name="l00024"></a><span class="lineno"> 24</span><span class="preprocessor">#include "apu.h"</span></div> <div class="line"><a id="l00025" name="l00025"></a><span class="lineno"> 25</span><span class="preprocessor">#include "apr_pools.h"</span></div> <div class="line"><a id="l00026" name="l00026"></a><span class="lineno"> 26</span> </div> <div class="line"><a id="l00027" name="l00027"></a><span class="lineno"> 27</span><span class="preprocessor">#ifdef __cplusplus</span></div> <div class="line"><a id="l00028" name="l00028"></a><span class="lineno"> 28</span><span class="keyword">extern</span> <span class="stringliteral">"C"</span> {</div> <div class="line"><a id="l00029" name="l00029"></a><span class="lineno"> 29</span><span class="preprocessor">#endif</span></div> <div class="line"><a id="l00030" name="l00030"></a><span class="lineno"> 30</span> </div> <div class="line"><a id="l00038" name="l00038"></a><span class="lineno"><a class="line" href="group___a_p_r___util___str_match.html#gab7fc6f6d1b15c8d8750b4637b8ac5679"> 38</a></span><span class="keyword">typedef</span> <span class="keyword">struct </span><a class="code hl_struct" href="structapr__strmatch__pattern.html">apr_strmatch_pattern</a> <a class="code hl_struct" href="structapr__strmatch__pattern.html">apr_strmatch_pattern</a>;</div> <div class="line"><a id="l00039" name="l00039"></a><span class="lineno"> 39</span> </div> <div class="line"><a id="l00043" name="l00043"></a><span class="lineno"><a class="line" href="structapr__strmatch__pattern.html"> 43</a></span><span class="keyword">struct </span><a class="code hl_struct" href="structapr__strmatch__pattern.html">apr_strmatch_pattern</a> {</div> <div class="line"><a id="l00045" name="l00045"></a><span class="lineno"><a class="line" href="structapr__strmatch__pattern.html#a8c255b93cfd16e82b5aa2a55c5e34165"> 45</a></span> <span class="keyword">const</span> <span class="keywordtype">char</span> *(*compare)(<span class="keyword">const</span> <a class="code hl_struct" href="structapr__strmatch__pattern.html">apr_strmatch_pattern</a> *this_pattern,</div> <div class="line"><a id="l00046" name="l00046"></a><span class="lineno"> 46</span> <span class="keyword">const</span> <span class="keywordtype">char</span> *s, apr_size_t slen);</div> <div class="line"><a id="l00047" name="l00047"></a><span class="lineno"><a class="line" href="structapr__strmatch__pattern.html#ad219bd7708d7be5937cb79e7cfda01c0"> 47</a></span> <span class="keyword">const</span> <span class="keywordtype">char</span> *<a class="code hl_variable" href="structapr__strmatch__pattern.html#ad219bd7708d7be5937cb79e7cfda01c0">pattern</a>; </div> <div class="line"><a id="l00048" name="l00048"></a><span class="lineno"><a class="line" href="structapr__strmatch__pattern.html#a4b1f44db089850f396bc4bedac0fb25c"> 48</a></span> apr_size_t <a class="code hl_variable" href="structapr__strmatch__pattern.html#a4b1f44db089850f396bc4bedac0fb25c">length</a>; </div> <div class="line"><a id="l00049" name="l00049"></a><span class="lineno"><a class="line" href="structapr__strmatch__pattern.html#a0e74c401e8825e462e202175bf033a9c"> 49</a></span> <span class="keywordtype">void</span> *<a class="code hl_variable" href="structapr__strmatch__pattern.html#a0e74c401e8825e462e202175bf033a9c">context</a>; </div> <div class="line"><a id="l00050" name="l00050"></a><span class="lineno"> 50</span>};</div> <div class="line"><a id="l00051" name="l00051"></a><span class="lineno"> 51</span> </div> <div class="line"><a id="l00052" name="l00052"></a><span class="lineno"> 52</span><span class="preprocessor">#if defined(DOXYGEN)</span></div> <div class="line"><a id="l00061" name="l00061"></a><span class="lineno"><a class="line" href="group___a_p_r___util___str_match.html#gae84a369a428d659ce3378537e02a1277"> 61</a></span>APU_DECLARE(<span class="keyword">const</span> <span class="keywordtype">char</span> *) <a class="code hl_function" href="group___a_p_r___util___str_match.html#gae84a369a428d659ce3378537e02a1277">apr_strmatch</a>(<span class="keyword">const</span> <a class="code hl_struct" href="structapr__strmatch__pattern.html">apr_strmatch_pattern</a> *pattern,</div> <div class="line"><a id="l00062" name="l00062"></a><span class="lineno"> 62</span> <span class="keyword">const</span> <span class="keywordtype">char</span> *s, apr_size_t slen);</div> <div class="line"><a id="l00063" name="l00063"></a><span class="lineno"> 63</span><span class="preprocessor">#else</span></div> <div class="line"><a id="l00064" name="l00064"></a><span class="lineno"> 64</span><span class="preprocessor">#define apr_strmatch(pattern, s, slen) (*((pattern)->compare))((pattern), (s), (slen))</span></div> <div class="line"><a id="l00065" name="l00065"></a><span class="lineno"> 65</span><span class="preprocessor">#endif</span></div> <div class="line"><a id="l00066" name="l00066"></a><span class="lineno"> 66</span> </div> <div class="line"><a id="l00074" name="l00074"></a><span class="lineno"><a class="line" href="group___a_p_r___util___str_match.html#ga2ee19a9854bbc2576e55d196eea3e4d2"> 74</a></span>APU_DECLARE(<span class="keyword">const</span> <a class="code hl_struct" href="structapr__strmatch__pattern.html">apr_strmatch_pattern</a> *) <a class="code hl_function" href="group___a_p_r___util___str_match.html#ga2ee19a9854bbc2576e55d196eea3e4d2">apr_strmatch_precompile</a>(apr_pool_t *p, <span class="keyword">const</span> <span class="keywordtype">char</span> *s, <span class="keywordtype">int</span> case_sensitive);</div> <div class="line"><a id="l00075" name="l00075"></a><span class="lineno"> 75</span> </div> <div class="line"><a id="l00077" name="l00077"></a><span class="lineno"> 77</span><span class="preprocessor">#ifdef __cplusplus</span></div> <div class="line"><a id="l00078" name="l00078"></a><span class="lineno"> 78</span>}</div> <div class="line"><a id="l00079" name="l00079"></a><span class="lineno"> 79</span><span class="preprocessor">#endif</span></div> <div class="line"><a id="l00080" name="l00080"></a><span class="lineno"> 80</span> </div> <div class="line"><a id="l00081" name="l00081"></a><span class="lineno"> 81</span><span class="preprocessor">#endif </span><span class="comment">/* !APR_STRMATCH_H */</span><span class="preprocessor"></span></div> <div class="ttc" id="agroup___a_p_r___util___str_match_html_ga2ee19a9854bbc2576e55d196eea3e4d2"><div class="ttname"><a href="group___a_p_r___util___str_match.html#ga2ee19a9854bbc2576e55d196eea3e4d2">apr_strmatch_precompile</a></div><div class="ttdeci">const apr_strmatch_pattern * apr_strmatch_precompile(apr_pool_t *p, const char *s, int case_sensitive)</div></div> <div class="ttc" id="agroup___a_p_r___util___str_match_html_gae84a369a428d659ce3378537e02a1277"><div class="ttname"><a href="group___a_p_r___util___str_match.html#gae84a369a428d659ce3378537e02a1277">apr_strmatch</a></div><div class="ttdeci">const char * apr_strmatch(const apr_strmatch_pattern *pattern, const char *s, apr_size_t slen)</div></div> <div class="ttc" id="astructapr__strmatch__pattern_html"><div class="ttname"><a href="structapr__strmatch__pattern.html">apr_strmatch_pattern</a></div><div class="ttdef"><b>Definition:</b> apr_strmatch.h:43</div></div> <div class="ttc" id="astructapr__strmatch__pattern_html_a0e74c401e8825e462e202175bf033a9c"><div class="ttname"><a href="structapr__strmatch__pattern.html#a0e74c401e8825e462e202175bf033a9c">apr_strmatch_pattern::context</a></div><div class="ttdeci">void * context</div><div class="ttdef"><b>Definition:</b> apr_strmatch.h:49</div></div> <div class="ttc" id="astructapr__strmatch__pattern_html_a4b1f44db089850f396bc4bedac0fb25c"><div class="ttname"><a href="structapr__strmatch__pattern.html#a4b1f44db089850f396bc4bedac0fb25c">apr_strmatch_pattern::length</a></div><div class="ttdeci">apr_size_t length</div><div class="ttdef"><b>Definition:</b> apr_strmatch.h:48</div></div> <div class="ttc" id="astructapr__strmatch__pattern_html_ad219bd7708d7be5937cb79e7cfda01c0"><div class="ttname"><a href="structapr__strmatch__pattern.html#ad219bd7708d7be5937cb79e7cfda01c0">apr_strmatch_pattern::pattern</a></div><div class="ttdeci">const char * pattern</div><div class="ttdef"><b>Definition:</b> apr_strmatch.h:47</div></div> </div><!-- fragment --></div><!-- contents --> <!-- start footer part --> <hr class="footer"/><address class="footer"><small> Generated by <a href="https://www.doxygen.org/index.html"><img class="footer" src="doxygen.svg" width="104" height="31" alt="doxygen"/></a> 1.9.4 </small></address> </body> </html>