162 lines
14 KiB
HTML
162 lines
14 KiB
HTML
<!DOCTYPE html>
|
|
<html>
|
|
<head>
|
|
<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0">
|
|
<title>etk Library</title>
|
|
<link rel="stylesheet" href="base.css">
|
|
<link rel="stylesheet" href="menu.css">
|
|
</head>
|
|
<body>
|
|
<div class="navbar navbar-fixed-top">
|
|
<div class="container">
|
|
<h1><a href="index.html">etk library</a></h1>
|
|
<h4><a href="http://github.com/heeroyui/etk/"> [ sources ]</a></h4>
|
|
<h3>API:</h3> <div id="menu">
|
|
<ul class="niveau1">
|
|
<li class="sousmenu"><a href="namespace_etk.html">etk</a>
|
|
<ul class="niveau2">
|
|
<li><a href="namespace_etk__color.html">color</a>
|
|
</li>
|
|
<li><a href="namespace_etk__tool.html">tool</a>
|
|
</li>
|
|
<li><a href="namespace_etk__archive.html">archive</a>
|
|
</li>
|
|
<li><a href="namespace_etk__theme.html">theme</a>
|
|
</li>
|
|
</ul>
|
|
</li>
|
|
<li><a href="namespace_u32char.html">u32char</a>
|
|
</li>
|
|
<li><a href="namespace_utf8.html">utf8</a>
|
|
</li>
|
|
<li><a href="namespace_std.html">std</a>
|
|
</li>
|
|
<li><a href="namespace_debug.html">debug</a>
|
|
</li>
|
|
</ul>
|
|
</div>
|
|
<br/><h3>Associate libraries:</h3><div id="menu">
|
|
<ul class="niveau1"><li><a href="../ewol/index.html">ewol</a></li>
|
|
</ul><ul class="niveau1"><li><a href="../ejson/index.html">ejson</a></li>
|
|
</ul><ul class="niveau1"><li><a href="../egami/index.html">egami</a></li>
|
|
</ul><ul class="niveau1"><li><a href="../ege/index.html">ege</a></li>
|
|
</ul><ul class="niveau1"><li><a href="../esvg/index.html">esvg</a></li>
|
|
</ul><ul class="niveau1"><li><a href="../exml/index.html">exml</a></li>
|
|
</ul></div>
|
|
<br/>
|
|
<br/>
|
|
<br/>
|
|
<br/>
|
|
<br/>
|
|
<br/>
|
|
</div>
|
|
</div>
|
|
<div class="container" id="content">
|
|
<h1>class: etk::RegExpNode</h1><hr/><h2>Description:</h2>
|
|
Node Elements for every-one<br/><br/>
|
|
<h2>Constructor and Destructor:</h2>
|
|
<pre>
|
|
+ <a class="code-function" href="#7428">RegExpNode</a> (<span class="code-type" >void</span> <span class="code-argument"></span>);<br/>+ <span class="code-storage-keyword">virtual</span> <a class="code-function" href="#7430">~RegExpNode</a> (<span class="code-type" >void</span> <span class="code-argument"></span>);<br/></pre>
|
|
<br/>
|
|
<h2>Synopsis:</h2>
|
|
<pre>
|
|
# <span class="code-type" >uint32_t</span> <a class="code-member" href="#7425">m_multipleMin</a>;<br/># <span class="code-type" >uint32_t</span> <a class="code-member" href="#7426">m_multipleMax</a>;<br/># <a class="code-type" href="http://www.cplusplus.com/reference/vector/vector/">std::vector</a><char32_t> <a class="code-member" href="#7427">m_RegExpData</a>;<br/>+ <span class="code-storage-keyword">virtual</span> <span class="code-type" >int32_t</span> <a class="code-function" href="#7432">generate</a> (<span class="code-storage-keyword">const</span> <a class="code-type" href="http://www.cplusplus.com/reference/vector/vector/">std::vector</a><char32_t> & <span class="code-argument">_data</span>);<br/>+ <span class="code-storage-keyword">virtual</span> <span class="code-type" >bool</span> <a class="code-function" href="#7434">parse</a> (<span class="code-storage-keyword">const</span> <span class="code-type" >CLASS_TYPE</span> & <span class="code-argument">_data</span>,<br/> <span class="code-type" >int64_t</span> <span class="code-argument">_currentPos</span>,<br/> <span class="code-type" >int64_t</span> <span class="code-argument">_lenMax</span>,<br/> <span class="code-type" >int64_t</span> & <span class="code-argument">_findLen</span>) = 0;<br/>+ <span class="code-storage-keyword">virtual</span> <span class="code-type" >void</span> <a class="code-function" href="#7439">display</a> (<span class="code-type" >uint32_t</span> <span class="code-argument">_level</span>);<br/>+ <span class="code-type" >void</span> <a class="code-function" href="#7441">setMult</a> (<span class="code-type" >uint32_t</span> <span class="code-argument">_min</span>,<br/> <span class="code-type" >uint32_t</span> <span class="code-argument">_max</span>);<br/># <span class="code-type" >uint32_t</span> <a class="code-function" href="#7444">getMultMin</a> (<span class="code-type" >void</span> <span class="code-argument"></span>) <span class="code-storage-keyword">const</span>;<br/># <span class="code-type" >uint32_t</span> <a class="code-function" href="#7446">getMultMax</a> (<span class="code-type" >void</span> <span class="code-argument"></span>) <span class="code-storage-keyword">const</span>;<br/></pre>
|
|
<br/>
|
|
<h2>Object Hierarchy:<h2>
|
|
<pre>
|
|
etk::RegExpNode<br/> +--> <a href="class_etk__RegExpNodeValue.html">etk::RegExpNodeValue</a><br/> +--> <a href="class_etk__RegExpNodeValue.html">etk::RegExpNodeValue</a><br/> +--> <a href="class_etk__RegExpNodeValue.html">etk::RegExpNodeValue</a><br/> +--> <a href="class_etk__RegExpNodeBracket.html">etk::RegExpNodeBracket</a><br/> +--> <a href="class_etk__RegExpNodeBracket.html">etk::RegExpNodeBracket</a><br/> +--> <a href="class_etk__RegExpNodeBracket.html">etk::RegExpNodeBracket</a><br/> +--> <a href="class_etk__RegExpNodeDigit.html">etk::RegExpNodeDigit</a><br/> +--> <a href="class_etk__RegExpNodeDigit.html">etk::RegExpNodeDigit</a><br/> +--> <a href="class_etk__RegExpNodeDigit.html">etk::RegExpNodeDigit</a><br/> +--> <a href="class_etk__RegExpNodeDigitNot.html">etk::RegExpNodeDigitNot</a><br/> +--> <a href="class_etk__RegExpNodeDigitNot.html">etk::RegExpNodeDigitNot</a><br/> +--> <a href="class_etk__RegExpNodeDigitNot.html">etk::RegExpNodeDigitNot</a><br/> +--> <a href="class_etk__RegExpNodeLetter.html">etk::RegExpNodeLetter</a><br/> +--> <a href="class_etk__RegExpNodeLetter.html">etk::RegExpNodeLetter</a><br/> +--> <a href="class_etk__RegExpNodeLetter.html">etk::RegExpNodeLetter</a><br/> +--> <a href="class_etk__RegExpNodeLetterNot.html">etk::RegExpNodeLetterNot</a><br/> +--> <a href="class_etk__RegExpNodeLetterNot.html">etk::RegExpNodeLetterNot</a><br/> +--> <a href="class_etk__RegExpNodeLetterNot.html">etk::RegExpNodeLetterNot</a><br/> +--> <a href="class_etk__RegExpNodeWhiteSpace.html">etk::RegExpNodeWhiteSpace</a><br/> +--> <a href="class_etk__RegExpNodeWhiteSpace.html">etk::RegExpNodeWhiteSpace</a><br/> +--> <a href="class_etk__RegExpNodeWhiteSpace.html">etk::RegExpNodeWhiteSpace</a><br/> +--> <a href="class_etk__RegExpNodeWhiteSpaceNot.html">etk::RegExpNodeWhiteSpaceNot</a><br/> +--> <a href="class_etk__RegExpNodeWhiteSpaceNot.html">etk::RegExpNodeWhiteSpaceNot</a><br/> +--> <a href="class_etk__RegExpNodeWhiteSpaceNot.html">etk::RegExpNodeWhiteSpaceNot</a><br/> +--> <a href="class_etk__RegExpNodeWordChar.html">etk::RegExpNodeWordChar</a><br/> +--> <a href="class_etk__RegExpNodeWordChar.html">etk::RegExpNodeWordChar</a><br/> +--> <a href="class_etk__RegExpNodeWordChar.html">etk::RegExpNodeWordChar</a><br/> +--> <a href="class_etk__RegExpNodeWordCharNot.html">etk::RegExpNodeWordCharNot</a><br/> +--> <a href="class_etk__RegExpNodeWordCharNot.html">etk::RegExpNodeWordCharNot</a><br/> +--> <a href="class_etk__RegExpNodeWordCharNot.html">etk::RegExpNodeWordCharNot</a><br/> +--> <a href="class_etk__RegExpNodeDot.html">etk::RegExpNodeDot</a><br/> +--> <a href="class_etk__RegExpNodeDot.html">etk::RegExpNodeDot</a><br/> +--> <a href="class_etk__RegExpNodeDot.html">etk::RegExpNodeDot</a><br/> +--> <a href="class_etk__RegExpNodeSOL.html">etk::RegExpNodeSOL</a><br/> +--> <a href="class_etk__RegExpNodeSOL.html">etk::RegExpNodeSOL</a><br/> +--> <a href="class_etk__RegExpNodeSOL.html">etk::RegExpNodeSOL</a><br/> +--> <a href="class_etk__RegExpNodeEOL.html">etk::RegExpNodeEOL</a><br/> +--> <a href="class_etk__RegExpNodeEOL.html">etk::RegExpNodeEOL</a><br/> +--> <a href="class_etk__RegExpNodeEOL.html">etk::RegExpNodeEOL</a><br/> +--> <a href="class_etk__RegExpNodePTheseElem.html">etk::RegExpNodePTheseElem</a><br/> +--> <a href="class_etk__RegExpNodePTheseElem.html">etk::RegExpNodePTheseElem</a><br/> +--> <a href="class_etk__RegExpNodePTheseElem.html">etk::RegExpNodePTheseElem</a><br/> +--> <a href="class_etk__RegExpNodePThese.html">etk::RegExpNodePThese</a><br/> +--> <a href="class_etk__RegExpNodePThese.html">etk::RegExpNodePThese</a><br/> +--> <a href="class_etk__RegExpNodePThese.html">etk::RegExpNodePThese</a><br/></pre>
|
|
<h2>Detail:</h2>
|
|
<a id="7425"/><a id="7426"/><h3>m_multipleMin</h3><pre>
|
|
# <span class="code-type" >uint32_t</span> <span class="code-member">m_multipleMin</span>;<br/></pre>
|
|
|
|
minimum repetition (included)<br/>
|
|
<br/>
|
|
<hr/>
|
|
<a id="7427"/><h3>m_multipleMax</h3><pre>
|
|
# <span class="code-type" >uint32_t</span> <span class="code-member">m_multipleMax</span>;<br/></pre>
|
|
|
|
maximum repetition (included)<br/>
|
|
<br/>
|
|
<hr/>
|
|
<a id="7428"/><h3>m_RegExpData</h3><pre>
|
|
# <a class="code-type" href="http://www.cplusplus.com/reference/vector/vector/">std::vector</a><char32_t> <span class="code-member">m_RegExpData</span>;<br/></pre>
|
|
|
|
data to parse and compare in some case ...<br/>
|
|
<br/>
|
|
<hr/>
|
|
<a id="7430"/><h3>RegExpNode</h3><pre>
|
|
+ <span class="code-function">RegExpNode</span> (<span class="code-type" >void</span> <span class="code-argument"></span>);<br/></pre>
|
|
Constructor<br/>
|
|
<br/>
|
|
<hr/>
|
|
<a id="7432"/><h3>~RegExpNode</h3><pre>
|
|
+ <span class="code-storage-keyword">virtual</span> <span class="code-function">~RegExpNode</span> (<span class="code-type" >void</span> <span class="code-argument"></span>);<br/></pre>
|
|
Destructor<br/>
|
|
<br/>
|
|
<hr/>
|
|
<a id="7434"/><h3>generate</h3><pre>
|
|
+ <span class="code-storage-keyword">virtual</span> <span class="code-type" >int32_t</span> <span class="code-function">generate</span> (<span class="code-storage-keyword">const</span> <a class="code-type" href="http://www.cplusplus.com/reference/vector/vector/">std::vector</a><char32_t> & <span class="code-argument">_data</span>);<br/></pre>
|
|
Generate the regular expression with the current "converted string"<br/><ul>
|
|
<table class="parameter-list">
|
|
<td><b>Parameter [input]:</b></td><td><span class="code-argument">_data</span> </td><td> Property of the regexp</td></tr>
|
|
<tr><td><b>Return: </b></td><td></td><td>the number of element used</td></tr></table>
|
|
</ul>
|
|
|
|
<br/>
|
|
<hr/>
|
|
<a id="7439"/><h3>parse</h3><pre>
|
|
+ <span class="code-storage-keyword">virtual</span> <span class="code-type" >bool</span> <span class="code-function">parse</span> (<span class="code-storage-keyword">const</span> <span class="code-type" >CLASS_TYPE</span> & <span class="code-argument">_data</span>,<br/> <span class="code-type" >int64_t</span> <span class="code-argument">_currentPos</span>,<br/> <span class="code-type" >int64_t</span> <span class="code-argument">_lenMax</span>,<br/> <span class="code-type" >int64_t</span> & <span class="code-argument">_findLen</span>) = 0;<br/></pre>
|
|
Parse the current node<br/><ul>
|
|
<table class="parameter-list">
|
|
<td><b>Parameter [input]:</b></td><td><span class="code-argument">_data</span> </td><td> Data to parse (start pointer / or class that have access with operator[] )</td></tr>
|
|
<td><b>Parameter [input]:</b></td><td><span class="code-argument">_currentPos</span> </td><td> Current parsing position.</td></tr>
|
|
<td><b>Parameter [input]:</b></td><td><span class="code-argument">_lenMax</span> </td><td> Maximum position to parse the data (can be not hte end of the data due to the fact sometime we want to parse sub section).</td></tr>
|
|
<td><b>Parameter [input]:</b></td><td><span class="code-argument">_findLen</span> </td><td> number of element parssed</td></tr>
|
|
<tr><td><b>Return: </b></td><td></td><td>true : Find something<br/>false : Find nothing</td></tr></table>
|
|
</ul>
|
|
|
|
<br/>
|
|
<hr/>
|
|
<a id="7441"/><h3>display</h3><pre>
|
|
+ <span class="code-storage-keyword">virtual</span> <span class="code-type" >void</span> <span class="code-function">display</span> (<span class="code-type" >uint32_t</span> <span class="code-argument">_level</span>);<br/></pre>
|
|
Display the current node properties<br/><ul>
|
|
<table class="parameter-list">
|
|
<td><b>Parameter [input]:</b></td><td><span class="code-argument">level</span> </td><td> of the node</td></tr>
|
|
</table>
|
|
</ul>
|
|
|
|
<br/>
|
|
<hr/>
|
|
<a id="7444"/><h3>setMult</h3><pre>
|
|
+ <span class="code-type" >void</span> <span class="code-function">setMult</span> (<span class="code-type" >uint32_t</span> <span class="code-argument">_min</span>,<br/> <span class="code-type" >uint32_t</span> <span class="code-argument">_max</span>);<br/></pre>
|
|
Set the multiplicity of this Node.<br/><ul>
|
|
<table class="parameter-list">
|
|
<td><b>Parameter [input]:</b></td><td><span class="code-argument">_min</span> </td><td> The minimum appear time.</td></tr>
|
|
<td><b>Parameter [input]:</b></td><td><span class="code-argument">_max</span> </td><td> The maximum appear time.</td></tr>
|
|
</table>
|
|
</ul>
|
|
|
|
<br/>
|
|
<hr/>
|
|
<a id="7446"/><h3>getMultMin</h3><pre>
|
|
# <span class="code-type" >uint32_t</span> <span class="code-function">getMultMin</span> (<span class="code-type" >void</span> <span class="code-argument"></span>) <span class="code-storage-keyword">const</span>;<br/></pre>
|
|
Get the minimum multiplicity.<br/><ul>
|
|
<table class="parameter-list">
|
|
<tr><td><b>Return: </b></td><td></td><td>The minimum appear availlable.</td></tr></table>
|
|
</ul>
|
|
|
|
<br/>
|
|
<hr/>
|
|
<h3>getMultMax</h3><pre>
|
|
# <span class="code-type" >uint32_t</span> <span class="code-function">getMultMax</span> (<span class="code-type" >void</span> <span class="code-argument"></span>) <span class="code-storage-keyword">const</span>;<br/></pre>
|
|
Get the maximum multiplicity.<br/><ul>
|
|
<table class="parameter-list">
|
|
<tr><td><b>Return: </b></td><td></td><td>The maximum appear availlable.</td></tr></table>
|
|
</ul>
|
|
|
|
<br/>
|
|
<hr/>
|
|
</div>
|
|
</body>
|
|
</html>
|