|
|
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/> <meta http-equiv="X-UA-Compatible" content="IE=9"/> <meta name="generator" content="Doxygen 1.8.9.1"/> <title>Xerces-C++: XMLStringTokenizer Class Reference</title> <link href="tabs.css" rel="stylesheet" type="text/css"/> <script type="text/javascript" src="jquery.js"></script> <script type="text/javascript" src="dynsections.js"></script> <link href="doxygen.css" rel="stylesheet" type="text/css" /> </head> <body> <div id="top"><!-- do not remove this div, it is closed by doxygen! --> <div id="titlearea"> <table cellspacing="0" cellpadding="0"> <tbody> <tr style="height: 56px;"> <td style="padding-left: 0.5em;"> <div id="projectname">Xerces-C++  <span id="projectnumber">3.1.2</span> </div> </td> </tr> </tbody> </table> </div> <!-- end header part --> <!-- Generated by Doxygen 1.8.9.1 --> <div id="navrow1" class="tabs"> <ul class="tablist"> <li><a href="index.html"><span>Main Page</span></a></li> <li><a href="pages.html"><span>Related Pages</span></a></li> <li class="current"><a href="annotated.html"><span>Classes</span></a></li> <li><a href="files.html"><span>Files</span></a></li> </ul> </div> <div id="navrow2" class="tabs2"> <ul class="tablist"> <li><a href="annotated.html"><span>Class List</span></a></li> <li><a href="classes.html"><span>Class Index</span></a></li> <li><a href="hierarchy.html"><span>Class Hierarchy</span></a></li> <li><a href="functions.html"><span>Class Members</span></a></li> </ul> </div> </div><!-- top --> <div class="header"> <div class="summary"> <a href="classXMLStringTokenizer-members.html">List of all members</a> </div> <div class="headertitle"> <div class="title">XMLStringTokenizer Class Reference</div> </div> </div><!--header--> <div class="contents">
<p>The string tokenizer class breaks a string into tokens. <a href="classXMLStringTokenizer.html#details">More...</a></p> <div class="dynheader"> Inheritance diagram for XMLStringTokenizer:</div> <div class="dyncontent"> <div class="center"> <img src="classXMLStringTokenizer.png" usemap="#XMLStringTokenizer_map" alt=""/> <map id="XMLStringTokenizer_map" name="XMLStringTokenizer_map"> <area href="classXMemory.html" title="This class makes it possible to override the C++ memory management by adding new/delete operators to ..." alt="XMemory" shape="rect" coords="0,0,127,24"/> </map> </div></div> <table class="memberdecls"> <tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pub-methods"></a> Public Member Functions</h2></td></tr> <tr><td colspan="2"><div class="groupHeader">Constructors</div></td></tr> <tr class="memitem:ab67fc38fceaa0a8e17b8bbefa35d2b6f"><td class="memItemLeft" align="right" valign="top"> </td><td class="memItemRight" valign="bottom"><a class="el" href="classXMLStringTokenizer.html#ab67fc38fceaa0a8e17b8bbefa35d2b6f">XMLStringTokenizer</a> (const <a class="el" href="Xerces__autoconf__config_8borland_8hpp.html#a8cb107980a360c490ad7661f5d27cc0e">XMLCh</a> *const srcStr, <a class="el" href="classMemoryManager.html">MemoryManager</a> *const manager=<a class="el" href="classXMLPlatformUtils.html#a97eff0d9fff3567bea3acd3ca4d95252">XMLPlatformUtils::fgMemoryManager</a>)</td></tr> <tr class="memdesc:ab67fc38fceaa0a8e17b8bbefa35d2b6f"><td class="mdescLeft"> </td><td class="mdescRight">Constructs a string tokenizer for the specified string. <a href="#ab67fc38fceaa0a8e17b8bbefa35d2b6f">More...</a><br /></td></tr> <tr class="separator:ab67fc38fceaa0a8e17b8bbefa35d2b6f"><td class="memSeparator" colspan="2"> </td></tr> <tr class="memitem:a4609066598260e17e6d25c3a74bda5b0"><td class="memItemLeft" align="right" valign="top"> </td><td class="memItemRight" valign="bottom"><a class="el" href="classXMLStringTokenizer.html#a4609066598260e17e6d25c3a74bda5b0">XMLStringTokenizer</a> (const <a class="el" href="Xerces__autoconf__config_8borland_8hpp.html#a8cb107980a360c490ad7661f5d27cc0e">XMLCh</a> *const srcStr, const <a class="el" href="Xerces__autoconf__config_8borland_8hpp.html#a8cb107980a360c490ad7661f5d27cc0e">XMLCh</a> *const delim, <a class="el" href="classMemoryManager.html">MemoryManager</a> *const manager=<a class="el" href="classXMLPlatformUtils.html#a97eff0d9fff3567bea3acd3ca4d95252">XMLPlatformUtils::fgMemoryManager</a>)</td></tr> <tr class="memdesc:a4609066598260e17e6d25c3a74bda5b0"><td class="mdescLeft"> </td><td class="mdescRight">Constructs a string tokenizer for the specified string. <a href="#a4609066598260e17e6d25c3a74bda5b0">More...</a><br /></td></tr> <tr class="separator:a4609066598260e17e6d25c3a74bda5b0"><td class="memSeparator" colspan="2"> </td></tr> <tr><td colspan="2"><div class="groupHeader">Destructor.</div></td></tr> <tr class="memitem:aa58b2cc48da8cf89e3661729306950a8"><td class="memItemLeft" align="right" valign="top"> </td><td class="memItemRight" valign="bottom"><a class="el" href="classXMLStringTokenizer.html#aa58b2cc48da8cf89e3661729306950a8">~XMLStringTokenizer</a> ()</td></tr> <tr class="separator:aa58b2cc48da8cf89e3661729306950a8"><td class="memSeparator" colspan="2"> </td></tr> <tr><td colspan="2"><div class="groupHeader">Management Function</div></td></tr> <tr class="memitem:ac4ec0d4fc7fac2f9ca454b87429ec83a"><td class="memItemLeft" align="right" valign="top">bool </td><td class="memItemRight" valign="bottom"><a class="el" href="classXMLStringTokenizer.html#ac4ec0d4fc7fac2f9ca454b87429ec83a">hasMoreTokens</a> ()</td></tr> <tr class="memdesc:ac4ec0d4fc7fac2f9ca454b87429ec83a"><td class="mdescLeft"> </td><td class="mdescRight">Tests if there are more tokens available from this tokenizer's string. <a href="#ac4ec0d4fc7fac2f9ca454b87429ec83a">More...</a><br /></td></tr> <tr class="separator:ac4ec0d4fc7fac2f9ca454b87429ec83a"><td class="memSeparator" colspan="2"> </td></tr> <tr class="memitem:a234f1a1c95c6aae63db1269912a81ba1"><td class="memItemLeft" align="right" valign="top">unsigned int </td><td class="memItemRight" valign="bottom"><a class="el" href="classXMLStringTokenizer.html#a234f1a1c95c6aae63db1269912a81ba1">countTokens</a> ()</td></tr> <tr class="memdesc:a234f1a1c95c6aae63db1269912a81ba1"><td class="mdescLeft"> </td><td class="mdescRight">Calculates the number of times that this tokenizer's nextToken method can be called to return a valid token. <a href="#a234f1a1c95c6aae63db1269912a81ba1">More...</a><br /></td></tr> <tr class="separator:a234f1a1c95c6aae63db1269912a81ba1"><td class="memSeparator" colspan="2"> </td></tr> <tr class="memitem:aaec650741569b482a0ac2c370bb366f7"><td class="memItemLeft" align="right" valign="top"><a class="el" href="Xerces__autoconf__config_8borland_8hpp.html#a8cb107980a360c490ad7661f5d27cc0e">XMLCh</a> * </td><td class="memItemRight" valign="bottom"><a class="el" href="classXMLStringTokenizer.html#aaec650741569b482a0ac2c370bb366f7">nextToken</a> ()</td></tr> <tr class="memdesc:aaec650741569b482a0ac2c370bb366f7"><td class="mdescLeft"> </td><td class="mdescRight">Returns the next token from this string tokenizer. <a href="#aaec650741569b482a0ac2c370bb366f7">More...</a><br /></td></tr> <tr class="separator:aaec650741569b482a0ac2c370bb366f7"><td class="memSeparator" colspan="2"> </td></tr> <tr class="inherit_header pub_methods_classXMemory"><td colspan="2" onclick="javascript:toggleInherit('pub_methods_classXMemory')"><img src="closed.png" alt="-"/> Public Member Functions inherited from <a class="el" href="classXMemory.html">XMemory</a></td></tr> <tr class="memitem:a717678d9deadc627a41fe0dddede9f7f inherit pub_methods_classXMemory"><td class="memItemLeft" align="right" valign="top">void * </td><td class="memItemRight" valign="bottom"><a class="el" href="classXMemory.html#a717678d9deadc627a41fe0dddede9f7f">operator new</a> (size_t size)</td></tr> <tr class="memdesc:a717678d9deadc627a41fe0dddede9f7f inherit pub_methods_classXMemory"><td class="mdescLeft"> </td><td class="mdescRight">This method overrides operator new. <a href="#a717678d9deadc627a41fe0dddede9f7f">More...</a><br /></td></tr> <tr class="separator:a717678d9deadc627a41fe0dddede9f7f inherit pub_methods_classXMemory"><td class="memSeparator" colspan="2"> </td></tr> <tr class="memitem:ac3022fcc968c684a31c1e6a9ede83c10 inherit pub_methods_classXMemory"><td class="memItemLeft" align="right" valign="top">void * </td><td class="memItemRight" valign="bottom"><a class="el" href="classXMemory.html#ac3022fcc968c684a31c1e6a9ede83c10">operator new</a> (size_t size, <a class="el" href="classMemoryManager.html">MemoryManager</a> *memMgr)</td></tr> <tr class="memdesc:ac3022fcc968c684a31c1e6a9ede83c10 inherit pub_methods_classXMemory"><td class="mdescLeft"> </td><td class="mdescRight">This method defines a custom operator new, that will use the provided memory manager to perform the allocation. <a href="#ac3022fcc968c684a31c1e6a9ede83c10">More...</a><br /></td></tr> <tr class="separator:ac3022fcc968c684a31c1e6a9ede83c10 inherit pub_methods_classXMemory"><td class="memSeparator" colspan="2"> </td></tr> <tr class="memitem:aeaad885b799ac2188ffd28f76182339c inherit pub_methods_classXMemory"><td class="memItemLeft" align="right" valign="top">void * </td><td class="memItemRight" valign="bottom"><a class="el" href="classXMemory.html#aeaad885b799ac2188ffd28f76182339c">operator new</a> (size_t size, void *ptr)</td></tr> <tr class="memdesc:aeaad885b799ac2188ffd28f76182339c inherit pub_methods_classXMemory"><td class="mdescLeft"> </td><td class="mdescRight">This method overrides placement operator new. <a href="#aeaad885b799ac2188ffd28f76182339c">More...</a><br /></td></tr> <tr class="separator:aeaad885b799ac2188ffd28f76182339c inherit pub_methods_classXMemory"><td class="memSeparator" colspan="2"> </td></tr> <tr class="memitem:a9da30f1601ea458908cbf150fc2f8f8b inherit pub_methods_classXMemory"><td class="memItemLeft" align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="classXMemory.html#a9da30f1601ea458908cbf150fc2f8f8b">operator delete</a> (void *p)</td></tr> <tr class="memdesc:a9da30f1601ea458908cbf150fc2f8f8b inherit pub_methods_classXMemory"><td class="mdescLeft"> </td><td class="mdescRight">This method overrides operator delete. <a href="#a9da30f1601ea458908cbf150fc2f8f8b">More...</a><br /></td></tr> <tr class="separator:a9da30f1601ea458908cbf150fc2f8f8b inherit pub_methods_classXMemory"><td class="memSeparator" colspan="2"> </td></tr> <tr class="memitem:a22efbc6459bdbe79f83b7791bba4d1f6 inherit pub_methods_classXMemory"><td class="memItemLeft" align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="classXMemory.html#a22efbc6459bdbe79f83b7791bba4d1f6">operator delete</a> (void *p, <a class="el" href="classMemoryManager.html">MemoryManager</a> *memMgr)</td></tr> <tr class="memdesc:a22efbc6459bdbe79f83b7791bba4d1f6 inherit pub_methods_classXMemory"><td class="mdescLeft"> </td><td class="mdescRight">This method provides a matching delete for the custom operator new. <a href="#a22efbc6459bdbe79f83b7791bba4d1f6">More...</a><br /></td></tr> <tr class="separator:a22efbc6459bdbe79f83b7791bba4d1f6 inherit pub_methods_classXMemory"><td class="memSeparator" colspan="2"> </td></tr> <tr class="memitem:a32ee38b70d412e12f669cfbd86adf623 inherit pub_methods_classXMemory"><td class="memItemLeft" align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="classXMemory.html#a32ee38b70d412e12f669cfbd86adf623">operator delete</a> (void *p, void *ptr)</td></tr> <tr class="memdesc:a32ee38b70d412e12f669cfbd86adf623 inherit pub_methods_classXMemory"><td class="mdescLeft"> </td><td class="mdescRight">This method provides a matching delete for the placement new. <a href="#a32ee38b70d412e12f669cfbd86adf623">More...</a><br /></td></tr> <tr class="separator:a32ee38b70d412e12f669cfbd86adf623 inherit pub_methods_classXMemory"><td class="memSeparator" colspan="2"> </td></tr> </table><table class="memberdecls"> <tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="inherited"></a> Additional Inherited Members</h2></td></tr> <tr class="inherit_header pro_methods_classXMemory"><td colspan="2" onclick="javascript:toggleInherit('pro_methods_classXMemory')"><img src="closed.png" alt="-"/> Protected Member Functions inherited from <a class="el" href="classXMemory.html">XMemory</a></td></tr> <tr class="memitem:ae5b8adaa10d5d9276b42823f47e06858 inherit pro_methods_classXMemory"><td class="memItemLeft" align="right" valign="top"> </td><td class="memItemRight" valign="bottom"><a class="el" href="classXMemory.html#ae5b8adaa10d5d9276b42823f47e06858">XMemory</a> ()</td></tr> <tr class="memdesc:ae5b8adaa10d5d9276b42823f47e06858 inherit pro_methods_classXMemory"><td class="mdescLeft"> </td><td class="mdescRight">Protected default constructor. <a href="#ae5b8adaa10d5d9276b42823f47e06858">More...</a><br /></td></tr> <tr class="separator:ae5b8adaa10d5d9276b42823f47e06858 inherit pro_methods_classXMemory"><td class="memSeparator" colspan="2"> </td></tr> </table> <a name="details" id="details"></a><h2 class="groupheader">Detailed Description</h2> <div class="textblock"><p>The string tokenizer class breaks a string into tokens. </p> <p>The <a class="el" href="classXMLStringTokenizer.html" title="The string tokenizer class breaks a string into tokens. ">XMLStringTokenizer</a> methods do not distinguish among identifiers, numbers, and quoted strings, nor do they recognize and skip comments</p> <p>A <a class="el" href="classXMLStringTokenizer.html" title="The string tokenizer class breaks a string into tokens. ">XMLStringTokenizer</a> object internally maintains a current position within the string to be tokenized. Some operations advance this current position past the characters processed. </p> </div><h2 class="groupheader">Constructor & Destructor Documentation</h2> <a class="anchor" id="ab67fc38fceaa0a8e17b8bbefa35d2b6f"></a> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname">XMLStringTokenizer::XMLStringTokenizer </td> <td>(</td> <td class="paramtype">const <a class="el" href="Xerces__autoconf__config_8borland_8hpp.html#a8cb107980a360c490ad7661f5d27cc0e">XMLCh</a> *const </td> <td class="paramname"><em>srcStr</em>, </td> </tr> <tr> <td class="paramkey"></td> <td></td> <td class="paramtype"><a class="el" href="classMemoryManager.html">MemoryManager</a> *const </td> <td class="paramname"><em>manager</em> = <code><a class="el" href="classXMLPlatformUtils.html#a97eff0d9fff3567bea3acd3ca4d95252">XMLPlatformUtils::fgMemoryManager</a></code> </td> </tr> <tr> <td></td> <td>)</td> <td></td><td></td> </tr> </table> </div><div class="memdoc">
<p>Constructs a string tokenizer for the specified string. </p> <p>The tokenizer uses the default delimiter set, which is "\t\n\r\f": the space character, the tab character, the newline character, the carriage-return character, and the form-feed character. Delimiter characters themselves will not be treated as tokens.</p> <dl class="params"><dt>Parameters</dt><dd> <table class="params"> <tr><td class="paramname">srcStr</td><td>The string to be parsed. </td></tr> <tr><td class="paramname">manager</td><td>Pointer to the memory manager to be used to allocate objects. </td></tr> </table> </dd> </dl>
</div> </div> <a class="anchor" id="a4609066598260e17e6d25c3a74bda5b0"></a> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname">XMLStringTokenizer::XMLStringTokenizer </td> <td>(</td> <td class="paramtype">const <a class="el" href="Xerces__autoconf__config_8borland_8hpp.html#a8cb107980a360c490ad7661f5d27cc0e">XMLCh</a> *const </td> <td class="paramname"><em>srcStr</em>, </td> </tr> <tr> <td class="paramkey"></td> <td></td> <td class="paramtype">const <a class="el" href="Xerces__autoconf__config_8borland_8hpp.html#a8cb107980a360c490ad7661f5d27cc0e">XMLCh</a> *const </td> <td class="paramname"><em>delim</em>, </td> </tr> <tr> <td class="paramkey"></td> <td></td> <td class="paramtype"><a class="el" href="classMemoryManager.html">MemoryManager</a> *const </td> <td class="paramname"><em>manager</em> = <code><a class="el" href="classXMLPlatformUtils.html#a97eff0d9fff3567bea3acd3ca4d95252">XMLPlatformUtils::fgMemoryManager</a></code> </td> </tr> <tr> <td></td> <td>)</td> <td></td><td></td> </tr> </table> </div><div class="memdoc">
<p>Constructs a string tokenizer for the specified string. </p> <p>The characters in the delim argument are the delimiters for separating tokens. Delimiter characters themselves will not be treated as tokens.</p> <dl class="params"><dt>Parameters</dt><dd> <table class="params"> <tr><td class="paramname">srcStr</td><td>The string to be parsed. </td></tr> <tr><td class="paramname">delim</td><td>The set of delimiters. </td></tr> <tr><td class="paramname">manager</td><td>Pointer to the memory manager to be used to allocate objects. </td></tr> </table> </dd> </dl>
</div> </div> <a class="anchor" id="aa58b2cc48da8cf89e3661729306950a8"></a> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname">XMLStringTokenizer::~XMLStringTokenizer </td> <td>(</td> <td class="paramname"></td><td>)</td> <td></td> </tr> </table> </div><div class="memdoc">
</div> </div> <h2 class="groupheader">Member Function Documentation</h2> <a class="anchor" id="a234f1a1c95c6aae63db1269912a81ba1"></a> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname">unsigned int XMLStringTokenizer::countTokens </td> <td>(</td> <td class="paramname"></td><td>)</td> <td></td> </tr> </table> </div><div class="memdoc">
<p>Calculates the number of times that this tokenizer's nextToken method can be called to return a valid token. </p> <p>The current position is not advanced.</p> <p>Returns the number of tokens remaining in the string using the current delimiter set. </p>
</div> </div> <a class="anchor" id="ac4ec0d4fc7fac2f9ca454b87429ec83a"></a> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname">bool XMLStringTokenizer::hasMoreTokens </td> <td>(</td> <td class="paramname"></td><td>)</td> <td></td> </tr> </table> </div><div class="memdoc">
<p>Tests if there are more tokens available from this tokenizer's string. </p> <p>Returns true if and only if there is at least one token in the string after the current position; false otherwise. </p>
</div> </div> <a class="anchor" id="aaec650741569b482a0ac2c370bb366f7"></a> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname"><a class="el" href="Xerces__autoconf__config_8borland_8hpp.html#a8cb107980a360c490ad7661f5d27cc0e">XMLCh</a>* XMLStringTokenizer::nextToken </td> <td>(</td> <td class="paramname"></td><td>)</td> <td></td> </tr> </table> </div><div class="memdoc">
<p>Returns the next token from this string tokenizer. </p> <p>Function allocated, function managed (fafm). The calling function does not need to worry about deleting the returned pointer. </p>
</div> </div> <hr/>The documentation for this class was generated from the following file:<ul> <li><a class="el" href="XMLStringTokenizer_8hpp_source.html">XMLStringTokenizer.hpp</a></li> </ul> </div><!-- contents --> <!-- start footer part --> <hr class="footer"/><address class="footer"><small> Generated on Wed Mar 18 2015 10:43:39 for Xerces-C++ by  <a href="http://www.doxygen.org/index.html"> <img class="footer" src="doxygen.png" alt="doxygen"/> </a> 1.8.9.1 </small></address> </body> </html>
|