📄 pstring_8h.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>pstring.h File 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>pstring.h File Reference</h1><code>#include <string></code><br><code>#include <vector></code><br><p><a href="pstring_8h-source.html">Go to the source code of this file.</a><table border=0 cellpadding=0 cellspacing=0><tr><td></td></tr><tr><td colspan=2><br><h2>Compounds</h2></td></tr><tr><td nowrap align=right valign=top>class </td><td valign=bottom><a class="el" href="classPRegularExpression.html">PRegularExpression</a></td></tr><tr><td nowrap align=right valign=top>struct </td><td valign=bottom><a class="el" href="structPStringToString_1_1Initialiser.html">Initialiser</a></td></tr><tr><td> </td><td><font size=-1><em>Structure for static array initialiser for class.</em> <a href="structPStringToString_1_1Initialiser.html#_details">More...</a><em></em></font><br><br></td></tr><tr><td nowrap align=right valign=top>struct </td><td valign=bottom><a class="el" href="structPStringToOrdinal_1_1Initialiser.html">Initialiser</a></td></tr><tr><td> </td><td><font size=-1><em>Structure for static array initialiser for class.</em> <a href="structPStringToOrdinal_1_1Initialiser.html#_details">More...</a><em></em></font><br><br></td></tr><tr><td nowrap align=right valign=top>struct </td><td valign=bottom><a class="el" href="structPOrdinalToString_1_1Initialiser.html">Initialiser</a></td></tr><tr><td> </td><td><font size=-1><em>Structure for static array initialiser for class.</em> <a href="structPOrdinalToString_1_1Initialiser.html#_details">More...</a><em></em></font><br><br></td></tr><tr><td nowrap align=right valign=top>class </td><td valign=bottom><a class="el" href="classPOrdinalToString.html">POrdinalToString</a></td></tr><tr><td nowrap align=right valign=top>class </td><td valign=bottom><a class="el" href="classPSortedStringList.html">PSortedStringList</a></td></tr><tr><td nowrap align=right valign=top>class </td><td valign=bottom><a class="el" href="classPStringArray.html">PStringArray</a></td></tr><tr><td nowrap align=right valign=top>class </td><td valign=bottom><a class="el" href="classPStringList.html">PStringList</a></td></tr><tr><td nowrap align=right valign=top>class </td><td valign=bottom><a class="el" href="classPStringSet.html">PStringSet</a></td></tr><tr><td nowrap align=right valign=top>class </td><td valign=bottom><a class="el" href="classPCaselessString.html">PCaselessString</a></td></tr><tr><td nowrap align=right valign=top>class </td><td valign=bottom><a class="el" href="classPString.html">PString</a></td></tr><tr><td nowrap align=right valign=top>class </td><td valign=bottom><a class="el" href="classPStringStream.html">PStringStream</a></td></tr><tr><td nowrap align=right valign=top>class </td><td valign=bottom><a class="el" href="classPStringToOrdinal.html">PStringToOrdinal</a></td></tr><tr><td nowrap align=right valign=top>class </td><td valign=bottom><a class="el" href="classPStringToString.html">PStringToString</a></td></tr><tr><td colspan=2><br><h2>Defines</h2></td></tr><tr><td nowrap align=right valign=top>#define </td><td valign=bottom><a class="el" href="pstring_8h.html#a0">PSTRING_DICTIONARY</a>(cls, K)</td></tr><tr><td nowrap align=right valign=top>#define </td><td valign=bottom><a class="el" href="pstring_8h.html#a1">PDECLARE_STRING_DICTIONARY</a>(cls, K)</td></tr></table><hr><h2>Define Documentation</h2><a name="a1" doxytag="pstring.h::PDECLARE_STRING_DICTIONARY"></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"> #define PDECLARE_STRING_DICTIONARY</td> <td class="md" valign="top">( </td> <td class="md" nowrap valign="top">cls, <tr> <td></td> <td></td> <td class="md" nowrap>K </td> <td class="mdname1" valign="top" nowrap> </td> <td class="md" valign="top">) </td> <td class="md" nowrap> </table> </td> </tr></table><table cellspacing=5 cellpadding=0 border=0> <tr> <td> </td> <td><p><b>Value:</b><div class="fragment"><pre><a class="code" href="pstring_8h.html#a0">PSTRING_DICTIONARY</a>(cls##_PTemplate, K); \ <a class="code" href="object_8h.html#a28">PDECLARE_CLASS</a>(cls, cls##_PTemplate) \ <span class="keyword">protected</span>: \ cls(<span class="keywordtype">int</span> dummy, <span class="keyword">const</span> cls * c) \ : cls##_PTemplate(dummy, c) { } \ <span class="keyword">public</span>: \ cls() \ : cls##_PTemplate() { } \ <span class="keyword">virtual</span> <a class="code" href="classPObject.html">PObject</a> * Clone() <span class="keyword">const</span> \ { <span class="keywordflow">return</span> <a class="code" href="object_8h.html#a18">PNEW</a> cls(0, <span class="keyword">this</span>); } \</pre></div> </td> </tr></table><a name="a0" doxytag="pstring.h::PSTRING_DICTIONARY"></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"> #define PSTRING_DICTIONARY</td> <td class="md" valign="top">( </td> <td class="md" nowrap valign="top">cls, <tr> <td></td> <td></td> <td class="md" nowrap>K </td> <td class="mdname1" valign="top" nowrap> </td> <td class="md" valign="top">) </td> <td class="md" nowrap> </table> </td> </tr></table><table cellspacing=5 cellpadding=0 border=0> <tr> <td> </td> <td><p><b>Value:</b><div class="fragment"><pre><span class="keyword">class </span>cls : <span class="keyword">public</span> <a class="code" href="classPAbstractDictionary.html">PAbstractDictionary</a> { \ <a class="code" href="object_8h.html#a27">PCLASSINFO</a>(cls, <a class="code" href="classPAbstractDictionary.html">PAbstractDictionary</a>) \ <span class="keyword">protected</span>: \ <span class="keyword">inline</span> cls(<span class="keywordtype">int</span> dummy, <span class="keyword">const</span> cls * c) \ : <a class="code" href="classPAbstractDictionary.html">PAbstractDictionary</a>(dummy, c) { } \ <span class="keyword">public</span>: \ <span class="keyword">inline</span> cls() \ : <a class="code" href="classPAbstractDictionary.html">PAbstractDictionary</a>() { } \ <span class="keyword">inline</span> <a class="code" href="classPObject.html">PObject</a> * Clone() <span class="keyword">const</span> \ { <span class="keywordflow">return</span> <a class="code" href="object_8h.html#a18">PNEW</a> cls(0, <span class="keyword">this</span>); } \ <span class="keyword">inline</span> <a class="code" href="classPString.html">PString</a> & operator[](<span class="keyword">const</span> K & key) <span class="keyword">const</span> \ { <span class="keywordflow">return</span> (<a class="code" href="classPString.html">PString</a> &)GetRefAt(key); } \ <span class="keyword">inline</span> <a class="code" href="classPString.html">PString</a> operator()(<span class="keyword">const</span> K & key, <span class="keyword">const</span> <span class="keywordtype">char</span> * dflt = <span class="stringliteral">""</span>) <span class="keyword">const</span> \ { <span class="keywordflow">if</span> (Contains(key)) <span class="keywordflow">return</span> (<a class="code" href="classPString.html">PString</a> &)GetRefAt(key); <span class="keywordflow">return</span> dflt; } \ <span class="keyword">virtual</span> BOOL Contains(<span class="keyword">const</span> K & key) <span class="keyword">const</span> \ { <span class="keywordflow">return</span> AbstractContains(key); } \ <span class="keyword">virtual</span> <a class="code" href="classPString.html">PString</a> * RemoveAt(<span class="keyword">const</span> K & key) \ { <a class="code" href="classPString.html">PString</a> * s = GetAt(key); AbstractSetAt(key, NULL); <span class="keywordflow">return</span> s; } \ <span class="keyword">virtual</span> <a class="code" href="classPString.html">PString</a> * GetAt(<span class="keyword">const</span> K & key) <span class="keyword">const</span> \ { <span class="keywordflow">return</span> (<a class="code" href="classPString.html">PString</a> *)AbstractGetAt(key); } \ <span class="keyword">virtual</span> BOOL SetDataAt(PINDEX index, <span class="keyword">const</span> <a class="code" href="classPString.html">PString</a> & str) \ { <span class="keywordflow">return</span> <a class="code" href="classPAbstractDictionary.html#z105_0">PAbstractDictionary::SetDataAt</a>(index,<a class="code" href="object_8h.html#a18">PNEW</a> <a class="code" href="classPString.html">PString</a>(str));} \ <span class="keyword">virtual</span> BOOL SetAt(<span class="keyword">const</span> K & key, <span class="keyword">const</span> <a class="code" href="classPString.html">PString</a> & str) \ { <span class="keywordflow">return</span> AbstractSetAt(key, <a class="code" href="object_8h.html#a18">PNEW</a> <a class="code" href="classPString.html">PString</a>(str)); } \ <span class="keyword">inline</span> <span class="keyword">const</span> K & GetKeyAt(PINDEX index) <span class="keyword">const</span> \ { <span class="keywordflow">return</span> (<span class="keyword">const</span> K &)AbstractGetKeyAt(index); } \ <span class="keyword">inline</span> <a class="code" href="classPString.html">PString</a> & GetDataAt(PINDEX index) <span class="keyword">const</span> \ { <span class="keywordflow">return</span> (<a class="code" href="classPString.html">PString</a> &)AbstractGetDataAt(index); } \ }</pre></div> </td> </tr></table><hr><address style="align: right;"><small>Generated on Wed Sep 29 22:44:12 2004 for PWLib by<a href="http://www.doxygen.org/index.html"><img src="doxygen.png" alt="doxygen" align="middle" border=0 width=110 height=53></a>1.2.18 </small></address></body></html>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -