github.com/krum110487/go-htaccess@v0.0.0-20240316004156-60641c8e7598/tests/data/apache_2_2_34/manual/developer/documenting.html.zh-cn.utf8 (about) 1 <?xml version="1.0" encoding="UTF-8"?> 2 <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> 3 <html xmlns="http://www.w3.org/1999/xhtml" lang="zh-cn" xml:lang="zh-cn"><head> 4 <meta content="text/html; charset=UTF-8" http-equiv="Content-Type" /> 5 <!-- 6 XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX 7 This file is generated from xml source: DO NOT EDIT 8 XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX 9 --> 10 <title>Apache 2.0 文档 - Apache HTTP 服务器 版本 2.2</title> 11 <link href="../style/css/manual.css" rel="stylesheet" media="all" type="text/css" title="Main stylesheet" /> 12 <link href="../style/css/manual-loose-100pc.css" rel="alternate stylesheet" media="all" type="text/css" title="No Sidebar - Default font size" /> 13 <link href="../style/css/manual-print.css" rel="stylesheet" media="print" type="text/css" /><link rel="stylesheet" type="text/css" href="../style/css/prettify.css" /> 14 <script src="../style/scripts/prettify.min.js" type="text/javascript"> 15 </script> 16 17 <link href="../images/favicon.ico" rel="shortcut icon" /><link href="http://httpd.apache.org/docs/current/developer/documenting.html" rel="canonical" /></head> 18 <body id="manual-page" class="no-sidebar"><div id="page-header"> 19 <p class="menu"><a href="../mod/">模块</a> | <a href="../mod/directives.html">指令</a> | <a href="http://wiki.apache.org/httpd/FAQ">常见问题</a> | <a href="../glossary.html">术语</a> | <a href="../sitemap.html">网站导航</a></p> 20 <p class="apache">Apache HTTP 服务器版本 2.2</p> 21 <img alt="" src="../images/feather.gif" /></div> 22 <div class="up"><a href="./"><img title="<-" alt="<-" src="../images/left.gif" /></a></div> 23 <div id="path"> 24 <a href="http://www.apache.org/">Apache</a> > <a href="http://httpd.apache.org/">HTTP 服务器</a> > <a href="http://httpd.apache.org/docs/">文档</a> > <a href="../">版本 2.2</a> > <a href="./">开发者文档</a></div><div id="page-content"><div class="retired"><h4>Please note</h4> 25 <p> This document refers to a legacy release (<strong>2.2</strong>) of Apache httpd. The active release (<strong>2.4</strong>) is documented <a href="http://httpd.apache.org/docs/current">here</a>. If you have not already upgraded, please follow <a href="http://httpd.apache.org/docs/current/upgrading.html">this link</a> for more information.</p> 26 <p>You may follow <a href="http://httpd.apache.org/docs/current/developer/documenting.html">this link</a> to go to the current version of this document.</p></div><div id="preamble"><h1>Apache 2.0 文档</h1> 27 <div class="toplang"> 28 <p><span>可用语言: </span><a href="../en/developer/documenting.html" hreflang="en" rel="alternate" title="English"> en </a> | 29 <a href="../zh-cn/developer/documenting.html" title="Simplified Chinese"> zh-cn </a></p> 30 </div> 31 32 <p>Apache 2.0 使用 <a href="http://www.doxygen.org/">Doxygen</a> 从代码中 33 生成 API 和全局变量的文档。下面是对使用 Doxygen 生成文档的简介。</p> 34 </div> 35 <div class="top"><a href="#page-header"><img alt="top" src="../images/up.gif" /></a></div> 36 <div class="section"> 37 <h2><a name="brief" id="brief">简要说明</a></h2> 38 <p>使用 <code>/**</code> 开始文档块<br /> 39 使用 <code>*/</code> 结束文档块</p> 40 41 <p>在文档块中,我们可以使用多个标签:</p> 42 43 <div class="example"><p><code> 44 Description of this functions purpose<br /> 45 @param parameter_name description<br /> 46 @return description<br /> 47 @deffunc signature of the function<br /> 48 </code></p></div> 49 50 <p>一般不需要 <code>deffunc</code> 。DoxyGen 没有完整的解析器,所以任何 51 在返回类型声明中使用宏的原型,都是太复杂了。这些函数就需要使用 <code>deffunc</code>。 52 例如 (使用 &gt; 而不是 >):</p> 53 54 <div class="example"><p><code> 55 /**<br /> 56 * return the final element of the pathname<br /> 57 * @param pathname The path to get the final element of<br /> 58 * @return the final element of the path<br /> 59 * @tip Examples:<br /> 60 * <pre><br /> 61 * "/foo/bar/gum" -&gt; "gum"<br /> 62 * "/foo/bar/gum/" -&gt; ""<br /> 63 * "gum" -&gt; "gum"<br /> 64 * "wi\\n32\\stuff" -&gt; "stuff"<br /> 65 * </pre><br /> 66 * @deffunc const char * ap_filename_of_pathname(const char *pathname)<br /> 67 */ 68 </code></p></div> 69 70 <p>总是在头文件开始包含:</p> 71 <div class="example"><p><code> 72 /**<br /> 73 * @package Name of library header<br /> 74 */ 75 </code></p></div> 76 77 <p>Doxygen 为每个包生成一个新的 HTML 文件,名字是 78 {Name_of_library_header}.html,所以请简化名称。</p> 79 80 <p>更深入的讨论,请参见 81 <a href="http://www.doxygen.org/">Doxygen 站点</a>。</p> 82 </div></div> 83 <div class="bottomlang"> 84 <p><span>可用语言: </span><a href="../en/developer/documenting.html" hreflang="en" rel="alternate" title="English"> en </a> | 85 <a href="../zh-cn/developer/documenting.html" title="Simplified Chinese"> zh-cn </a></p> 86 </div><div class="top"><a href="#page-header"><img src="../images/up.gif" alt="top" /></a></div><div class="section"><h2><a id="comments_section" name="comments_section">评论</a></h2><div class="warning"><strong>Notice:</strong><br />This is not a Q&A section. Comments placed here should be pointed towards suggestions on improving the documentation or server, and may be removed again by our moderators if they are either implemented or considered invalid/off-topic. Questions on how to manage the Apache HTTP Server should be directed at either our IRC channel, #httpd, on Freenode, or sent to our <a href="http://httpd.apache.org/lists.html">mailing lists</a>.</div> 87 <script type="text/javascript"><!--//--><![CDATA[//><!-- 88 var comments_shortname = 'httpd'; 89 var comments_identifier = 'http://httpd.apache.org/docs/2.2/developer/documenting.html'; 90 (function(w, d) { 91 if (w.location.hostname.toLowerCase() == "httpd.apache.org") { 92 d.write('<div id="comments_thread"><\/div>'); 93 var s = d.createElement('script'); 94 s.type = 'text/javascript'; 95 s.async = true; 96 s.src = 'https://comments.apache.org/show_comments.lua?site=' + comments_shortname + '&page=' + comments_identifier; 97 (d.getElementsByTagName('head')[0] || d.getElementsByTagName('body')[0]).appendChild(s); 98 } 99 else { 100 d.write('<div id="comments_thread">Comments are disabled for this page at the moment.<\/div>'); 101 } 102 })(window, document); 103 //--><!]]></script></div><div id="footer"> 104 <p class="apache">Copyright 2017 The Apache Software Foundation.<br />基于 <a href="http://www.apache.org/licenses/LICENSE-2.0">Apache License, Version 2.0</a> 许可证.</p> 105 <p class="menu"><a href="../mod/">模块</a> | <a href="../mod/directives.html">指令</a> | <a href="http://wiki.apache.org/httpd/FAQ">常见问题</a> | <a href="../glossary.html">术语</a> | <a href="../sitemap.html">网站导航</a></p></div><script type="text/javascript"><!--//--><![CDATA[//><!-- 106 if (typeof(prettyPrint) !== 'undefined') { 107 prettyPrint(); 108 } 109 //--><!]]></script> 110 </body></html>