📄 classpcaselessstring.html
字号:
<!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> <a class="qindex" href="namespaces.html">Namespace List</a> <a class="qindex" href="hierarchy.html">Class Hierarchy</a> <a class="qindex" href="annotated.html">Compound List</a> <a class="qindex" href="files.html">File List</a> <a class="qindex" href="functions.html">Compound Members</a> <a class="qindex" href="globals.html">File Members</a> </center><hr><h1>PCaselessString Class Reference</h1><code>#include <<a class="el" href="pstring_8h-source.html">pstring.h</a>></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> </td><td valign=bottom><a class="el" href="classPCaselessString.html#a0">PCaselessString</a> ()</td></tr><tr><td nowrap align=right valign=top> </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> </td><td valign=bottom><a class="el" href="classPCaselessString.html#a2">PCaselessString</a> (const <a class="el" href="classPString.html">PString</a> &str)</td></tr><tr><td nowrap align=right valign=top>PCaselessString & </td><td valign=bottom><a class="el" href="classPCaselessString.html#a3">operator=</a> (const <a class="el" href="classPString.html">PString</a> &str)</td></tr><tr><td nowrap align=right valign=top>PCaselessString & </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 & </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> * </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 </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 </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> </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 (#==#, #<# 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 & 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">( </td> <td class="mdname1" valign="top" nowrap> </td> <td class="md" valign="top">) </td> <td class="md" nowrap></td> </tr> </table> </td> </tr></table><table cellspacing=5 cellpadding=0 border=0> <tr> <td> </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">( </td> <td class="md" nowrap valign="top">const char * </td> <td class="mdname1" valign="top" nowrap> <em>cstr</em> </td> <td class="md" valign="top">) </td> <td class="md" nowrap></td> </tr> </table> </td> </tr></table><table cellspacing=5 cellpadding=0 border=0> <tr> <td> </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> </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">( </td> <td class="md" nowrap valign="top">const <a class="el" href="classPString.html">PString</a> & </td> <td class="mdname1" valign="top" nowrap> <em>str</em> </td> <td class="md" valign="top">) </td> <td class="md" nowrap></td> </tr> </table> </td> </tr></table><table cellspacing=5 cellpadding=0 border=0> <tr> <td> </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> </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">( </td> <td class="md" nowrap valign="top">int </td> <td class="mdname" nowrap> <em>dummy</em>, </td> </tr> <tr> <td></td> <td></td> <td class="md" nowrap>const PCaselessString * </td> <td class="mdname" nowrap> <em>str</em></td> </tr> <tr> <td></td> <td class="md">) </td> <td class="md" colspan="2"><code> [protected]</code></td> </tr> </table> </td> </tr></table><table cellspacing=5 cellpadding=0 border=0> <tr> <td> </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">( </td> <td class="mdname1" valign="top" nowrap> </td> <td class="md" valign="top">) </td> <td class="md" nowrap><code> [virtual]</code></td> </tr> </table> </td> </tr></table><table cellspacing=5 cellpadding=0 border=0> <tr> <td> </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 + -