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

📄 classpcaselessstring.html

📁 pwlib开发文档
💻 HTML
📖 第 1 页 / 共 2 页
字号:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN"><html><head><meta http-equiv="Content-Type" content="text/html;charset=iso-8859-1"><title>PCaselessString class Reference</title><link href="doxygen.css" rel="stylesheet" type="text/css"></head><body><!-- Generated by Doxygen 1.2.18 --><center><a class="qindex" href="index.html">Main Page</a> &nbsp; <a class="qindex" href="namespaces.html">Namespace List</a> &nbsp; <a class="qindex" href="hierarchy.html">Class Hierarchy</a> &nbsp; <a class="qindex" href="annotated.html">Compound List</a> &nbsp; <a class="qindex" href="files.html">File List</a> &nbsp; <a class="qindex" href="functions.html">Compound Members</a> &nbsp; <a class="qindex" href="globals.html">File Members</a> &nbsp; </center><hr><h1>PCaselessString Class Reference</h1><code>#include &lt;<a class="el" href="pstring_8h-source.html">pstring.h</a>&gt;</code><p><p>Inheritance diagram for PCaselessString:<p><center><img src="classPCaselessString.png" usemap="#PCaselessString_map" border="0" alt=""></center><map name="PCaselessString_map"><area href="classPString.html" alt="PString" shape="rect" coords="0,56,181,80"><area href="classPCharArray.html" alt="PCharArray" shape="rect" coords="0,0,181,24"><area href="classPColourConverterRegistration.html" alt="PColourConverterRegistration" shape="rect" coords="0,168,181,192"><area href="classPSynonymColourRegistration.html" alt="PSynonymColourRegistration" shape="rect" coords="0,224,181,248"></map><a href="classPCaselessString-members.html">List of all members.</a><table border=0 cellpadding=0 cellspacing=0><tr><td></td></tr><tr><td colspan=2><br><h2>Public Methods</h2></td></tr><tr><td nowrap align=right valign=top>&nbsp;</td><td valign=bottom><a class="el" href="classPCaselessString.html#a0">PCaselessString</a> ()</td></tr><tr><td nowrap align=right valign=top>&nbsp;</td><td valign=bottom><a class="el" href="classPCaselessString.html#a1">PCaselessString</a> (const char *cstr)</td></tr><tr><td nowrap align=right valign=top>&nbsp;</td><td valign=bottom><a class="el" href="classPCaselessString.html#a2">PCaselessString</a> (const <a class="el" href="classPString.html">PString</a> &amp;str)</td></tr><tr><td nowrap align=right valign=top>PCaselessString &amp;&nbsp;</td><td valign=bottom><a class="el" href="classPCaselessString.html#a3">operator=</a> (const <a class="el" href="classPString.html">PString</a> &amp;str)</td></tr><tr><td nowrap align=right valign=top>PCaselessString &amp;&nbsp;</td><td valign=bottom><a class="el" href="classPCaselessString.html#a4">operator=</a> (const char *cstr)</td></tr><tr><td nowrap align=right valign=top>PCaselessString &amp;&nbsp;</td><td valign=bottom><a class="el" href="classPCaselessString.html#a5">operator=</a> (char ch)</td></tr><tr><td nowrap align=right valign=top>virtual <a class="el" href="classPObject.html">PObject</a> *&nbsp;</td><td valign=bottom><a class="el" href="classPCaselessString.html#a6">Clone</a> () const</td></tr><tr><td colspan=2><br><h2>Protected Methods</h2></td></tr><tr><td nowrap align=right valign=top>virtual Comparison&nbsp;</td><td valign=bottom><a class="el" href="classPCaselessString.html#b0">InternalCompare</a> (PINDEX offset, char c) const</td></tr><tr><td nowrap align=right valign=top>virtual Comparison&nbsp;</td><td valign=bottom><a class="el" href="classPCaselessString.html#b1">InternalCompare</a> (PINDEX offset, PINDEX length, const char *cstr) const</td></tr><tr><td nowrap align=right valign=top>&nbsp;</td><td valign=bottom><a class="el" href="classPCaselessString.html#b2">PCaselessString</a> (int dummy, const PCaselessString *str)</td></tr></table><hr><a name="_details"></a><h2>Detailed Description</h2>This class is a variation of a string that ignores case. Thus in all standard comparison (#==#, #&lt;# etc) and search (<a class="el" href="classPString.html#z243_0">Find()</a># etc) functions the case of the characters and strings is ignored.<p>The characters in the string still maintain their case. Only the comparison operations are affected. So printing etc will still display the string as entered. <p><hr><h2>Constructor &amp; Destructor Documentation</h2><a name="a0" doxytag="PCaselessString::PCaselessString"></a><p><table width="100%" cellpadding="2" cellspacing="0" border="0">  <tr>    <td class="md">      <table cellpadding="0" cellspacing="0" border="0">        <tr>          <td class="md" nowrap valign="top"> PINLINE PCaselessString::PCaselessString </td>          <td class="md" valign="top">(&nbsp;</td>          <td class="mdname1" valign="top" nowrap>&nbsp;          </td>          <td class="md" valign="top">)&nbsp;</td>          <td class="md" nowrap></td>        </tr>      </table>    </td>  </tr></table><table cellspacing=5 cellpadding=0 border=0>  <tr>    <td>      &nbsp;    </td>    <td><p>Create a new, empty, caseless string.     </td>  </tr></table><a name="a1" doxytag="PCaselessString::PCaselessString"></a><p><table width="100%" cellpadding="2" cellspacing="0" border="0">  <tr>    <td class="md">      <table cellpadding="0" cellspacing="0" border="0">        <tr>          <td class="md" nowrap valign="top"> PINLINE PCaselessString::PCaselessString </td>          <td class="md" valign="top">(&nbsp;</td>          <td class="md" nowrap valign="top">const char *&nbsp;</td>          <td class="mdname1" valign="top" nowrap>&nbsp; <em>cstr</em>          </td>          <td class="md" valign="top">)&nbsp;</td>          <td class="md" nowrap></td>        </tr>      </table>    </td>  </tr></table><table cellspacing=5 cellpadding=0 border=0>  <tr>    <td>      &nbsp;    </td>    <td><p>Create a new caseless string, initialising it to the characters in the C string provided. <dl compact><dt><b>Parameters: </b></dt><dd><table border=0 cellspacing=2 cellpadding=0><tr><td valign=top><em>cstr</em>&nbsp;</td><td>C string to initialise the caseless string from. </td></tr></table></dl>    </td>  </tr></table><a name="a2" doxytag="PCaselessString::PCaselessString"></a><p><table width="100%" cellpadding="2" cellspacing="0" border="0">  <tr>    <td class="md">      <table cellpadding="0" cellspacing="0" border="0">        <tr>          <td class="md" nowrap valign="top"> PINLINE PCaselessString::PCaselessString </td>          <td class="md" valign="top">(&nbsp;</td>          <td class="md" nowrap valign="top">const <a class="el" href="classPString.html">PString</a> &amp;&nbsp;</td>          <td class="mdname1" valign="top" nowrap>&nbsp; <em>str</em>          </td>          <td class="md" valign="top">)&nbsp;</td>          <td class="md" nowrap></td>        </tr>      </table>    </td>  </tr></table><table cellspacing=5 cellpadding=0 border=0>  <tr>    <td>      &nbsp;    </td>    <td><p>Create a caseless string, with a reference to the characters in the normal <a class="el" href="classPString.html#z231_1">PString</a># provided. A PCaselessString may also be provided to this constructor. <dl compact><dt><b>Parameters: </b></dt><dd><table border=0 cellspacing=2 cellpadding=0><tr><td valign=top><em>str</em>&nbsp;</td><td>String to initialise the caseless string from. </td></tr></table></dl>    </td>  </tr></table><a name="b2" doxytag="PCaselessString::PCaselessString"></a><p><table width="100%" cellpadding="2" cellspacing="0" border="0">  <tr>    <td class="md">      <table cellpadding="0" cellspacing="0" border="0">        <tr>          <td class="md" nowrap valign="top"> PINLINE PCaselessString::PCaselessString </td>          <td class="md" valign="top">(&nbsp;</td>          <td class="md" nowrap valign="top">int&nbsp;</td>          <td class="mdname" nowrap>&nbsp; <em>dummy</em>, </td>        </tr>        <tr>          <td></td>          <td></td>          <td class="md" nowrap>const PCaselessString *&nbsp;</td>          <td class="mdname" nowrap>&nbsp; <em>str</em></td>        </tr>        <tr>          <td></td>          <td class="md">)&nbsp;</td>          <td class="md" colspan="2"><code> [protected]</code></td>        </tr>      </table>    </td>  </tr></table><table cellspacing=5 cellpadding=0 border=0>  <tr>    <td>      &nbsp;    </td>    <td><p>    </td>  </tr></table><hr><h2>Member Function Documentation</h2><a name="a6" doxytag="PCaselessString::Clone"></a><p><table width="100%" cellpadding="2" cellspacing="0" border="0">  <tr>    <td class="md">      <table cellpadding="0" cellspacing="0" border="0">        <tr>          <td class="md" nowrap valign="top"> virtual <a class="el" href="classPObject.html">PObject</a>* PCaselessString::Clone </td>          <td class="md" valign="top">(&nbsp;</td>          <td class="mdname1" valign="top" nowrap>&nbsp;          </td>          <td class="md" valign="top">)&nbsp;</td>          <td class="md" nowrap><code> [virtual]</code></td>        </tr>      </table>    </td>  </tr></table><table cellspacing=5 cellpadding=0 border=0>  <tr>    <td>      &nbsp;    </td>    <td><p>Make a complete duplicate of the string. Note that the data in the array of characters is duplicated as well and the new object is a unique reference to that data. <p>Reimplemented from <a class="el" href="classPString.html#z233_0">PString</a>.    </td>  </tr></table><a name="b1" doxytag="PCaselessString::InternalCompare"></a><p><table width="100%" cellpadding="2" cellspacing="0" border="0">

⌨️ 快捷键说明

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