You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
325 lines
17 KiB
325 lines
17 KiB
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "https://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
|
|
<html xmlns="http://www.w3.org/1999/xhtml" lang="en-US">
|
|
<head>
|
|
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
|
|
<meta http-equiv="X-UA-Compatible" content="IE=11"/>
|
|
<meta name="generator" content="Doxygen 1.9.7"/>
|
|
<meta name="viewport" content="width=device-width, initial-scale=1"/>
|
|
<title>Webserv: Tokenizer 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="search/search.css" rel="stylesheet" type="text/css"/>
|
|
<script type="text/javascript" src="search/searchdata.js"></script>
|
|
<script type="text/javascript" src="search/search.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 id="projectrow">
|
|
<td id="projectalign">
|
|
<div id="projectname">Webserv
|
|
</div>
|
|
</td>
|
|
</tr>
|
|
</tbody>
|
|
</table>
|
|
</div>
|
|
<!-- end header part -->
|
|
<!-- Generated by Doxygen 1.9.7 -->
|
|
<script type="text/javascript">
|
|
/* @license magnet:?xt=urn:btih:d3d9a9a6595521f9666a5e94cc830dab83b65699&dn=expat.txt MIT */
|
|
var searchBox = new SearchBox("searchBox", "search/",'.html');
|
|
/* @license-end */
|
|
</script>
|
|
<script type="text/javascript" src="menudata.js"></script>
|
|
<script type="text/javascript" src="menu.js"></script>
|
|
<script type="text/javascript">
|
|
/* @license magnet:?xt=urn:btih:d3d9a9a6595521f9666a5e94cc830dab83b65699&dn=expat.txt MIT */
|
|
$(function() {
|
|
initMenu('',true,false,'search.php','Search');
|
|
$(document).ready(function() { init_search(); });
|
|
});
|
|
/* @license-end */
|
|
</script>
|
|
<div id="main-nav"></div>
|
|
<!-- window showing the filter options -->
|
|
<div id="MSearchSelectWindow"
|
|
onmouseover="return searchBox.OnSearchSelectShow()"
|
|
onmouseout="return searchBox.OnSearchSelectHide()"
|
|
onkeydown="return searchBox.OnSearchSelectKey(event)">
|
|
</div>
|
|
|
|
<!-- iframe showing the search results (closed by default) -->
|
|
<div id="MSearchResultsWindow">
|
|
<div id="MSearchResults">
|
|
<div class="SRPage">
|
|
<div id="SRIndex">
|
|
<div id="SRResults"></div>
|
|
<div class="SRStatus" id="Loading">Loading...</div>
|
|
<div class="SRStatus" id="Searching">Searching...</div>
|
|
<div class="SRStatus" id="NoMatches">No Matches</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
|
|
</div><!-- top -->
|
|
<div class="header">
|
|
<div class="summary">
|
|
<a href="#pub-methods">Public Member Functions</a> |
|
|
<a href="#pri-attribs">Private Attributes</a> </div>
|
|
<div class="headertitle"><div class="title">Tokenizer Class Reference</div></div>
|
|
</div><!--header-->
|
|
<div class="contents">
|
|
|
|
<p><code>#include <<a class="el" href="Token_8hpp_source.html">Token.hpp</a>></code></p>
|
|
<table class="memberdecls">
|
|
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a id="pub-methods" name="pub-methods"></a>
|
|
Public Member Functions</h2></td></tr>
|
|
<tr class="memitem:a167f966d6e8bd52ccfecca84c3571098"><td class="memItemLeft" align="right" valign="top"> </td><td class="memItemRight" valign="bottom"><a class="el" href="classTokenizer.html#a167f966d6e8bd52ccfecca84c3571098">Tokenizer</a> (string fileName)</td></tr>
|
|
<tr class="separator:a167f966d6e8bd52ccfecca84c3571098"><td class="memSeparator" colspan="2"> </td></tr>
|
|
<tr class="memitem:ace80ed64add3ef2d0ee9f659a182d935"><td class="memItemLeft" align="right" valign="top">bool </td><td class="memItemRight" valign="bottom"><a class="el" href="classTokenizer.html#ace80ed64add3ef2d0ee9f659a182d935">hasMoreTokens</a> ()</td></tr>
|
|
<tr class="separator:ace80ed64add3ef2d0ee9f659a182d935"><td class="memSeparator" colspan="2"> </td></tr>
|
|
<tr class="memitem:a879cee0d079f48f300cb44ddfe3fb2c5"><td class="memItemLeft" align="right" valign="top">char </td><td class="memItemRight" valign="bottom"><a class="el" href="classTokenizer.html#a879cee0d079f48f300cb44ddfe3fb2c5">getWithoutWhiteSpace</a> ()</td></tr>
|
|
<tr class="separator:a879cee0d079f48f300cb44ddfe3fb2c5"><td class="memSeparator" colspan="2"> </td></tr>
|
|
<tr class="memitem:a49db8c86447ad2cb543b5b1ea877f34d"><td class="memItemLeft" align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="classTokenizer.html#a49db8c86447ad2cb543b5b1ea877f34d">rollBackToken</a> ()</td></tr>
|
|
<tr class="separator:a49db8c86447ad2cb543b5b1ea877f34d"><td class="memSeparator" colspan="2"> </td></tr>
|
|
<tr class="memitem:ad1c7c0a8f85fe189acefe26b857b7375"><td class="memItemLeft" align="right" valign="top"><a class="el" href="Token_8hpp.html#a72a5c4804fbceb590019d751a6842f1f">Token</a> </td><td class="memItemRight" valign="bottom"><a class="el" href="classTokenizer.html#ad1c7c0a8f85fe189acefe26b857b7375">getToken</a> ()</td></tr>
|
|
<tr class="separator:ad1c7c0a8f85fe189acefe26b857b7375"><td class="memSeparator" colspan="2"> </td></tr>
|
|
</table><table class="memberdecls">
|
|
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a id="pri-attribs" name="pri-attribs"></a>
|
|
Private Attributes</h2></td></tr>
|
|
<tr class="memitem:a71af0789a6f3a27aa4c335f4167822f2"><td class="memItemLeft" align="right" valign="top">std::fstream </td><td class="memItemRight" valign="bottom"><a class="el" href="classTokenizer.html#a71af0789a6f3a27aa4c335f4167822f2">file</a></td></tr>
|
|
<tr class="separator:a71af0789a6f3a27aa4c335f4167822f2"><td class="memSeparator" colspan="2"> </td></tr>
|
|
<tr class="memitem:a59a134c63a57a6a6173fa2e12c49b5fd"><td class="memItemLeft" align="right" valign="top">size_t </td><td class="memItemRight" valign="bottom"><a class="el" href="classTokenizer.html#a59a134c63a57a6a6173fa2e12c49b5fd">prevPos</a></td></tr>
|
|
<tr class="separator:a59a134c63a57a6a6173fa2e12c49b5fd"><td class="memSeparator" colspan="2"> </td></tr>
|
|
</table>
|
|
<a name="details" id="details"></a><h2 class="groupheader">Detailed Description</h2>
|
|
<div class="textblock">
|
|
<p class="definition">Definition at line <a class="el" href="Token_8hpp_source.html#l00022">22</a> of file <a class="el" href="Token_8hpp_source.html">Token.hpp</a>.</p>
|
|
</div><h2 class="groupheader">Constructor & Destructor Documentation</h2>
|
|
<a id="a167f966d6e8bd52ccfecca84c3571098" name="a167f966d6e8bd52ccfecca84c3571098"></a>
|
|
<h2 class="memtitle"><span class="permalink"><a href="#a167f966d6e8bd52ccfecca84c3571098">◆ </a></span>Tokenizer()</h2>
|
|
|
|
<div class="memitem">
|
|
<div class="memproto">
|
|
<table class="memname">
|
|
<tr>
|
|
<td class="memname">Tokenizer::Tokenizer </td>
|
|
<td>(</td>
|
|
<td class="paramtype">string </td>
|
|
<td class="paramname"><em>fileName</em></td><td>)</td>
|
|
<td></td>
|
|
</tr>
|
|
</table>
|
|
</div><div class="memdoc">
|
|
|
|
<p class="definition">Definition at line <a class="el" href="Token_8cpp_source.html#l00003">3</a> of file <a class="el" href="Token_8cpp_source.html">Token.cpp</a>.</p>
|
|
|
|
</div>
|
|
</div>
|
|
<h2 class="groupheader">Member Function Documentation</h2>
|
|
<a id="ad1c7c0a8f85fe189acefe26b857b7375" name="ad1c7c0a8f85fe189acefe26b857b7375"></a>
|
|
<h2 class="memtitle"><span class="permalink"><a href="#ad1c7c0a8f85fe189acefe26b857b7375">◆ </a></span>getToken()</h2>
|
|
|
|
<div class="memitem">
|
|
<div class="memproto">
|
|
<table class="memname">
|
|
<tr>
|
|
<td class="memname"><a class="el" href="Token_8hpp.html#a72a5c4804fbceb590019d751a6842f1f">Token</a> Tokenizer::getToken </td>
|
|
<td>(</td>
|
|
<td class="paramname"></td><td>)</td>
|
|
<td></td>
|
|
</tr>
|
|
</table>
|
|
</div><div class="memdoc">
|
|
|
|
<p class="definition">Definition at line <a class="el" href="Token_8cpp_source.html#l00031">31</a> of file <a class="el" href="Token_8cpp_source.html">Token.cpp</a>.</p>
|
|
<div class="dynheader">
|
|
Here is the call graph for this function:</div>
|
|
<div class="dyncontent">
|
|
<div class="center"><img src="classTokenizer_ad1c7c0a8f85fe189acefe26b857b7375_cgraph.png" border="0" usemap="#aclassTokenizer_ad1c7c0a8f85fe189acefe26b857b7375_cgraph" alt=""/></div>
|
|
<map name="aclassTokenizer_ad1c7c0a8f85fe189acefe26b857b7375_cgraph" id="aclassTokenizer_ad1c7c0a8f85fe189acefe26b857b7375_cgraph">
|
|
<area shape="rect" title=" " alt="" coords="5,13,155,38"/>
|
|
<area shape="rect" href="classTokenizer.html#a879cee0d079f48f300cb44ddfe3fb2c5" title=" " alt="" coords="203,5,404,45"/>
|
|
</map>
|
|
</div>
|
|
<div class="dynheader">
|
|
Here is the caller graph for this function:</div>
|
|
<div class="dyncontent">
|
|
<div class="center"><img src="classTokenizer_ad1c7c0a8f85fe189acefe26b857b7375_icgraph.png" border="0" usemap="#aclassTokenizer_ad1c7c0a8f85fe189acefe26b857b7375_icgraph" alt=""/></div>
|
|
<map name="aclassTokenizer_ad1c7c0a8f85fe189acefe26b857b7375_icgraph" id="aclassTokenizer_ad1c7c0a8f85fe189acefe26b857b7375_icgraph">
|
|
<area shape="rect" title=" " alt="" coords="971,144,1120,169"/>
|
|
<area shape="rect" href="classJSONParser.html#ac397e1ef199b5cd553c1dece740a045e" title=" " alt="" coords="108,132,247,157"/>
|
|
<area shape="rect" href="classJSONParser.html#afc1f8f30a01440eae32445b153d6e572" title=" " alt="" coords="732,56,923,81"/>
|
|
<area shape="rect" href="classJSONParser.html#a7d5a3239976c55ca83d974c886146f88" title=" " alt="" coords="523,119,684,144"/>
|
|
<area shape="rect" href="classJSONParser.html#acccb70f3b476f4bf15ac2ab4fc6b2389" title=" " alt="" coords="295,169,475,195"/>
|
|
<area shape="rect" href="classJSONParser.html#a2d1a9d64e8bedc107cb5c9e7c4143fdf" title=" " alt="" coords="732,296,923,321"/>
|
|
<area shape="rect" href="classJSONParser.html#a1ca29ba38533304c6601eafd249d9ed4" title=" " alt="" coords="739,169,915,195"/>
|
|
<area shape="rect" href="webserv_8cpp.html#a0c99d968a34e803d378692bde2e3f18f" title="< The amount of sockets listens" alt="" coords="5,132,60,157"/>
|
|
</map>
|
|
</div>
|
|
|
|
</div>
|
|
</div>
|
|
<a id="a879cee0d079f48f300cb44ddfe3fb2c5" name="a879cee0d079f48f300cb44ddfe3fb2c5"></a>
|
|
<h2 class="memtitle"><span class="permalink"><a href="#a879cee0d079f48f300cb44ddfe3fb2c5">◆ </a></span>getWithoutWhiteSpace()</h2>
|
|
|
|
<div class="memitem">
|
|
<div class="memproto">
|
|
<table class="memname">
|
|
<tr>
|
|
<td class="memname">char Tokenizer::getWithoutWhiteSpace </td>
|
|
<td>(</td>
|
|
<td class="paramname"></td><td>)</td>
|
|
<td></td>
|
|
</tr>
|
|
</table>
|
|
</div><div class="memdoc">
|
|
|
|
<p class="definition">Definition at line <a class="el" href="Token_8cpp_source.html#l00011">11</a> of file <a class="el" href="Token_8cpp_source.html">Token.cpp</a>.</p>
|
|
<div class="dynheader">
|
|
Here is the caller graph for this function:</div>
|
|
<div class="dyncontent">
|
|
<div class="center"><img src="classTokenizer_a879cee0d079f48f300cb44ddfe3fb2c5_icgraph.png" border="0" usemap="#aclassTokenizer_a879cee0d079f48f300cb44ddfe3fb2c5_icgraph" alt=""/></div>
|
|
<map name="aclassTokenizer_a879cee0d079f48f300cb44ddfe3fb2c5_icgraph" id="aclassTokenizer_a879cee0d079f48f300cb44ddfe3fb2c5_icgraph">
|
|
<area shape="rect" title=" " alt="" coords="1168,137,1369,177"/>
|
|
<area shape="rect" href="classTokenizer.html#ad1c7c0a8f85fe189acefe26b857b7375" title=" " alt="" coords="971,144,1120,169"/>
|
|
<area shape="rect" href="classJSONParser.html#ac397e1ef199b5cd553c1dece740a045e" title=" " alt="" coords="108,132,247,157"/>
|
|
<area shape="rect" href="classJSONParser.html#afc1f8f30a01440eae32445b153d6e572" title=" " alt="" coords="732,56,923,81"/>
|
|
<area shape="rect" href="classJSONParser.html#a7d5a3239976c55ca83d974c886146f88" title=" " alt="" coords="523,119,684,144"/>
|
|
<area shape="rect" href="classJSONParser.html#acccb70f3b476f4bf15ac2ab4fc6b2389" title=" " alt="" coords="295,169,475,195"/>
|
|
<area shape="rect" href="classJSONParser.html#a2d1a9d64e8bedc107cb5c9e7c4143fdf" title=" " alt="" coords="732,296,923,321"/>
|
|
<area shape="rect" href="classJSONParser.html#a1ca29ba38533304c6601eafd249d9ed4" title=" " alt="" coords="739,169,915,195"/>
|
|
<area shape="rect" href="webserv_8cpp.html#a0c99d968a34e803d378692bde2e3f18f" title="< The amount of sockets listens" alt="" coords="5,132,60,157"/>
|
|
</map>
|
|
</div>
|
|
|
|
</div>
|
|
</div>
|
|
<a id="ace80ed64add3ef2d0ee9f659a182d935" name="ace80ed64add3ef2d0ee9f659a182d935"></a>
|
|
<h2 class="memtitle"><span class="permalink"><a href="#ace80ed64add3ef2d0ee9f659a182d935">◆ </a></span>hasMoreTokens()</h2>
|
|
|
|
<div class="memitem">
|
|
<div class="memproto">
|
|
<table class="memname">
|
|
<tr>
|
|
<td class="memname">bool Tokenizer::hasMoreTokens </td>
|
|
<td>(</td>
|
|
<td class="paramname"></td><td>)</td>
|
|
<td></td>
|
|
</tr>
|
|
</table>
|
|
</div><div class="memdoc">
|
|
|
|
<p class="definition">Definition at line <a class="el" href="Token_8cpp_source.html#l00009">9</a> of file <a class="el" href="Token_8cpp_source.html">Token.cpp</a>.</p>
|
|
<div class="dynheader">
|
|
Here is the caller graph for this function:</div>
|
|
<div class="dyncontent">
|
|
<div class="center"><img src="classTokenizer_ace80ed64add3ef2d0ee9f659a182d935_icgraph.png" border="0" usemap="#aclassTokenizer_ace80ed64add3ef2d0ee9f659a182d935_icgraph" alt=""/></div>
|
|
<map name="aclassTokenizer_ace80ed64add3ef2d0ee9f659a182d935_icgraph" id="aclassTokenizer_ace80ed64add3ef2d0ee9f659a182d935_icgraph">
|
|
<area shape="rect" title=" " alt="" coords="732,55,923,80"/>
|
|
<area shape="rect" href="classJSONParser.html#ac397e1ef199b5cd553c1dece740a045e" title=" " alt="" coords="108,31,247,56"/>
|
|
<area shape="rect" href="classJSONParser.html#a7d5a3239976c55ca83d974c886146f88" title=" " alt="" coords="523,55,684,80"/>
|
|
<area shape="rect" href="classJSONParser.html#acccb70f3b476f4bf15ac2ab4fc6b2389" title=" " alt="" coords="295,105,475,131"/>
|
|
<area shape="rect" href="webserv_8cpp.html#a0c99d968a34e803d378692bde2e3f18f" title="< The amount of sockets listens" alt="" coords="5,31,60,56"/>
|
|
</map>
|
|
</div>
|
|
|
|
</div>
|
|
</div>
|
|
<a id="a49db8c86447ad2cb543b5b1ea877f34d" name="a49db8c86447ad2cb543b5b1ea877f34d"></a>
|
|
<h2 class="memtitle"><span class="permalink"><a href="#a49db8c86447ad2cb543b5b1ea877f34d">◆ </a></span>rollBackToken()</h2>
|
|
|
|
<div class="memitem">
|
|
<div class="memproto">
|
|
<table class="memname">
|
|
<tr>
|
|
<td class="memname">void Tokenizer::rollBackToken </td>
|
|
<td>(</td>
|
|
<td class="paramname"></td><td>)</td>
|
|
<td></td>
|
|
</tr>
|
|
</table>
|
|
</div><div class="memdoc">
|
|
|
|
<p class="definition">Definition at line <a class="el" href="Token_8cpp_source.html#l00026">26</a> of file <a class="el" href="Token_8cpp_source.html">Token.cpp</a>.</p>
|
|
<div class="dynheader">
|
|
Here is the caller graph for this function:</div>
|
|
<div class="dyncontent">
|
|
<div class="center"><img src="classTokenizer_a49db8c86447ad2cb543b5b1ea877f34d_icgraph.png" border="0" usemap="#aclassTokenizer_a49db8c86447ad2cb543b5b1ea877f34d_icgraph" alt=""/></div>
|
|
<map name="aclassTokenizer_a49db8c86447ad2cb543b5b1ea877f34d_icgraph" id="aclassTokenizer_a49db8c86447ad2cb543b5b1ea877f34d_icgraph">
|
|
<area shape="rect" title=" " alt="" coords="732,55,913,80"/>
|
|
<area shape="rect" href="classJSONParser.html#ac397e1ef199b5cd553c1dece740a045e" title=" " alt="" coords="108,31,247,56"/>
|
|
<area shape="rect" href="classJSONParser.html#a7d5a3239976c55ca83d974c886146f88" title=" " alt="" coords="523,55,684,80"/>
|
|
<area shape="rect" href="classJSONParser.html#acccb70f3b476f4bf15ac2ab4fc6b2389" title=" " alt="" coords="295,106,475,131"/>
|
|
<area shape="rect" href="webserv_8cpp.html#a0c99d968a34e803d378692bde2e3f18f" title="< The amount of sockets listens" alt="" coords="5,31,60,56"/>
|
|
</map>
|
|
</div>
|
|
|
|
</div>
|
|
</div>
|
|
<h2 class="groupheader">Field Documentation</h2>
|
|
<a id="a71af0789a6f3a27aa4c335f4167822f2" name="a71af0789a6f3a27aa4c335f4167822f2"></a>
|
|
<h2 class="memtitle"><span class="permalink"><a href="#a71af0789a6f3a27aa4c335f4167822f2">◆ </a></span>file</h2>
|
|
|
|
<div class="memitem">
|
|
<div class="memproto">
|
|
<table class="mlabels">
|
|
<tr>
|
|
<td class="mlabels-left">
|
|
<table class="memname">
|
|
<tr>
|
|
<td class="memname">std::fstream Tokenizer::file</td>
|
|
</tr>
|
|
</table>
|
|
</td>
|
|
<td class="mlabels-right">
|
|
<span class="mlabels"><span class="mlabel">private</span></span> </td>
|
|
</tr>
|
|
</table>
|
|
</div><div class="memdoc">
|
|
|
|
<p class="definition">Definition at line <a class="el" href="Token_8hpp_source.html#l00023">23</a> of file <a class="el" href="Token_8hpp_source.html">Token.hpp</a>.</p>
|
|
|
|
</div>
|
|
</div>
|
|
<a id="a59a134c63a57a6a6173fa2e12c49b5fd" name="a59a134c63a57a6a6173fa2e12c49b5fd"></a>
|
|
<h2 class="memtitle"><span class="permalink"><a href="#a59a134c63a57a6a6173fa2e12c49b5fd">◆ </a></span>prevPos</h2>
|
|
|
|
<div class="memitem">
|
|
<div class="memproto">
|
|
<table class="mlabels">
|
|
<tr>
|
|
<td class="mlabels-left">
|
|
<table class="memname">
|
|
<tr>
|
|
<td class="memname">size_t Tokenizer::prevPos</td>
|
|
</tr>
|
|
</table>
|
|
</td>
|
|
<td class="mlabels-right">
|
|
<span class="mlabels"><span class="mlabel">private</span></span> </td>
|
|
</tr>
|
|
</table>
|
|
</div><div class="memdoc">
|
|
|
|
<p class="definition">Definition at line <a class="el" href="Token_8hpp_source.html#l00024">24</a> of file <a class="el" href="Token_8hpp_source.html">Token.hpp</a>.</p>
|
|
|
|
</div>
|
|
</div>
|
|
<hr/>The documentation for this class was generated from the following files:<ul>
|
|
<li>includes/<a class="el" href="Token_8hpp_source.html">Token.hpp</a></li>
|
|
<li>srcs/json/<a class="el" href="Token_8cpp_source.html">Token.cpp</a></li>
|
|
</ul>
|
|
</div><!-- contents -->
|
|
<!-- start footer part -->
|
|
<hr class="footer"/><address class="footer"><small>
|
|
Generated by <a href="https://www.doxygen.org/index.html"><img class="footer" src="doxygen.svg" width="104" height="31" alt="doxygen"/></a> 1.9.7
|
|
</small></address>
|
|
</body>
|
|
</html>
|
|
|