📄 contain_8inl.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>contain.inl 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>contain.inl File Reference</h1><table border=0 cellpadding=0 cellspacing=0><tr><td></td></tr><tr><td colspan=2><br><h2>Functions</h2></td></tr><tr><td nowrap align=right valign=top>PINLINE <a class="el" href="classPString.html">PString</a> </td><td valign=bottom><a class="el" href="contain_8inl.html#a0">operator+</a> (const char *cstr, const <a class="el" href="classPString.html">PString</a> &str)</td></tr><tr><td nowrap align=right valign=top>PINLINE <a class="el" href="classPString.html">PString</a> </td><td valign=bottom><a class="el" href="contain_8inl.html#a1">operator+</a> (char c, const <a class="el" href="classPString.html">PString</a> &str)</td></tr><tr><td nowrap align=right valign=top>PINLINE <a class="el" href="classPString.html">PString</a> </td><td valign=bottom><a class="el" href="contain_8inl.html#a2">operator &</a> (const char *cstr, const <a class="el" href="classPString.html">PString</a> &str)</td></tr><tr><td nowrap align=right valign=top>PINLINE <a class="el" href="classPString.html">PString</a> </td><td valign=bottom><a class="el" href="contain_8inl.html#a3">operator &</a> (char c, const <a class="el" href="classPString.html">PString</a> &str)</td></tr><tr><td nowrap align=right valign=top>PINLINE <a class="el" href="classPString.html">PString</a> </td><td valign=bottom><a class="el" href="contain_8inl.html#a4">pvsprintf</a> (const <a class="el" href="classPString.html">PString</a> &fmt, va_list args)</td></tr></table><hr><h2>Function Documentation</h2><a name="a3" doxytag="contain.inl::operator &"></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 <a class="el" href="classPString.html">PString</a> operator & </td> <td class="md" valign="top">( </td> <td class="md" nowrap valign="top">char </td> <td class="mdname" nowrap> <em>c</em>, </td> </tr> <tr> <td></td> <td></td> <td class="md" nowrap>const <a class="el" href="classPString.html">PString</a> & </td> <td class="mdname" nowrap> <em>str</em></td> </tr> <tr> <td></td> <td class="md">) </td> <td class="md" colspan="2"></td> </tr> </table> </td> </tr></table><table cellspacing=5 cellpadding=0 border=0> <tr> <td> </td> <td><p>Concatenate a <a class="el" href="classPString.html">PString</a> to a single character to produce a third. The original string is not modified, an entirely new unique reference to a string is created. The c# parameter is typically a literal, eg: \begin{verbatim} myStr = '!' & aStr; \end{verbatim}<p>This function differes from operator+# in that it assures there is at least one space between the strings. Exactly one space is added if there is not a space at the end of the first or beggining of the last string.<p><dl compact><dt><b>Returns: </b></dt><dd> new string with concatenation of the object and parameter. </dl><dl compact><dt><b>Parameters: </b></dt><dd><table border=0 cellspacing=2 cellpadding=0><tr><td valign=top><em>str</em> </td><td>Character to be concatenated to. String to concatenate. </td></tr></table></dl> </td> </tr></table><a name="a2" doxytag="contain.inl::operator &"></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 <a class="el" href="classPString.html">PString</a> operator & </td> <td class="md" valign="top">( </td> <td class="md" nowrap valign="top">const char * </td> <td class="mdname" nowrap> <em>cstr</em>, </td> </tr> <tr> <td></td> <td></td> <td class="md" nowrap>const <a class="el" href="classPString.html">PString</a> & </td> <td class="mdname" nowrap> <em>str</em></td> </tr> <tr> <td></td> <td class="md">) </td> <td class="md" colspan="2"></td> </tr> </table> </td> </tr></table><table cellspacing=5 cellpadding=0 border=0> <tr> <td> </td> <td><p>Concatenate a <a class="el" href="classPString.html">PString</a> to a C string to produce a third. The original string is not modified, an entirely new unique reference to a string is created. The cstr# parameter is typically a literal string, eg: \begin{verbatim} myStr = "fred" & aStr; \end{verbatim}<p>This function differes from operator+ in that it assures there is at least one space between the strings. Exactly one space is added if there is not a space at the end of the first or beggining of the last string.<p><dl compact><dt><b>Returns: </b></dt><dd> new string with concatenation of the object and parameter. </dl><dl compact><dt><b>Parameters: </b></dt><dd><table border=0 cellspacing=2 cellpadding=0><tr><td valign=top><em>str</em> </td><td>C string to be concatenated to. String to concatenate. </td></tr></table></dl> </td> </tr></table><a name="a1" doxytag="contain.inl::operator+"></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 <a class="el" href="classPString.html">PString</a> operator+ </td> <td class="md" valign="top">( </td> <td class="md" nowrap valign="top">char </td> <td class="mdname" nowrap> <em>c</em>, </td> </tr> <tr> <td></td> <td></td> <td class="md" nowrap>const <a class="el" href="classPString.html">PString</a> & </td> <td class="mdname" nowrap> <em>str</em></td> </tr> <tr> <td></td> <td class="md">) </td> <td class="md" colspan="2"></td> </tr> </table> </td> </tr></table><table cellspacing=5 cellpadding=0 border=0> <tr> <td> </td> <td><p>Concatenate a <a class="el" href="classPString.html">PString</a> to a single character to produce a third. The original string is not modified, an entirely new unique reference to a string is created. The c# parameter is typically a literal, eg: \begin{verbatim} myStr = '!' + aStr; \end{verbatim}<p><dl compact><dt><b>Returns: </b></dt><dd> new string with concatenation of the object and parameter. </dl><dl compact><dt><b>Parameters: </b></dt><dd><table border=0 cellspacing=2 cellpadding=0><tr><td valign=top><em>str</em> </td><td>Character to be concatenated to. String to concatenate. </td></tr></table></dl> </td> </tr></table><a name="a0" doxytag="contain.inl::operator+"></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 <a class="el" href="classPString.html">PString</a> operator+ </td> <td class="md" valign="top">( </td> <td class="md" nowrap valign="top">const char * </td> <td class="mdname" nowrap> <em>cstr</em>, </td> </tr> <tr> <td></td> <td></td> <td class="md" nowrap>const <a class="el" href="classPString.html">PString</a> & </td> <td class="mdname" nowrap> <em>str</em></td> </tr> <tr> <td></td> <td class="md">) </td> <td class="md" colspan="2"></td> </tr> </table> </td> </tr></table><table cellspacing=5 cellpadding=0 border=0> <tr> <td> </td> <td><p>Concatenate a <a class="el" href="classPString.html">PString</a> to a C string to produce a third. The original string is not modified, an entirely new unique reference to a string is created. The cstr# parameter is typically a literal string, eg: \begin{verbatim} myStr = "fred" + aStr; \end{verbatim}<p><dl compact><dt><b>Returns: </b></dt><dd> new string with concatenation of the object and parameter. </dl><dl compact><dt><b>Parameters: </b></dt><dd><table border=0 cellspacing=2 cellpadding=0><tr><td valign=top><em>str</em> </td><td>C string to be concatenated to. String to concatenate. </td></tr></table></dl> </td> </tr></table><a name="a4" doxytag="contain.inl::pvsprintf"></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 <a class="el" href="classPString.html">PString</a> pvsprintf </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="mdname" nowrap> <em>fmt</em>, </td> </tr> <tr> <td></td> <td></td> <td class="md" nowrap>va_list </td> <td class="mdname" nowrap> <em>args</em></td> </tr> <tr> <td></td> <td class="md">) </td> <td class="md" colspan="2"></td> </tr> </table> </td> </tr></table><table cellspacing=5 cellpadding=0 border=0> <tr> <td> </td> <td><p>Produce formatted output as a string. This is identical to the standard C library vsprintf()# function, but sends its output to a PString#.<p>This function makes the assumption that there is less the 1000 characters of formatted output. The function will assert if this occurs.<p>Note that this function will break the current instance from multiple references to the string. A new string buffer is allocated and the data from the old string buffer copied to it.<p><dl compact><dt><b>Returns: </b></dt><dd> reference to the current string object. </dl><dl compact><dt><b>Parameters: </b></dt><dd><table border=0 cellspacing=2 cellpadding=0><tr><td valign=top><em>args</em> </td><td>String for output format. Extra parameters for sprintf()# call. </td></tr></table></dl> </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 + -