⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 compare-string_8h.html

📁 常用的数据结构和算法函数库
💻 HTML
字号:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"><html><head><meta http-equiv="Content-Type" content="text/html;charset=iso-8859-1"><title>C Algorithms: compare-string.h File Reference</title><link href="doxygen.css" rel="stylesheet" type="text/css"></head><body><!-- Generated by Doxygen 1.4.4 --><div class="qindex"><a class="qindex" href="index.html">Main&nbsp;Page</a> | <a class="qindex" href="annotated.html">Data&nbsp;Structures</a> | <a class="qindex" href="files.html">File&nbsp;List</a> | <a class="qindex" href="functions.html">Data&nbsp;Fields</a> | <a class="qindex" href="globals.html">Globals</a></div><h1>compare-string.h File Reference</h1>Comparison functions for strings. <a href="#_details">More...</a><p><table border="0" cellpadding="0" cellspacing="0"><tr><td></td></tr><tr><td colspan="2"><br><h2>Functions</h2></td></tr><tr><td class="memItemLeft" nowrap align="right" valign="top">int&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="compare-string_8h.html#a0">string_equal</a> (void *string1, void *string2)</td></tr><tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Compare two strings to determine if they are equal.  <a href="#a0"></a><br></td></tr><tr><td class="memItemLeft" nowrap align="right" valign="top">int&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="compare-string_8h.html#a1">string_compare</a> (void *string1, void *string2)</td></tr><tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Compare two strings.  <a href="#a1"></a><br></td></tr><tr><td class="memItemLeft" nowrap align="right" valign="top">int&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="compare-string_8h.html#a2">string_nocase_equal</a> (void *string1, void *string2)</td></tr><tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Compare two strings to determine if they are equal, ignoring the case of letters.  <a href="#a2"></a><br></td></tr><tr><td class="memItemLeft" nowrap align="right" valign="top">int&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="compare-string_8h.html#a3">string_nocase_compare</a> (void *string1, void *string2)</td></tr><tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Compare two strings, ignoring the case of letters.  <a href="#a3"></a><br></td></tr></table><hr><a name="_details"></a><h2>Detailed Description</h2>Comparison functions for strings. <p>To find the difference between two strings, use <a class="el" href="compare-string_8h.html#a1">string_compare</a>.<p>To find if two strings are equal, use <a class="el" href="compare-string_8h.html#a0">string_equal</a>.<p>For case insensitive versions, see <a class="el" href="compare-string_8h.html#a3">string_nocase_compare</a> and <a class="el" href="compare-string_8h.html#a2">string_nocase_equal</a>.<hr><h2>Function Documentation</h2><a class="anchor" name="a1"></a><!-- doxytag: member="compare-string.h::string_compare" ref="a1" args="(void *string1, void *string2)" --><p><table class="mdTable" cellpadding="2" cellspacing="0">  <tr>    <td class="mdRow">      <table cellpadding="0" cellspacing="0" border="0">        <tr>          <td class="md" nowrap valign="top">int string_compare           </td>          <td class="md" valign="top">(&nbsp;</td>          <td class="md" nowrap valign="top">void *&nbsp;</td>          <td class="mdname" nowrap> <em>string1</em>, </td>        </tr>        <tr>          <td class="md" nowrap align="right"></td>          <td class="md"></td>          <td class="md" nowrap>void *&nbsp;</td>          <td class="mdname" nowrap> <em>string2</em></td>        </tr>        <tr>          <td class="md"></td>          <td class="md">)&nbsp;</td>          <td class="md" colspan="2"></td>        </tr>      </table>    </td>  </tr></table><table cellspacing="5" cellpadding="0" border="0">  <tr>    <td>      &nbsp;    </td>    <td><p>Compare two strings. <p><dl compact><dt><b>Parameters:</b></dt><dd>  <table border="0" cellspacing="2" cellpadding="0">    <tr><td valign="top"></td><td valign="top"><em>string1</em>&nbsp;</td><td>The first string. </td></tr>    <tr><td valign="top"></td><td valign="top"><em>string2</em>&nbsp;</td><td>The second string. </td></tr>  </table></dl><dl compact><dt><b>Returns:</b></dt><dd>A negative value if the first string should be sorted before the second, a positive value if the first string should be sorted after the second, zero if the two strings are equal.</dd></dl>    </td>  </tr></table><a class="anchor" name="a0"></a><!-- doxytag: member="compare-string.h::string_equal" ref="a0" args="(void *string1, void *string2)" --><p><table class="mdTable" cellpadding="2" cellspacing="0">  <tr>    <td class="mdRow">      <table cellpadding="0" cellspacing="0" border="0">        <tr>          <td class="md" nowrap valign="top">int string_equal           </td>          <td class="md" valign="top">(&nbsp;</td>          <td class="md" nowrap valign="top">void *&nbsp;</td>          <td class="mdname" nowrap> <em>string1</em>, </td>        </tr>        <tr>          <td class="md" nowrap align="right"></td>          <td class="md"></td>          <td class="md" nowrap>void *&nbsp;</td>          <td class="mdname" nowrap> <em>string2</em></td>        </tr>        <tr>          <td class="md"></td>          <td class="md">)&nbsp;</td>          <td class="md" colspan="2"></td>        </tr>      </table>    </td>  </tr></table><table cellspacing="5" cellpadding="0" border="0">  <tr>    <td>      &nbsp;    </td>    <td><p>Compare two strings to determine if they are equal. <p><dl compact><dt><b>Parameters:</b></dt><dd>  <table border="0" cellspacing="2" cellpadding="0">    <tr><td valign="top"></td><td valign="top"><em>string1</em>&nbsp;</td><td>The first string. </td></tr>    <tr><td valign="top"></td><td valign="top"><em>string2</em>&nbsp;</td><td>The second string. </td></tr>  </table></dl><dl compact><dt><b>Returns:</b></dt><dd>Non-zero if the strings are equal, zero if they are not equal.</dd></dl>    </td>  </tr></table><a class="anchor" name="a3"></a><!-- doxytag: member="compare-string.h::string_nocase_compare" ref="a3" args="(void *string1, void *string2)" --><p><table class="mdTable" cellpadding="2" cellspacing="0">  <tr>    <td class="mdRow">      <table cellpadding="0" cellspacing="0" border="0">        <tr>          <td class="md" nowrap valign="top">int string_nocase_compare           </td>          <td class="md" valign="top">(&nbsp;</td>          <td class="md" nowrap valign="top">void *&nbsp;</td>          <td class="mdname" nowrap> <em>string1</em>, </td>        </tr>        <tr>          <td class="md" nowrap align="right"></td>          <td class="md"></td>          <td class="md" nowrap>void *&nbsp;</td>          <td class="mdname" nowrap> <em>string2</em></td>        </tr>        <tr>          <td class="md"></td>          <td class="md">)&nbsp;</td>          <td class="md" colspan="2"></td>        </tr>      </table>    </td>  </tr></table><table cellspacing="5" cellpadding="0" border="0">  <tr>    <td>      &nbsp;    </td>    <td><p>Compare two strings, ignoring the case of letters. <p><dl compact><dt><b>Parameters:</b></dt><dd>  <table border="0" cellspacing="2" cellpadding="0">    <tr><td valign="top"></td><td valign="top"><em>string1</em>&nbsp;</td><td>The first string. </td></tr>    <tr><td valign="top"></td><td valign="top"><em>string2</em>&nbsp;</td><td>The second string. </td></tr>  </table></dl><dl compact><dt><b>Returns:</b></dt><dd>A negative value if the first string should be sorted before the second, a positive value if the first string should be sorted after the second, zero if the two strings are equal.</dd></dl>    </td>  </tr></table><a class="anchor" name="a2"></a><!-- doxytag: member="compare-string.h::string_nocase_equal" ref="a2" args="(void *string1, void *string2)" --><p><table class="mdTable" cellpadding="2" cellspacing="0">  <tr>    <td class="mdRow">      <table cellpadding="0" cellspacing="0" border="0">        <tr>          <td class="md" nowrap valign="top">int string_nocase_equal           </td>          <td class="md" valign="top">(&nbsp;</td>          <td class="md" nowrap valign="top">void *&nbsp;</td>          <td class="mdname" nowrap> <em>string1</em>, </td>        </tr>        <tr>          <td class="md" nowrap align="right"></td>          <td class="md"></td>          <td class="md" nowrap>void *&nbsp;</td>          <td class="mdname" nowrap> <em>string2</em></td>        </tr>        <tr>          <td class="md"></td>          <td class="md">)&nbsp;</td>          <td class="md" colspan="2"></td>        </tr>      </table>    </td>  </tr></table><table cellspacing="5" cellpadding="0" border="0">  <tr>    <td>      &nbsp;    </td>    <td><p>Compare two strings to determine if they are equal, ignoring the case of letters. <p><dl compact><dt><b>Parameters:</b></dt><dd>  <table border="0" cellspacing="2" cellpadding="0">    <tr><td valign="top"></td><td valign="top"><em>string1</em>&nbsp;</td><td>The first string. </td></tr>    <tr><td valign="top"></td><td valign="top"><em>string2</em>&nbsp;</td><td>The second string. </td></tr>  </table></dl><dl compact><dt><b>Returns:</b></dt><dd>Non-zero if the strings are equal, zero if they are not equal.</dd></dl>    </td>  </tr></table><hr size="1"><address style="align: right;"><small>Generated on Mon Jan 30 18:56:23 2006 for C Algorithms by&nbsp;<a href="http://www.doxygen.org/index.html"><img src="doxygen.png" alt="doxygen" align="middle" border="0"></a> 1.4.4 </small></address></body></html>

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -