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

📄 a00013.html

📁 这是symbian下的实现XML解析的源代码。里面包括解析器和解析例子代码。
💻 HTML
📖 第 1 页 / 共 5 页
字号:
      &nbsp;    </td>    <td><p>Intended Usage: Gets the currently specified base entity URI that was set with the previous SetBase call. <p><dl compact><dt><b>Exceptions:</b></dt><dd>  <table border="0" cellspacing="2" cellpadding="0">    <tr><td valign="top"></td><td valign="top"><em>none</em>&nbsp;</td><td></td></tr>  </table></dl><dl compact><dt><b>Returns:</b></dt><dd>pointer to a string holding the base URI. </dd></dl><dl compact><dt><b>Precondition:</b></dt><dd>none </dd></dl><dl compact><dt><b>Postcondition:</b></dt><dd>Nothing is left on the CleanupStack. </dd></dl>    </td>  </tr></table><a class="anchor" name="CSyParsera4" doxytag="CSyContextualParser::GetBuffer"></a><p><table class="mdTable" width="100%" cellpadding="2" cellspacing="0">  <tr>    <td class="mdRow">      <table cellpadding="0" cellspacing="0" border="0">        <tr>          <td class="md" nowrap valign="top">TAny * CExpatParserBase::GetBuffer           </td>          <td class="md" valign="top">(&nbsp;</td>          <td class="md" nowrap valign="top">const TInt&nbsp;</td>          <td class="mdname1" valign="top" nowrap> <em>aLength</em>          </td>          <td class="md" valign="top">&nbsp;)&nbsp;</td>          <td class="md" nowrap><code> [inherited]</code></td>        </tr>      </table>    </td>  </tr></table><table cellspacing="5" cellpadding="0" border="0">  <tr>    <td>      &nbsp;    </td>    <td><p>Intended Usage: Reallocates or allocates a new internal buffer of the specified length. <p>This buffer is owned by the parser and should not be deleted. <dl compact><dt><b>Exceptions:</b></dt><dd>  <table border="0" cellspacing="2" cellpadding="0">    <tr><td valign="top"></td><td valign="top"><em>none.</em>&nbsp;</td><td></td></tr>  </table></dl><dl compact><dt><b>Parameters:</b></dt><dd>  <table border="0" cellspacing="2" cellpadding="0">    <tr><td valign="top"></td><td valign="top"><em>aLength</em>&nbsp;</td><td>The length of the internal buffer to parse </td></tr>  </table></dl><dl compact><dt><b>Returns:</b></dt><dd>A pointer to the internal buffer or NULL if there was an error either the parser is in an inconsistent state or the memory cannot be allocated. </dd></dl><dl compact><dt><b>Precondition:</b></dt><dd>None </dd></dl><dl compact><dt><b>Postcondition:</b></dt><dd>Nothing is left on the CleanupStack. </dd></dl><dl compact><dt><b>Warning:</b></dt><dd>The returned buffer is owned by the parser and must not be deleted. </dd></dl>    </td>  </tr></table><a class="anchor" name="CSyParsera9" doxytag="CSyContextualParser::GetCurrentByteCount"></a><p><table class="mdTable" width="100%" cellpadding="2" cellspacing="0">  <tr>    <td class="mdRow">      <table cellpadding="0" cellspacing="0" border="0">        <tr>          <td class="md" nowrap valign="top">TInt CExpatParserBase::GetCurrentByteCount           </td>          <td class="md" valign="top">(&nbsp;</td>          <td class="mdname1" valign="top" nowrap>          </td>          <td class="md" valign="top">&nbsp;)&nbsp;</td>          <td class="md" nowrap> const<code> [inherited]</code></td>        </tr>      </table>    </td>  </tr></table><table cellspacing="5" cellpadding="0" border="0">  <tr>    <td>      &nbsp;    </td>    <td><p>Intended Usage: Gets the current number of bytes that have been parsed so far. <p>See GetCurrentByteIndex for limitations and notes on this function <dl compact><dt><b>Exceptions:</b></dt><dd>  <table border="0" cellspacing="2" cellpadding="0">    <tr><td valign="top"></td><td valign="top"><em>none.</em>&nbsp;</td><td></td></tr>  </table></dl><dl compact><dt><b>Returns:</b></dt><dd>The current byte count in the document. </dd></dl><dl compact><dt><b>See also:</b></dt><dd><a class="el" href="../../df/d86/a00012.html#CSyParsera9">GetCurrentByteCount</a> </dd></dl><dl compact><dt><b>Precondition:</b></dt><dd>None </dd></dl><dl compact><dt><b>Postcondition:</b></dt><dd>Nothing is left on the CleanupStack </dd></dl>    </td>  </tr></table><a class="anchor" name="CSyParsera8" doxytag="CSyContextualParser::GetCurrentByteIndex"></a><p><table class="mdTable" width="100%" cellpadding="2" cellspacing="0">  <tr>    <td class="mdRow">      <table cellpadding="0" cellspacing="0" border="0">        <tr>          <td class="md" nowrap valign="top">TInt32 CExpatParserBase::GetCurrentByteIndex           </td>          <td class="md" valign="top">(&nbsp;</td>          <td class="mdname1" valign="top" nowrap>          </td>          <td class="md" valign="top">&nbsp;)&nbsp;</td>          <td class="md" nowrap> const<code> [inherited]</code></td>        </tr>      </table>    </td>  </tr></table><table cellspacing="5" cellpadding="0" border="0">  <tr>    <td>      &nbsp;    </td>    <td><p>Intended Usage: These functions return information about the current parse location. <p>They may be called from any callback called to report some parse event; in this case the location is the location of the first of the sequence of characters that generated the event. When called from callbacks generated by declarations in the document prologue, the location identified isn't as neatly defined, but will be within the relevant markup. When called outside of the callback functions, the position indicated will be just past the last parse event (regardless of whether there was an associated callback).<p>They may also be called after returning from a call to Parse or ParseBuffer. If the return value is EExpatStatusError then the location is the location of the character at which the error was detected; otherwise the location is the location of the last parse event, as described above. <dl compact><dt><b>Exceptions:</b></dt><dd>  <table border="0" cellspacing="2" cellpadding="0">    <tr><td valign="top"></td><td valign="top"><em>none.</em>&nbsp;</td><td></td></tr>  </table></dl><dl compact><dt><b>Returns:</b></dt><dd>The index of where the parser currently is. </dd></dl><dl compact><dt><b>Precondition:</b></dt><dd>None. </dd></dl><dl compact><dt><b>Postcondition:</b></dt><dd>Nothing is left on the CleanupStack </dd></dl>    </td>  </tr></table><a class="anchor" name="CSyParsera11" doxytag="CSyContextualParser::GetCurrentColumnNumber"></a><p><table class="mdTable" width="100%" cellpadding="2" cellspacing="0">  <tr>    <td class="mdRow">      <table cellpadding="0" cellspacing="0" border="0">        <tr>          <td class="md" nowrap valign="top">TInt CExpatParserBase::GetCurrentColumnNumber           </td>          <td class="md" valign="top">(&nbsp;</td>          <td class="mdname1" valign="top" nowrap>          </td>          <td class="md" valign="top">&nbsp;)&nbsp;</td>          <td class="md" nowrap> const<code> [inherited]</code></td>        </tr>      </table>    </td>  </tr></table><table cellspacing="5" cellpadding="0" border="0">  <tr>    <td>      &nbsp;    </td>    <td><p>Intended Usage: Returns the current column number in the document. <p>See GetCurrentByteIndex for limitations and notes on this function <dl compact><dt><b>Exceptions:</b></dt><dd>  <table border="0" cellspacing="2" cellpadding="0">    <tr><td valign="top"></td><td valign="top"><em>none.</em>&nbsp;</td><td></td></tr>  </table></dl><dl compact><dt><b>Returns:</b></dt><dd>The current column number being parsed. </dd></dl><dl compact><dt><b>See also:</b></dt><dd><a class="el" href="../../df/d86/a00012.html#CSyParsera8">GetCurrentByteIndex</a> </dd></dl><dl compact><dt><b>Precondition:</b></dt><dd>None </dd></dl><dl compact><dt><b>Postcondition:</b></dt><dd>Nothing is left on the CleanupStack </dd></dl>    </td>  </tr></table><a class="anchor" name="CSyParsera10" doxytag="CSyContextualParser::GetCurrentLineNumber"></a><p><table class="mdTable" width="100%" cellpadding="2" cellspacing="0">  <tr>    <td class="mdRow">      <table cellpadding="0" cellspacing="0" border="0">        <tr>          <td class="md" nowrap valign="top">TInt CExpatParserBase::GetCurrentLineNumber           </td>          <td class="md" valign="top">(&nbsp;</td>          <td class="mdname1" valign="top" nowrap>          </td>          <td class="md" valign="top">&nbsp;)&nbsp;</td>          <td class="md" nowrap> const<code> [inherited]</code></td>        </tr>      </table>    </td>  </tr></table><table cellspacing="5" cellpadding="0" border="0">  <tr>    <td>      &nbsp;    </td>    <td><p>Intended Usage: Returns the current line number in the document. <p>See GetCurrentByteIndex for limitations and notes on this function <dl compact><dt><b>Exceptions:</b></dt><dd>  <table border="0" cellspacing="2" cellpadding="0">    <tr><td valign="top"></td><td valign="top"><em>none.</em>&nbsp;</td><td></td></tr>  </table></dl><dl compact><dt><b>Returns:</b></dt><dd>The current line number being parsed. </dd></dl><dl compact><dt><b>See also:</b></dt><dd><a class="el" href="../../df/d86/a00012.html#CSyParsera8">GetCurrentByteIndex</a> </dd></dl><dl compact><dt><b>Precondition:</b></dt><dd>None </dd></dl><dl compact><dt><b>Postcondition:</b></dt><dd>Nothing is left on the CleanupStack </dd></dl>    </td>  </tr></table><a class="anchor" name="CSyParsera7" doxytag="CSyContextualParser::GetErrorCode"></a><p><table class="mdTable" width="100%" cellpadding="2" cellspacing="0">  <tr>    <td class="mdRow">      <table cellpadding="0" cellspacing="0" border="0">        <tr>          <td class="md" nowrap valign="top">TSymbianExpatError CExpatParserBase::GetErrorCode           </td>          <td class="md" valign="top">(&nbsp;</td>          <td class="mdname1" valign="top" nowrap>          </td>          <td class="md" valign="top">&nbsp;)&nbsp;</td>          <td class="md" nowrap> const<code> [inherited]</code></td>        </tr>      </table>    </td>  </tr></table><table cellspacing="5" cellpadding="0" border="0">  <tr>    <td>      &nbsp;    </td>    <td><p>Intended Usage: If Parse or ParseBuffer have returned TExpatStatusError, then GetErrorCode returns information about the error. <p><dl compact><dt><b>Exceptions:</b></dt><dd>  <table border="0" cellspacing="2" cellpadding="0">    <tr><td valign="top"></td><td valign="top"><em>none.</em>&nbsp;</td><td></td></tr>  </table></dl><dl compact><dt><b>Returns:</b></dt><dd>TSymbianExpatError enum value </dd></dl><dl compact><dt><b>Precondition:</b></dt><dd>None. </dd></dl><dl compact><dt><b>Postcondition:</b></dt><dd>Nothing is left on the CleanupStack </dd></dl>

⌨️ 快捷键说明

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