Documentation for 8b1eab204b
@@ -1,3 +1,4 @@
|
||||
<!-- HTML header for doxygen 1.12.0-->
|
||||
<!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>
|
||||
@@ -5,10 +6,15 @@
|
||||
<meta http-equiv="X-UA-Compatible" content="IE=11"/>
|
||||
<meta name="generator" content="Doxygen 1.12.0"/>
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1"/>
|
||||
<title>Algorithms_in_C++: strings/boyer_moore.cpp File Reference</title>
|
||||
<title>TheAlgorithms/C++: strings/boyer_moore.cpp File Reference</title>
|
||||
<link rel="icon" href="../../favicon.svg" type="image/x-icon" />
|
||||
<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>
|
||||
<script type="text/javascript" src="https://cdn.jsdelivr.net/npm/@xpack-3rd-party/doxygen-awesome-css@2.2.0-1/doxygen-awesome-darkmode-toggle.js"></script>
|
||||
<script type="text/javascript">
|
||||
DoxygenAwesomeDarkModeToggle.init()
|
||||
</script>
|
||||
<script type="text/javascript" src="../../clipboard.js"></script>
|
||||
<link href="../../navtree.css" rel="stylesheet" type="text/css"/>
|
||||
<script type="text/javascript" src="../../navtreedata.js"></script>
|
||||
@@ -18,14 +24,24 @@
|
||||
<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>
|
||||
<script type="text/x-mathjax-config">
|
||||
MathJax.Hub.Config({
|
||||
extensions: ["tex2jax.js", "TeX/AMSmath.js", "TeX/AMSsymbols.js"],
|
||||
jax: ["input/TeX","output/HTML-CSS"],
|
||||
});
|
||||
<script type="text/javascript">
|
||||
window.MathJax = {
|
||||
options: {
|
||||
ignoreHtmlClass: 'tex2jax_ignore',
|
||||
processHtmlClass: 'tex2jax_process'
|
||||
},
|
||||
loader: {
|
||||
load: ['[tex]/ams']
|
||||
},
|
||||
tex: {
|
||||
macros: {},
|
||||
packages: ['base','configmacros','ams']
|
||||
}
|
||||
};
|
||||
</script>
|
||||
<script type="text/javascript" async="async" src="https://cdnjs.cloudflare.com/ajax/libs/mathjax/2.7.7/MathJax.js?config=TeX-MML-AM_CHTML/MathJax.js"></script>
|
||||
<script type="text/javascript" id="MathJax-script" async="async" src="https://cdn.jsdelivr.net/npm/mathjax@3/es5/tex-chtml.js"></script>
|
||||
<link href="../../doxygen.css" rel="stylesheet" type="text/css" />
|
||||
<link href="../../doxygen-awesome.css" rel="stylesheet" type="text/css"/>
|
||||
</head>
|
||||
<body>
|
||||
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
|
||||
@@ -33,10 +49,11 @@ MathJax.Hub.Config({
|
||||
<table cellspacing="0" cellpadding="0">
|
||||
<tbody>
|
||||
<tr id="projectrow">
|
||||
<td id="projectlogo"><img alt="Logo" src="../../project_logo.png"/></td>
|
||||
<td id="projectalign">
|
||||
<div id="projectname">Algorithms_in_C++<span id="projectnumber"> 1.0.0</span>
|
||||
<div id="projectname">TheAlgorithms/C++<span id="projectnumber"> 1.0.0</span>
|
||||
</div>
|
||||
<div id="projectbrief">Set of algorithms implemented in C++.</div>
|
||||
<div id="projectbrief">All the algorithms implemented in C++</div>
|
||||
</td>
|
||||
</tr>
|
||||
</tbody>
|
||||
@@ -126,7 +143,9 @@ Include dependency graph for boyer_moore.cpp:</div>
|
||||
<div class="dyncontent">
|
||||
<div class="center"><iframe scrolling="no" frameborder="0" src="../../d1/db6/boyer__moore_8cpp__incl.svg" width="498" height="111"><p><b>This browser is not able to show SVG: try Firefox, Chrome, Safari, or Opera instead.</b></p></iframe></div>
|
||||
</div>
|
||||
</div><table class="memberdecls">
|
||||
</div>
|
||||
<p><a href="../../d3/db2/boyer__moore_8cpp_source.html">Go to the source code of this file.</a></p>
|
||||
<table class="memberdecls">
|
||||
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a id="nested-classes" name="nested-classes"></a>
|
||||
Classes</h2></td></tr>
|
||||
<tr class="memitem:"><td class="memItemLeft" align="right" valign="top">struct  </td><td class="memItemRight" valign="bottom"><a class="el" href="../../dd/d5a/structstrings_1_1boyer__moore_1_1pattern.html">strings::boyer_moore::pattern</a></td></tr>
|
||||
@@ -150,16 +169,16 @@ Macros</h2></td></tr>
|
||||
</table><table class="memberdecls">
|
||||
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a id="func-members" name="func-members"></a>
|
||||
Functions</h2></td></tr>
|
||||
<tr class="memitem:aa709cf7fca02b7d3e1888423d5f739a1" id="r_aa709cf7fca02b7d3e1888423d5f739a1"><td class="memItemLeft" align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="../../d0/dbc/namespacestrings_1_1boyer__moore.html#aa709cf7fca02b7d3e1888423d5f739a1">strings::boyer_moore::init_good_suffix</a> (const <a class="elRef" target="_blank" href="http://en.cppreference.com/w/cpp/string/basic_string.html">std::string</a> &str, <a class="elRef" target="_blank" href="http://en.cppreference.com/w/cpp/container/vector.html">std::vector</a>< size_t > &arg)</td></tr>
|
||||
<tr class="memitem:aa709cf7fca02b7d3e1888423d5f739a1" id="r_aa709cf7fca02b7d3e1888423d5f739a1"><td class="memItemLeft" align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="../../d0/dbc/namespacestrings_1_1boyer__moore.html#aa709cf7fca02b7d3e1888423d5f739a1">strings::boyer_moore::init_good_suffix</a> (const std::string &str, std::vector< size_t > &arg)</td></tr>
|
||||
<tr class="memdesc:aa709cf7fca02b7d3e1888423d5f739a1"><td class="mdescLeft"> </td><td class="mdescRight">A function that preprocess the good suffix thable. <br /></td></tr>
|
||||
<tr class="separator:aa709cf7fca02b7d3e1888423d5f739a1"><td class="memSeparator" colspan="2"> </td></tr>
|
||||
<tr class="memitem:a2f6688c9bb3e692297a3aa09cebc1c00" id="r_a2f6688c9bb3e692297a3aa09cebc1c00"><td class="memItemLeft" align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="../../d0/dbc/namespacestrings_1_1boyer__moore.html#a2f6688c9bb3e692297a3aa09cebc1c00">strings::boyer_moore::init_bad_char</a> (const <a class="elRef" target="_blank" href="http://en.cppreference.com/w/cpp/string/basic_string.html">std::string</a> &str, <a class="elRef" target="_blank" href="http://en.cppreference.com/w/cpp/container/vector.html">std::vector</a>< size_t > &arg)</td></tr>
|
||||
<tr class="memitem:a2f6688c9bb3e692297a3aa09cebc1c00" id="r_a2f6688c9bb3e692297a3aa09cebc1c00"><td class="memItemLeft" align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="../../d0/dbc/namespacestrings_1_1boyer__moore.html#a2f6688c9bb3e692297a3aa09cebc1c00">strings::boyer_moore::init_bad_char</a> (const std::string &str, std::vector< size_t > &arg)</td></tr>
|
||||
<tr class="memdesc:a2f6688c9bb3e692297a3aa09cebc1c00"><td class="mdescLeft"> </td><td class="mdescRight">A function that preprocess the bad char table. <br /></td></tr>
|
||||
<tr class="separator:a2f6688c9bb3e692297a3aa09cebc1c00"><td class="memSeparator" colspan="2"> </td></tr>
|
||||
<tr class="memitem:a0b165af1dc341289fd705be4c67728f8" id="r_a0b165af1dc341289fd705be4c67728f8"><td class="memItemLeft" align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="../../d0/dbc/namespacestrings_1_1boyer__moore.html#a0b165af1dc341289fd705be4c67728f8">strings::boyer_moore::init_pattern</a> (const <a class="elRef" target="_blank" href="http://en.cppreference.com/w/cpp/string/basic_string.html">std::string</a> &str, <a class="el" href="../../dd/d5a/structstrings_1_1boyer__moore_1_1pattern.html">pattern</a> &arg)</td></tr>
|
||||
<tr class="memitem:a0b165af1dc341289fd705be4c67728f8" id="r_a0b165af1dc341289fd705be4c67728f8"><td class="memItemLeft" align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="../../d0/dbc/namespacestrings_1_1boyer__moore.html#a0b165af1dc341289fd705be4c67728f8">strings::boyer_moore::init_pattern</a> (const std::string &str, <a class="el" href="../../dd/d5a/structstrings_1_1boyer__moore_1_1pattern.html">pattern</a> &arg)</td></tr>
|
||||
<tr class="memdesc:a0b165af1dc341289fd705be4c67728f8"><td class="mdescLeft"> </td><td class="mdescRight">A function that initializes pattern. <br /></td></tr>
|
||||
<tr class="separator:a0b165af1dc341289fd705be4c67728f8"><td class="memSeparator" colspan="2"> </td></tr>
|
||||
<tr class="memitem:a15703b553faed0d28202c10808cf9738" id="r_a15703b553faed0d28202c10808cf9738"><td class="memItemLeft" align="right" valign="top"><a class="elRef" target="_blank" href="http://en.cppreference.com/w/cpp/container/vector.html">std::vector</a>< size_t > </td><td class="memItemRight" valign="bottom"><a class="el" href="../../d0/dbc/namespacestrings_1_1boyer__moore.html#a15703b553faed0d28202c10808cf9738">strings::boyer_moore::search</a> (const <a class="elRef" target="_blank" href="http://en.cppreference.com/w/cpp/string/basic_string.html">std::string</a> &str, const <a class="el" href="../../dd/d5a/structstrings_1_1boyer__moore_1_1pattern.html">pattern</a> &arg)</td></tr>
|
||||
<tr class="memitem:a15703b553faed0d28202c10808cf9738" id="r_a15703b553faed0d28202c10808cf9738"><td class="memItemLeft" align="right" valign="top">std::vector< size_t > </td><td class="memItemRight" valign="bottom"><a class="el" href="../../d0/dbc/namespacestrings_1_1boyer__moore.html#a15703b553faed0d28202c10808cf9738">strings::boyer_moore::search</a> (const std::string &str, const <a class="el" href="../../dd/d5a/structstrings_1_1boyer__moore_1_1pattern.html">pattern</a> &arg)</td></tr>
|
||||
<tr class="memdesc:a15703b553faed0d28202c10808cf9738"><td class="mdescLeft"> </td><td class="mdescRight">A function that implements Boyer-Moore's algorithm. <br /></td></tr>
|
||||
<tr class="separator:a15703b553faed0d28202c10808cf9738"><td class="memSeparator" colspan="2"> </td></tr>
|
||||
<tr class="memitem:a056122c8fe8fb0f5fca6428d3f7b5c3a" id="r_a056122c8fe8fb0f5fca6428d3f7b5c3a"><td class="memItemLeft" align="right" valign="top">bool </td><td class="memItemRight" valign="bottom"><a class="el" href="../../d0/dbc/namespacestrings_1_1boyer__moore.html#a056122c8fe8fb0f5fca6428d3f7b5c3a">strings::boyer_moore::is_prefix</a> (const char *str, const char *pat, size_t len)</td></tr>
|
||||
@@ -188,6 +207,8 @@ Functions</h2></td></tr>
|
||||
<p>[The bad character rule] (<a href="https://en.wikipedia.org/wiki/Boyer%E2%80%93Moore_string-search_algorithm#The_bad_character_rule">https://en.wikipedia.org/wiki/Boyer%E2%80%93Moore_string-search_algorithm#The_bad_character_rule</a>)</p>
|
||||
<p>[The good suffix rule] (<a href="https://en.wikipedia.org/wiki/Boyer%E2%80%93Moore_string-search_algorithm#The_good_suffix_rule">https://en.wikipedia.org/wiki/Boyer%E2%80%93Moore_string-search_algorithm#The_good_suffix_rule</a>)</p>
|
||||
<p>The shift rules are implemented as constant-time table lookups, using tables generated during the preprocessing of P. </p><dl class="section author"><dt>Author</dt><dd><a href="https://github.com/stoychoX" target="_blank">Stoycho Kyosev</a> </dd></dl>
|
||||
|
||||
<p class="definition">Definition in file <a class="el" href="../../d3/db2/boyer__moore_8cpp_source.html">boyer_moore.cpp</a>.</p>
|
||||
</div><h2 class="groupheader">Macro Definition Documentation</h2>
|
||||
<a id="a77c872c08612d7b8861ba13bc9881cbd" name="a77c872c08612d7b8861ba13bc9881cbd"></a>
|
||||
<h2 class="memtitle"><span class="permalink"><a href="#a77c872c08612d7b8861ba13bc9881cbd">◆ </a></span>APLHABET_SIZE</h2>
|
||||
@@ -202,7 +223,9 @@ Functions</h2></td></tr>
|
||||
</div><div class="memdoc">
|
||||
|
||||
<p>number of symbols in the alphabet we use </p>
|
||||
<p>for assert for CHAR_MAX macro for strlen for IO operations for <a class="elRef" target="_blank" href="http://en.cppreference.com/w/cpp/string/basic_string.html">std::string</a> for <a class="elRef" target="_blank" href="http://en.cppreference.com/w/cpp/container/vector.html">std::vector</a> </p>
|
||||
<p>for assert for CHAR_MAX macro for strlen for IO operations for std::string for std::vector </p>
|
||||
|
||||
<p class="definition">Definition at line <a class="el" href="../../d3/db2/boyer__moore_8cpp_source.html#l00052">52</a> of file <a class="el" href="../../d3/db2/boyer__moore_8cpp_source.html">boyer_moore.cpp</a>.</p>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
@@ -230,27 +253,22 @@ Functions</h2></td></tr>
|
||||
</dd>
|
||||
</dl>
|
||||
<dl class="section return"><dt>Returns</dt><dd>void </dd></dl>
|
||||
|
||||
<p class="definition">Definition at line <a class="el" href="../../d3/db2/boyer__moore_8cpp_source.html#l00220">220</a> of file <a class="el" href="../../d3/db2/boyer__moore_8cpp_source.html">boyer_moore.cpp</a>.</p>
|
||||
<div class="fragment"><div class="line"><span class="lineno"> 220</span> {</div>
|
||||
<div class="line"><span class="lineno"> 221</span> <a class="code hl_struct" href="../../dd/d5a/structstrings_1_1boyer__moore_1_1pattern.html">strings::boyer_moore::pattern</a> ands;</div>
|
||||
<div class="line"><span class="lineno"> 222</span> <a class="code hl_function" href="../../d0/dbc/namespacestrings_1_1boyer__moore.html#a0b165af1dc341289fd705be4c67728f8">strings::boyer_moore::init_pattern</a>(<span class="stringliteral">"and"</span>, ands);</div>
|
||||
<div class="line"><span class="lineno"> 223</span> <a class="code hl_classRef" target="_blank" href="http://en.cppreference.com/w/cpp/container/vector.html">std::vector<size_t></a> indexes = <a class="code hl_function" href="../../d0/dbc/namespacestrings_1_1boyer__moore.html#a15703b553faed0d28202c10808cf9738">strings::boyer_moore::search</a>(text, ands);</div>
|
||||
<div class="line"><span class="lineno"> 223</span> std::vector<size_t> indexes = <a class="code hl_function" href="../../d0/dbc/namespacestrings_1_1boyer__moore.html#a15703b553faed0d28202c10808cf9738">strings::boyer_moore::search</a>(text, ands);</div>
|
||||
<div class="line"><span class="lineno"> 224</span> </div>
|
||||
<div class="line"><span class="lineno"> 225</span> assert(indexes.<a class="code hl_functionRef" target="_blank" href="http://en.cppreference.com/w/cpp/container/vector/size.html">size</a>() == 2);</div>
|
||||
<div class="line"><span class="lineno"> 225</span> assert(indexes.size() == 2);</div>
|
||||
<div class="line"><span class="lineno"> 226</span> assert(<a class="code hl_function" href="../../d0/dbc/namespacestrings_1_1boyer__moore.html#a056122c8fe8fb0f5fca6428d3f7b5c3a">strings::boyer_moore::is_prefix</a>(text + indexes[0], <span class="stringliteral">"and"</span>, 3));</div>
|
||||
<div class="line"><span class="lineno"> 227</span> assert(<a class="code hl_function" href="../../d0/dbc/namespacestrings_1_1boyer__moore.html#a056122c8fe8fb0f5fca6428d3f7b5c3a">strings::boyer_moore::is_prefix</a>(text + indexes[1], <span class="stringliteral">"and"</span>, 3));</div>
|
||||
<div class="line"><span class="lineno"> 228</span>}</div>
|
||||
<div class="ttc" id="anamespacestrings_1_1boyer__moore_html_a056122c8fe8fb0f5fca6428d3f7b5c3a"><div class="ttname"><a href="../../d0/dbc/namespacestrings_1_1boyer__moore.html#a056122c8fe8fb0f5fca6428d3f7b5c3a">strings::boyer_moore::is_prefix</a></div><div class="ttdeci">bool is_prefix(const char *str, const char *pat, size_t len)</div><div class="ttdoc">Check if pat is prefix of str.</div><div class="ttdef"><b>Definition</b> boyer_moore.cpp:200</div></div>
|
||||
<div class="ttc" id="anamespacestrings_1_1boyer__moore_html_a0b165af1dc341289fd705be4c67728f8"><div class="ttname"><a href="../../d0/dbc/namespacestrings_1_1boyer__moore.html#a0b165af1dc341289fd705be4c67728f8">strings::boyer_moore::init_pattern</a></div><div class="ttdeci">void init_pattern(const std::string &str, pattern &arg)</div><div class="ttdoc">A function that initializes pattern.</div><div class="ttdef"><b>Definition</b> boyer_moore.cpp:153</div></div>
|
||||
<div class="ttc" id="anamespacestrings_1_1boyer__moore_html_a15703b553faed0d28202c10808cf9738"><div class="ttname"><a href="../../d0/dbc/namespacestrings_1_1boyer__moore.html#a15703b553faed0d28202c10808cf9738">strings::boyer_moore::search</a></div><div class="ttdeci">std::vector< size_t > search(const std::string &str, const pattern &arg)</div><div class="ttdoc">A function that implements Boyer-Moore's algorithm.</div><div class="ttdef"><b>Definition</b> boyer_moore.cpp:165</div></div>
|
||||
<div class="ttc" id="asize_html"><div class="ttname"><a href="http://en.cppreference.com/w/cpp/container/vector/size.html">std::vector::size</a></div><div class="ttdeci">T size(T... args)</div></div>
|
||||
<div class="ttc" id="astructstrings_1_1boyer__moore_1_1pattern_html"><div class="ttname"><a href="../../dd/d5a/structstrings_1_1boyer__moore_1_1pattern.html">strings::boyer_moore::pattern</a></div><div class="ttdoc">A structure representing all the data we need to search the preprocessed pattern in text.</div><div class="ttdef"><b>Definition</b> boyer_moore.cpp:70</div></div>
|
||||
<div class="ttc" id="avector_html"><div class="ttname"><a href="http://en.cppreference.com/w/cpp/container/vector.html">std::vector</a></div></div>
|
||||
</div><!-- fragment --><div class="dynheader">
|
||||
Here is the call graph for this function:</div>
|
||||
<div class="dyncontent">
|
||||
<div class="center"><iframe scrolling="no" frameborder="0" src="../../d3/db2/boyer__moore_8cpp_acb8f69e7901ee7459d98bd4b9dda79d9_cgraph.svg" width="667" height="286"><p><b>This browser is not able to show SVG: try Firefox, Chrome, Safari, or Opera instead.</b></p></iframe></div>
|
||||
</div>
|
||||
|
||||
<div class="ttc" id="anamespacestrings_1_1boyer__moore_html_a056122c8fe8fb0f5fca6428d3f7b5c3a"><div class="ttname"><a href="../../d0/dbc/namespacestrings_1_1boyer__moore.html#a056122c8fe8fb0f5fca6428d3f7b5c3a">strings::boyer_moore::is_prefix</a></div><div class="ttdeci">bool is_prefix(const char *str, const char *pat, size_t len)</div><div class="ttdoc">Check if pat is prefix of str.</div><div class="ttdef"><b>Definition</b> <a href="../../d3/db2/boyer__moore_8cpp_source.html#l00200">boyer_moore.cpp:200</a></div></div>
|
||||
<div class="ttc" id="anamespacestrings_1_1boyer__moore_html_a0b165af1dc341289fd705be4c67728f8"><div class="ttname"><a href="../../d0/dbc/namespacestrings_1_1boyer__moore.html#a0b165af1dc341289fd705be4c67728f8">strings::boyer_moore::init_pattern</a></div><div class="ttdeci">void init_pattern(const std::string &str, pattern &arg)</div><div class="ttdoc">A function that initializes pattern.</div><div class="ttdef"><b>Definition</b> <a href="../../d3/db2/boyer__moore_8cpp_source.html#l00153">boyer_moore.cpp:153</a></div></div>
|
||||
<div class="ttc" id="anamespacestrings_1_1boyer__moore_html_a15703b553faed0d28202c10808cf9738"><div class="ttname"><a href="../../d0/dbc/namespacestrings_1_1boyer__moore.html#a15703b553faed0d28202c10808cf9738">strings::boyer_moore::search</a></div><div class="ttdeci">std::vector< size_t > search(const std::string &str, const pattern &arg)</div><div class="ttdoc">A function that implements Boyer-Moore's algorithm.</div><div class="ttdef"><b>Definition</b> <a href="../../d3/db2/boyer__moore_8cpp_source.html#l00165">boyer_moore.cpp:165</a></div></div>
|
||||
<div class="ttc" id="astructstrings_1_1boyer__moore_1_1pattern_html"><div class="ttname"><a href="../../dd/d5a/structstrings_1_1boyer__moore_1_1pattern.html">strings::boyer_moore::pattern</a></div><div class="ttdoc">A structure representing all the data we need to search the preprocessed pattern in text.</div><div class="ttdef"><b>Definition</b> <a href="../../d3/db2/boyer__moore_8cpp_source.html#l00070">boyer_moore.cpp:70</a></div></div>
|
||||
</div><!-- fragment -->
|
||||
</div>
|
||||
</div>
|
||||
<a id="ae66f6b31b5ad750f1fe042a706a4e3d4" name="ae66f6b31b5ad750f1fe042a706a4e3d4"></a>
|
||||
@@ -270,17 +288,14 @@ Here is the call graph for this function:</div>
|
||||
|
||||
<p>Main function. </p>
|
||||
<dl class="section return"><dt>Returns</dt><dd>0 on exit </dd></dl>
|
||||
|
||||
<p class="definition">Definition at line <a class="el" href="../../d3/db2/boyer__moore_8cpp_source.html#l00269">269</a> of file <a class="el" href="../../d3/db2/boyer__moore_8cpp_source.html">boyer_moore.cpp</a>.</p>
|
||||
<div class="fragment"><div class="line"><span class="lineno"> 269</span> {</div>
|
||||
<div class="line"><span class="lineno"> 270</span> <a class="code hl_function" href="#a483bb8ccf42aaf7375a83e91490eda1e">tests</a>(); <span class="comment">// run self-test implementations</span></div>
|
||||
<div class="line"><span class="lineno"> 271</span> <span class="keywordflow">return</span> 0;</div>
|
||||
<div class="line"><span class="lineno"> 272</span>}</div>
|
||||
<div class="ttc" id="aboyer__moore_8cpp_html_a483bb8ccf42aaf7375a83e91490eda1e"><div class="ttname"><a href="#a483bb8ccf42aaf7375a83e91490eda1e">tests</a></div><div class="ttdeci">static void tests()</div><div class="ttdoc">Self-test implementations.</div><div class="ttdef"><b>Definition</b> boyer_moore.cpp:250</div></div>
|
||||
</div><!-- fragment --><div class="dynheader">
|
||||
Here is the call graph for this function:</div>
|
||||
<div class="dyncontent">
|
||||
<div class="center"><div class="zoom"><iframe scrolling="no" frameborder="0" src="../../d3/db2/boyer__moore_8cpp_ae66f6b31b5ad750f1fe042a706a4e3d4_cgraph.svg" width="100%" height="553"><p><b>This browser is not able to show SVG: try Firefox, Chrome, Safari, or Opera instead.</b></p></iframe></div></div>
|
||||
</div>
|
||||
|
||||
<div class="ttc" id="aboyer__moore_8cpp_html_a483bb8ccf42aaf7375a83e91490eda1e"><div class="ttname"><a href="#a483bb8ccf42aaf7375a83e91490eda1e">tests</a></div><div class="ttdeci">static void tests()</div><div class="ttdoc">Self-test implementations.</div><div class="ttdef"><b>Definition</b> <a href="../../d3/db2/boyer__moore_8cpp_source.html#l00250">boyer_moore.cpp:250</a></div></div>
|
||||
</div><!-- fragment -->
|
||||
</div>
|
||||
</div>
|
||||
<a id="ac8fac0dd4b19973da103a434143a16d2" name="ac8fac0dd4b19973da103a434143a16d2"></a>
|
||||
@@ -306,23 +321,20 @@ Here is the call graph for this function:</div>
|
||||
</dd>
|
||||
</dl>
|
||||
<dl class="section return"><dt>Returns</dt><dd>void </dd></dl>
|
||||
|
||||
<p class="definition">Definition at line <a class="el" href="../../d3/db2/boyer__moore_8cpp_source.html#l00235">235</a> of file <a class="el" href="../../d3/db2/boyer__moore_8cpp_source.html">boyer_moore.cpp</a>.</p>
|
||||
<div class="fragment"><div class="line"><span class="lineno"> 235</span> {</div>
|
||||
<div class="line"><span class="lineno"> 236</span> <a class="code hl_struct" href="../../dd/d5a/structstrings_1_1boyer__moore_1_1pattern.html">strings::boyer_moore::pattern</a> pat;</div>
|
||||
<div class="line"><span class="lineno"> 237</span> <a class="code hl_function" href="../../d0/dbc/namespacestrings_1_1boyer__moore.html#a0b165af1dc341289fd705be4c67728f8">strings::boyer_moore::init_pattern</a>(<span class="stringliteral">"pat"</span>, pat);</div>
|
||||
<div class="line"><span class="lineno"> 238</span> <a class="code hl_classRef" target="_blank" href="http://en.cppreference.com/w/cpp/container/vector.html">std::vector<size_t></a> indexes = <a class="code hl_function" href="../../d0/dbc/namespacestrings_1_1boyer__moore.html#a15703b553faed0d28202c10808cf9738">strings::boyer_moore::search</a>(text, pat);</div>
|
||||
<div class="line"><span class="lineno"> 238</span> std::vector<size_t> indexes = <a class="code hl_function" href="../../d0/dbc/namespacestrings_1_1boyer__moore.html#a15703b553faed0d28202c10808cf9738">strings::boyer_moore::search</a>(text, pat);</div>
|
||||
<div class="line"><span class="lineno"> 239</span> </div>
|
||||
<div class="line"><span class="lineno"> 240</span> assert(indexes.<a class="code hl_functionRef" target="_blank" href="http://en.cppreference.com/w/cpp/container/vector/size.html">size</a>() == 6);</div>
|
||||
<div class="line"><span class="lineno"> 240</span> assert(indexes.size() == 6);</div>
|
||||
<div class="line"><span class="lineno"> 241</span> </div>
|
||||
<div class="line"><span class="lineno"> 242</span> <span class="keywordflow">for</span> (<span class="keyword">const</span> <span class="keyword">auto</span>& currentIndex : indexes) {</div>
|
||||
<div class="line"><span class="lineno"> 243</span> assert(<a class="code hl_function" href="../../d0/dbc/namespacestrings_1_1boyer__moore.html#a056122c8fe8fb0f5fca6428d3f7b5c3a">strings::boyer_moore::is_prefix</a>(text + currentIndex, <span class="stringliteral">"pat"</span>, 3));</div>
|
||||
<div class="line"><span class="lineno"> 244</span> }</div>
|
||||
<div class="line"><span class="lineno"> 245</span>}</div>
|
||||
</div><!-- fragment --><div class="dynheader">
|
||||
Here is the call graph for this function:</div>
|
||||
<div class="dyncontent">
|
||||
<div class="center"><iframe scrolling="no" frameborder="0" src="../../d3/db2/boyer__moore_8cpp_ac8fac0dd4b19973da103a434143a16d2_cgraph.svg" width="664" height="286"><p><b>This browser is not able to show SVG: try Firefox, Chrome, Safari, or Opera instead.</b></p></iframe></div>
|
||||
</div>
|
||||
|
||||
</div><!-- fragment -->
|
||||
</div>
|
||||
</div>
|
||||
<a id="a483bb8ccf42aaf7375a83e91490eda1e" name="a483bb8ccf42aaf7375a83e91490eda1e"></a>
|
||||
@@ -350,6 +362,8 @@ Here is the call graph for this function:</div>
|
||||
|
||||
<p>Self-test implementations. </p>
|
||||
<dl class="section return"><dt>Returns</dt><dd>void </dd></dl>
|
||||
|
||||
<p class="definition">Definition at line <a class="el" href="../../d3/db2/boyer__moore_8cpp_source.html#l00250">250</a> of file <a class="el" href="../../d3/db2/boyer__moore_8cpp_source.html">boyer_moore.cpp</a>.</p>
|
||||
<div class="fragment"><div class="line"><span class="lineno"> 250</span> {</div>
|
||||
<div class="line"><span class="lineno"> 251</span> <span class="keyword">const</span> <span class="keywordtype">char</span>* text =</div>
|
||||
<div class="line"><span class="lineno"> 252</span> <span class="stringliteral">"When pat Mr. and Mrs. pat Dursley woke up on the dull, gray \</span></div>
|
||||
@@ -362,17 +376,11 @@ Here is the call graph for this function:</div>
|
||||
<div class="line"><span class="lineno"> 259</span> <a class="code hl_function" href="#acb8f69e7901ee7459d98bd4b9dda79d9">and_test</a>(text);</div>
|
||||
<div class="line"><span class="lineno"> 260</span> <a class="code hl_function" href="#ac8fac0dd4b19973da103a434143a16d2">pat_test</a>(text);</div>
|
||||
<div class="line"><span class="lineno"> 261</span> </div>
|
||||
<div class="line"><span class="lineno"> 262</span> <a class="code hl_classRef" target="_blank" href="http://en.cppreference.com/w/cpp/io/basic_ostream.html">std::cout</a> << <span class="stringliteral">"All tests have successfully passed!\n"</span>;</div>
|
||||
<div class="line"><span class="lineno"> 262</span> std::cout << <span class="stringliteral">"All tests have successfully passed!\n"</span>;</div>
|
||||
<div class="line"><span class="lineno"> 263</span>}</div>
|
||||
<div class="ttc" id="abasic_ostream_html"><div class="ttname"><a href="http://en.cppreference.com/w/cpp/io/basic_ostream.html">std::cout</a></div></div>
|
||||
<div class="ttc" id="aboyer__moore_8cpp_html_ac8fac0dd4b19973da103a434143a16d2"><div class="ttname"><a href="#ac8fac0dd4b19973da103a434143a16d2">pat_test</a></div><div class="ttdeci">void pat_test(const char *text)</div><div class="ttdoc">A test case in which we search for every appearance of the word 'pat'.</div><div class="ttdef"><b>Definition</b> boyer_moore.cpp:235</div></div>
|
||||
<div class="ttc" id="aboyer__moore_8cpp_html_acb8f69e7901ee7459d98bd4b9dda79d9"><div class="ttname"><a href="#acb8f69e7901ee7459d98bd4b9dda79d9">and_test</a></div><div class="ttdeci">void and_test(const char *text)</div><div class="ttdoc">A test case in which we search for every appearance of the word 'and'.</div><div class="ttdef"><b>Definition</b> boyer_moore.cpp:220</div></div>
|
||||
</div><!-- fragment --><div class="dynheader">
|
||||
Here is the call graph for this function:</div>
|
||||
<div class="dyncontent">
|
||||
<div class="center"><div class="zoom"><iframe scrolling="no" frameborder="0" src="../../d3/db2/boyer__moore_8cpp_a483bb8ccf42aaf7375a83e91490eda1e_cgraph.svg" width="100%" height="553"><p><b>This browser is not able to show SVG: try Firefox, Chrome, Safari, or Opera instead.</b></p></iframe></div></div>
|
||||
</div>
|
||||
|
||||
<div class="ttc" id="aboyer__moore_8cpp_html_ac8fac0dd4b19973da103a434143a16d2"><div class="ttname"><a href="#ac8fac0dd4b19973da103a434143a16d2">pat_test</a></div><div class="ttdeci">void pat_test(const char *text)</div><div class="ttdoc">A test case in which we search for every appearance of the word 'pat'.</div><div class="ttdef"><b>Definition</b> <a href="../../d3/db2/boyer__moore_8cpp_source.html#l00235">boyer_moore.cpp:235</a></div></div>
|
||||
<div class="ttc" id="aboyer__moore_8cpp_html_acb8f69e7901ee7459d98bd4b9dda79d9"><div class="ttname"><a href="#acb8f69e7901ee7459d98bd4b9dda79d9">and_test</a></div><div class="ttdeci">void and_test(const char *text)</div><div class="ttdoc">A test case in which we search for every appearance of the word 'and'.</div><div class="ttdef"><b>Definition</b> <a href="../../d3/db2/boyer__moore_8cpp_source.html#l00220">boyer_moore.cpp:220</a></div></div>
|
||||
</div><!-- fragment -->
|
||||
</div>
|
||||
</div>
|
||||
</div><!-- contents -->
|
||||
|
||||
@@ -1,36 +0,0 @@
|
||||
<map id="tests" name="tests">
|
||||
<area shape="rect" id="Node000001" title="Self-test implementations." alt="" coords="5,100,56,125"/>
|
||||
<area shape="rect" id="Node000002" href="$d3/db2/boyer__moore_8cpp.html#acb8f69e7901ee7459d98bd4b9dda79d9" title="A test case in which we search for every appearance of the word 'and'." alt="" coords="104,74,175,100"/>
|
||||
<area shape="poly" id="edge1_Node000001_Node000002" title=" " alt="" coords="55,104,88,96,89,101,57,109"/>
|
||||
<area shape="rect" id="Node000013" href="$d3/db2/boyer__moore_8cpp.html#ac8fac0dd4b19973da103a434143a16d2" title="A test case in which we search for every appearance of the word 'pat'." alt="" coords="105,124,174,149"/>
|
||||
<area shape="poly" id="edge17_Node000001_Node000013" title=" " alt="" coords="57,115,91,123,90,128,55,120"/>
|
||||
<area shape="rect" id="Node000003" href="$d0/dbc/namespacestrings_1_1boyer__moore.html#a0b165af1dc341289fd705be4c67728f8" title="A function that initializes pattern." alt="" coords="223,120,366,161"/>
|
||||
<area shape="poly" id="edge2_Node000002_Node000003" title=" " alt="" coords="176,97,220,112,219,117,174,102"/>
|
||||
<area shape="rect" id="Node000008" href="$d0/dbc/namespacestrings_1_1boyer__moore.html#a056122c8fe8fb0f5fca6428d3f7b5c3a" title="Check if pat is prefix of str." alt="" coords="223,5,366,46"/>
|
||||
<area shape="poly" id="edge10_Node000002_Node000008" title=" " alt="" coords="173,71,226,50,228,55,175,76"/>
|
||||
<area shape="rect" id="Node000009" href="$d0/dbc/namespacestrings_1_1boyer__moore.html#a15703b553faed0d28202c10808cf9738" title="A function that implements Boyer-Moore's algorithm." alt="" coords="223,187,366,227"/>
|
||||
<area shape="poly" id="edge11_Node000002_Node000009" title=" " alt="" coords="163,98,177,109,191,126,201,141,210,155,225,170,233,176,229,180,221,174,206,159,196,144,187,129,173,113,160,102"/>
|
||||
<area shape="rect" id="Node000012" href="/Users/runner/work/C-Plus-Plus/C-Plus-Plus/doc/cppreference-doxygen-web.tag.xml$cpp/container/vector/size.html#" title=" " alt="" coords="237,70,352,96"/>
|
||||
<area shape="poly" id="edge16_Node000002_Node000012" title=" " alt="" coords="175,83,221,82,222,88,175,89"/>
|
||||
<area shape="rect" id="Node000004" href="$d0/dbc/namespacestrings_1_1boyer__moore.html#a2f6688c9bb3e692297a3aa09cebc1c00" title="A function that preprocess the bad char table." alt="" coords="420,52,563,93"/>
|
||||
<area shape="poly" id="edge3_Node000003_Node000004" title=" " alt="" coords="355,117,415,96,417,101,357,122"/>
|
||||
<area shape="rect" id="Node000007" href="$d0/dbc/namespacestrings_1_1boyer__moore.html#aa709cf7fca02b7d3e1888423d5f739a1" title="A function that preprocess the good suffix thable." alt="" coords="420,117,563,158"/>
|
||||
<area shape="poly" id="edge6_Node000003_Node000007" title=" " alt="" coords="367,137,404,136,404,142,367,142"/>
|
||||
<area shape="rect" id="Node000005" href="/Users/runner/work/C-Plus-Plus/C-Plus-Plus/doc/cppreference-doxygen-web.tag.xml$cpp/string/basic_string/size.html#" title=" " alt="" coords="619,125,741,150"/>
|
||||
<area shape="poly" id="edge4_Node000004_Node000005" title=" " alt="" coords="553,91,627,117,625,122,551,96"/>
|
||||
<area shape="rect" id="Node000006" href="/Users/runner/work/C-Plus-Plus/C-Plus-Plus/doc/cppreference-doxygen-web.tag.xml$cpp/container/vector/resize.html#" title=" " alt="" coords="617,68,743,93"/>
|
||||
<area shape="poly" id="edge5_Node000004_Node000006" title=" " alt="" coords="564,73,602,74,601,80,563,78"/>
|
||||
<area shape="poly" id="edge7_Node000007_Node000005" title=" " alt="" coords="564,144,603,144,603,149,564,149"/>
|
||||
<area shape="poly" id="edge9_Node000007_Node000005" title=" " alt="" coords="564,126,603,126,603,131,564,132"/>
|
||||
<area shape="poly" id="edge8_Node000007_Node000006" title=" " alt="" coords="560,114,620,96,622,101,561,119"/>
|
||||
<area shape="poly" id="edge12_Node000009_Node000005" title=" " alt="" coords="366,207,462,197,568,179,649,155,650,160,569,184,463,202,367,213"/>
|
||||
<area shape="poly" id="edge15_Node000009_Node000005" title=" " alt="" coords="366,188,462,174,568,155,603,147,605,152,569,160,463,179,367,193"/>
|
||||
<area shape="rect" id="Node000010" href="/Users/runner/work/C-Plus-Plus/C-Plus-Plus/doc/cppreference-doxygen-web.tag.xml$cpp/algorithm/max.html#" title=" " alt="" coords="455,257,528,282"/>
|
||||
<area shape="poly" id="edge13_Node000009_Node000010" title=" " alt="" coords="361,225,442,251,440,256,360,230"/>
|
||||
<area shape="rect" id="Node000011" href="/Users/runner/work/C-Plus-Plus/C-Plus-Plus/doc/cppreference-doxygen-web.tag.xml$cpp/container/vector/push_back.html#" title=" " alt="" coords="414,306,569,332"/>
|
||||
<area shape="poly" id="edge14_Node000009_Node000011" title=" " alt="" coords="321,226,363,260,416,293,427,298,424,303,413,297,360,264,317,230"/>
|
||||
<area shape="poly" id="edge18_Node000013_Node000003" title=" " alt="" coords="174,135,208,135,207,141,174,140"/>
|
||||
<area shape="poly" id="edge19_Node000013_Node000008" title=" " alt="" coords="160,121,173,110,196,82,206,70,221,56,226,52,229,56,225,60,210,73,200,86,177,114,163,125"/>
|
||||
<area shape="poly" id="edge20_Node000013_Node000009" title=" " alt="" coords="171,147,236,177,234,182,169,152"/>
|
||||
<area shape="poly" id="edge21_Node000013_Node000012" title=" " alt="" coords="173,122,240,99,242,104,175,127"/>
|
||||
</map>
|
||||
@@ -1 +0,0 @@
|
||||
4eb1653c59591f0ecd44126f66bf895d
|
||||
@@ -1,406 +0,0 @@
|
||||
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
|
||||
<!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN"
|
||||
"http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd">
|
||||
<!-- Generated by graphviz version 12.1.2 (20240928.0832)
|
||||
-->
|
||||
<!-- Title: tests Pages: 1 -->
|
||||
<!--zoomable 253 -->
|
||||
|
||||
<svg id="main" version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" xml:space="preserve" onload="init(evt)">
|
||||
|
||||
<style type="text/css"><![CDATA[
|
||||
.node, .edge {opacity: 0.7;}
|
||||
.node.selected, .edge.selected {opacity: 1;}
|
||||
.edge:hover path { stroke: red; }
|
||||
.edge:hover polygon { stroke: red; fill: red; }
|
||||
]]></style>
|
||||
|
||||
<defs>
|
||||
<circle id="rim" cx="0" cy="0" r="7"/>
|
||||
<circle id="rim2" cx="0" cy="0" r="3.5"/>
|
||||
<g id="zoomPlus">
|
||||
<use xlink:href="#rim" fill="#404040"><set attributeName="fill" to="#808080" begin="zoomplus.mouseover" end="zoomplus.mouseout"/></use>
|
||||
<path d="M-4,0h8M0,-4v8" fill="none" stroke="white" stroke-width="1.5" pointer-events="none"/>
|
||||
</g>
|
||||
<g id="zoomMin">
|
||||
<use xlink:href="#rim" fill="#404040"><set attributeName="fill" to="#808080" begin="zoomminus.mouseover" end="zoomminus.mouseout"/></use>
|
||||
<path d="M-4,0h8" fill="none" stroke="white" stroke-width="1.5" pointer-events="none"/>
|
||||
</g>
|
||||
<g id="arrowUp" transform="translate(30 24)">
|
||||
<use xlink:href="#rim"/>
|
||||
<path pointer-events="none" fill="none" stroke="white" stroke-width="1.5" d="M0,-3.0v7 M-2.5,-0.5L0,-3.0L2.5,-0.5"/>
|
||||
</g>
|
||||
<g id="arrowRight" transform="rotate(90) translate(36 -43)">
|
||||
<use xlink:href="#rim"/>
|
||||
<path pointer-events="none" fill="none" stroke="white" stroke-width="1.5" d="M0,-3.0v7 M-2.5,-0.5L0,-3.0L2.5,-0.5"/>
|
||||
</g>
|
||||
<g id="arrowDown" transform="rotate(180) translate(-30 -48)">
|
||||
<use xlink:href="#rim"/>
|
||||
<path pointer-events="none" fill="none" stroke="white" stroke-width="1.5" d="M0,-3.0v7 M-2.5,-0.5L0,-3.0L2.5,-0.5"/>
|
||||
</g>
|
||||
<g id="arrowLeft" transform="rotate(270) translate(-36 17)">
|
||||
<use xlink:href="#rim"/>
|
||||
<path pointer-events="none" fill="none" stroke="white" stroke-width="1.5" d="M0,-3.0v7 M-2.5,-0.5L0,-3.0L2.5,-0.5"/>
|
||||
</g>
|
||||
<g id="resetDef">
|
||||
<use xlink:href="#rim2" fill="#404040"><set attributeName="fill" to="#808080" begin="reset.mouseover" end="reset.mouseout"/></use>
|
||||
</g>
|
||||
</defs>
|
||||
<script type="application/ecmascript">
|
||||
var viewWidth = 561;
|
||||
var viewHeight = 253;
|
||||
var sectionId = 'dynsection-4';
|
||||
</script>
|
||||
<script type="application/ecmascript" xlink:href="../../svg.min.js"/>
|
||||
<svg id="graph" class="graph">
|
||||
<g id="viewport">
|
||||
<title>tests</title>
|
||||
<!-- Node1 -->
|
||||
<g id="Node000001" class="node">
|
||||
<title>Node1</title>
|
||||
<g id="a_Node000001"><a xlink:title="Self-test implementations.">
|
||||
<polygon fill="#999999" stroke="#666666" points="37.75,-174.25 0,-174.25 0,-155 37.75,-155 37.75,-174.25"/>
|
||||
<text text-anchor="middle" x="18.88" y="-160.75" font-family="Helvetica,sans-Serif" font-size="10.00">tests</text>
|
||||
</a>
|
||||
</g>
|
||||
</g>
|
||||
<!-- Node2 -->
|
||||
<g id="Node000002" class="node">
|
||||
<title>Node2</title>
|
||||
<g id="a_Node000002"><a xlink:href="../../d3/db2/boyer__moore_8cpp.html#acb8f69e7901ee7459d98bd4b9dda79d9" target="_top" xlink:title="A test case in which we search for every appearance of the word 'and'.">
|
||||
<polygon fill="white" stroke="#666666" points="127.25,-193.25 73.75,-193.25 73.75,-174 127.25,-174 127.25,-193.25"/>
|
||||
<text text-anchor="middle" x="100.5" y="-179.75" font-family="Helvetica,sans-Serif" font-size="10.00">and_test</text>
|
||||
</a>
|
||||
</g>
|
||||
</g>
|
||||
<!-- Node1->Node2 -->
|
||||
<g id="edge1_Node000001_Node000002" class="edge">
|
||||
<title>Node1->Node2</title>
|
||||
<g id="a_edge1_Node000001_Node000002"><a xlink:title=" ">
|
||||
<path fill="none" stroke="#63b8ff" d="M37.94,-168.94C45.22,-170.67 53.89,-172.74 62.39,-174.77"/>
|
||||
<polygon fill="#63b8ff" stroke="#63b8ff" points="61.34,-178.12 71.88,-177.03 62.96,-171.31 61.34,-178.12"/>
|
||||
</a>
|
||||
</g>
|
||||
</g>
|
||||
<!-- Node13 -->
|
||||
<g id="Node000013" class="node">
|
||||
<title>Node13</title>
|
||||
<g id="a_Node000013"><a xlink:href="../../d3/db2/boyer__moore_8cpp.html#ac8fac0dd4b19973da103a434143a16d2" target="_top" xlink:title="A test case in which we search for every appearance of the word 'pat'.">
|
||||
<polygon fill="white" stroke="#666666" points="126.12,-156.25 74.88,-156.25 74.88,-137 126.12,-137 126.12,-156.25"/>
|
||||
<text text-anchor="middle" x="100.5" y="-142.75" font-family="Helvetica,sans-Serif" font-size="10.00">pat_test</text>
|
||||
</a>
|
||||
</g>
|
||||
</g>
|
||||
<!-- Node1->Node13 -->
|
||||
<g id="edge17_Node000001_Node000013" class="edge">
|
||||
<title>Node1->Node13</title>
|
||||
<g id="a_edge17_Node000001_Node000013"><a xlink:title=" ">
|
||||
<path fill="none" stroke="#63b8ff" d="M37.94,-160.54C45.56,-158.82 54.7,-156.75 63.58,-154.74"/>
|
||||
<polygon fill="#63b8ff" stroke="#63b8ff" points="64.1,-158.22 73.09,-152.6 62.56,-151.39 64.1,-158.22"/>
|
||||
</a>
|
||||
</g>
|
||||
</g>
|
||||
<!-- Node3 -->
|
||||
<g id="Node000003" class="node">
|
||||
<title>Node3</title>
|
||||
<g id="a_Node000003"><a xlink:href="../../d0/dbc/namespacestrings_1_1boyer__moore.html#a0b165af1dc341289fd705be4c67728f8" target="_top" xlink:title="A function that initializes pattern.">
|
||||
<polygon fill="white" stroke="#666666" points="270.75,-158.88 163.25,-158.88 163.25,-128.38 270.75,-128.38 270.75,-158.88"/>
|
||||
<text text-anchor="start" x="171.25" y="-145.38" font-family="Helvetica,sans-Serif" font-size="10.00">strings::boyer_moore</text>
|
||||
<text text-anchor="middle" x="217" y="-134.12" font-family="Helvetica,sans-Serif" font-size="10.00">::init_pattern</text>
|
||||
</a>
|
||||
</g>
|
||||
</g>
|
||||
<!-- Node2->Node3 -->
|
||||
<g id="edge2_Node000002_Node000003" class="edge">
|
||||
<title>Node2->Node3</title>
|
||||
<g id="a_edge2_Node000002_Node000003"><a xlink:title=" ">
|
||||
<path fill="none" stroke="#63b8ff" d="M127.48,-174.55C137.38,-171.09 149.08,-167 160.68,-162.95"/>
|
||||
<polygon fill="#63b8ff" stroke="#63b8ff" points="161.53,-166.36 169.82,-159.76 159.22,-159.75 161.53,-166.36"/>
|
||||
</a>
|
||||
</g>
|
||||
</g>
|
||||
<!-- Node8 -->
|
||||
<g id="Node000008" class="node">
|
||||
<title>Node8</title>
|
||||
<g id="a_Node000008"><a xlink:href="../../d0/dbc/namespacestrings_1_1boyer__moore.html#a056122c8fe8fb0f5fca6428d3f7b5c3a" target="_top" xlink:title="Check if pat is prefix of str.">
|
||||
<polygon fill="white" stroke="#666666" points="270.75,-244.88 163.25,-244.88 163.25,-214.38 270.75,-214.38 270.75,-244.88"/>
|
||||
<text text-anchor="start" x="171.25" y="-231.38" font-family="Helvetica,sans-Serif" font-size="10.00">strings::boyer_moore</text>
|
||||
<text text-anchor="middle" x="217" y="-220.12" font-family="Helvetica,sans-Serif" font-size="10.00">::is_prefix</text>
|
||||
</a>
|
||||
</g>
|
||||
</g>
|
||||
<!-- Node2->Node8 -->
|
||||
<g id="edge10_Node000002_Node000008" class="edge">
|
||||
<title>Node2->Node8</title>
|
||||
<g id="a_edge10_Node000002_Node000008"><a xlink:title=" ">
|
||||
<path fill="none" stroke="#63b8ff" d="M126.63,-193.72C138.38,-198.44 152.8,-204.23 166.6,-209.78"/>
|
||||
<polygon fill="#63b8ff" stroke="#63b8ff" points="164.99,-212.9 175.57,-213.38 167.6,-206.41 164.99,-212.9"/>
|
||||
</a>
|
||||
</g>
|
||||
</g>
|
||||
<!-- Node9 -->
|
||||
<g id="Node000009" class="node">
|
||||
<title>Node9</title>
|
||||
<g id="a_Node000009"><a xlink:href="../../d0/dbc/namespacestrings_1_1boyer__moore.html#a15703b553faed0d28202c10808cf9738" target="_top" xlink:title="A function that implements Boyer-Moore's algorithm.">
|
||||
<polygon fill="white" stroke="#666666" points="270.75,-108.88 163.25,-108.88 163.25,-78.38 270.75,-78.38 270.75,-108.88"/>
|
||||
<text text-anchor="start" x="171.25" y="-95.38" font-family="Helvetica,sans-Serif" font-size="10.00">strings::boyer_moore</text>
|
||||
<text text-anchor="middle" x="217" y="-84.12" font-family="Helvetica,sans-Serif" font-size="10.00">::search</text>
|
||||
</a>
|
||||
</g>
|
||||
</g>
|
||||
<!-- Node2->Node9 -->
|
||||
<g id="edge11_Node000002_Node000009" class="edge">
|
||||
<title>Node2->Node9</title>
|
||||
<g id="a_edge11_Node000002_Node000009"><a xlink:title=" ">
|
||||
<path fill="none" stroke="#63b8ff" d="M117.33,-173.67C120.75,-171.22 124.24,-168.48 127.25,-165.62 146.1,-147.77 143.1,-136 163.25,-119.62 165.15,-118.08 167.16,-116.6 169.23,-115.18"/>
|
||||
<polygon fill="#63b8ff" stroke="#63b8ff" points="170.7,-118.39 177.38,-110.16 167.03,-112.43 170.7,-118.39"/>
|
||||
</a>
|
||||
</g>
|
||||
</g>
|
||||
<!-- Node12 -->
|
||||
<g id="Node000012" class="node">
|
||||
<title>Node12</title>
|
||||
<g id="a_Node000012"><a target="_blank" xlink:href="http://en.cppreference.com/w/cpp/container/vector/size.html#" xlink:title=" ">
|
||||
<polygon fill="white" stroke="#666666" points="260.25,-196.25 173.75,-196.25 173.75,-177 260.25,-177 260.25,-196.25"/>
|
||||
<text text-anchor="middle" x="217" y="-182.75" font-family="Helvetica,sans-Serif" font-size="10.00">std::vector::size</text>
|
||||
</a>
|
||||
</g>
|
||||
</g>
|
||||
<!-- Node2->Node12 -->
|
||||
<g id="edge16_Node000002_Node000012" class="edge">
|
||||
<title>Node2->Node12</title>
|
||||
<g id="a_edge16_Node000002_Node000012"><a xlink:title=" ">
|
||||
<path fill="none" stroke="#63b8ff" d="M127.48,-184.31C137.78,-184.58 150.03,-184.9 162.08,-185.21"/>
|
||||
<polygon fill="#63b8ff" stroke="#63b8ff" points="161.9,-188.71 171.99,-185.47 162.09,-181.71 161.9,-188.71"/>
|
||||
</a>
|
||||
</g>
|
||||
</g>
|
||||
<!-- Node4 -->
|
||||
<g id="Node000004" class="node">
|
||||
<title>Node4</title>
|
||||
<g id="a_Node000004"><a xlink:href="../../d0/dbc/namespacestrings_1_1boyer__moore.html#a2f6688c9bb3e692297a3aa09cebc1c00" target="_top" xlink:title="A function that preprocess the bad char table.">
|
||||
<polygon fill="white" stroke="#666666" points="418.38,-209.88 310.88,-209.88 310.88,-179.38 418.38,-179.38 418.38,-209.88"/>
|
||||
<text text-anchor="start" x="318.88" y="-196.38" font-family="Helvetica,sans-Serif" font-size="10.00">strings::boyer_moore</text>
|
||||
<text text-anchor="middle" x="364.62" y="-185.12" font-family="Helvetica,sans-Serif" font-size="10.00">::init_bad_char</text>
|
||||
</a>
|
||||
</g>
|
||||
</g>
|
||||
<!-- Node3->Node4 -->
|
||||
<g id="edge3_Node000003_Node000004" class="edge">
|
||||
<title>Node3->Node4</title>
|
||||
<g id="a_edge3_Node000003_Node000004"><a xlink:title=" ">
|
||||
<path fill="none" stroke="#63b8ff" d="M262.88,-159.34C277.2,-164.36 293.23,-169.97 308.21,-175.22"/>
|
||||
<polygon fill="#63b8ff" stroke="#63b8ff" points="306.87,-178.46 317.46,-178.46 309.18,-171.85 306.87,-178.46"/>
|
||||
</a>
|
||||
</g>
|
||||
</g>
|
||||
<!-- Node7 -->
|
||||
<g id="Node000007" class="node">
|
||||
<title>Node7</title>
|
||||
<g id="a_Node000007"><a xlink:href="../../d0/dbc/namespacestrings_1_1boyer__moore.html#aa709cf7fca02b7d3e1888423d5f739a1" target="_top" xlink:title="A function that preprocess the good suffix thable.">
|
||||
<polygon fill="white" stroke="#666666" points="418.38,-160.88 310.88,-160.88 310.88,-130.38 418.38,-130.38 418.38,-160.88"/>
|
||||
<text text-anchor="start" x="318.88" y="-147.38" font-family="Helvetica,sans-Serif" font-size="10.00">strings::boyer_moore</text>
|
||||
<text text-anchor="middle" x="364.62" y="-136.12" font-family="Helvetica,sans-Serif" font-size="10.00">::init_good_suffix</text>
|
||||
</a>
|
||||
</g>
|
||||
</g>
|
||||
<!-- Node3->Node7 -->
|
||||
<g id="edge6_Node000003_Node000007" class="edge">
|
||||
<title>Node3->Node7</title>
|
||||
<g id="a_edge6_Node000003_Node000007"><a xlink:title=" ">
|
||||
<path fill="none" stroke="#63b8ff" d="M270.99,-144.35C280.12,-144.48 289.71,-144.61 299.11,-144.74"/>
|
||||
<polygon fill="#63b8ff" stroke="#63b8ff" points="298.87,-148.24 308.92,-144.87 298.97,-141.24 298.87,-148.24"/>
|
||||
</a>
|
||||
</g>
|
||||
</g>
|
||||
<!-- Node5 -->
|
||||
<g id="Node000005" class="node">
|
||||
<title>Node5</title>
|
||||
<g id="a_Node000005"><a target="_blank" xlink:href="http://en.cppreference.com/w/cpp/string/basic_string/size.html#" xlink:title=" ">
|
||||
<polygon fill="white" stroke="#666666" points="551.75,-155.25 460,-155.25 460,-136 551.75,-136 551.75,-155.25"/>
|
||||
<text text-anchor="middle" x="505.88" y="-141.75" font-family="Helvetica,sans-Serif" font-size="10.00">std::string::length</text>
|
||||
</a>
|
||||
</g>
|
||||
</g>
|
||||
<!-- Node4->Node5 -->
|
||||
<g id="edge4_Node000004_Node000005" class="edge">
|
||||
<title>Node4->Node5</title>
|
||||
<g id="a_edge4_Node000004_Node000005"><a xlink:title=" ">
|
||||
<path fill="none" stroke="#63b8ff" d="M410.07,-178.99C427.83,-172.74 448.11,-165.6 465.35,-159.53"/>
|
||||
<polygon fill="#63b8ff" stroke="#63b8ff" points="466.48,-162.85 474.75,-156.22 464.16,-156.24 466.48,-162.85"/>
|
||||
</a>
|
||||
</g>
|
||||
</g>
|
||||
<!-- Node6 -->
|
||||
<g id="Node000006" class="node">
|
||||
<title>Node6</title>
|
||||
<g id="a_Node000006"><a target="_blank" xlink:href="http://en.cppreference.com/w/cpp/container/vector/resize.html#" xlink:title=" ">
|
||||
<polygon fill="white" stroke="#666666" points="553.25,-198.25 458.5,-198.25 458.5,-179 553.25,-179 553.25,-198.25"/>
|
||||
<text text-anchor="middle" x="505.88" y="-184.75" font-family="Helvetica,sans-Serif" font-size="10.00">std::vector::resize</text>
|
||||
</a>
|
||||
</g>
|
||||
</g>
|
||||
<!-- Node4->Node6 -->
|
||||
<g id="edge5_Node000004_Node000006" class="edge">
|
||||
<title>Node4->Node6</title>
|
||||
<g id="a_edge5_Node000004_Node000006"><a xlink:title=" ">
|
||||
<path fill="none" stroke="#63b8ff" d="M418.67,-192.34C427.96,-191.94 437.66,-191.52 447.07,-191.12"/>
|
||||
<polygon fill="#63b8ff" stroke="#63b8ff" points="447,-194.62 456.84,-190.69 446.7,-187.63 447,-194.62"/>
|
||||
</a>
|
||||
</g>
|
||||
</g>
|
||||
<!-- Node7->Node5 -->
|
||||
<g id="edge7_Node000007_Node000005" class="edge">
|
||||
<title>Node7->Node5</title>
|
||||
<g id="a_edge7_Node000007_Node000005"><a xlink:title=" ">
|
||||
<path fill="none" stroke="#63b8ff" d="M418.67,-139.05C428.39,-138.84 438.57,-138.82 448.39,-138.98"/>
|
||||
<polygon fill="#63b8ff" stroke="#63b8ff" points="448.1,-142.48 458.19,-139.22 448.28,-135.48 448.1,-142.48"/>
|
||||
</a>
|
||||
</g>
|
||||
</g>
|
||||
<!-- Node7->Node5 -->
|
||||
<g id="edge9_Node000007_Node000005" class="edge">
|
||||
<title>Node7->Node5</title>
|
||||
<g id="a_edge9_Node000007_Node000005"><a xlink:title=" ">
|
||||
<path fill="none" stroke="#63b8ff" d="M418.67,-152.2C428.39,-152.41 438.57,-152.43 448.39,-152.27"/>
|
||||
<polygon fill="#63b8ff" stroke="#63b8ff" points="448.28,-155.77 458.19,-152.03 448.1,-148.77 448.28,-155.77"/>
|
||||
</a>
|
||||
</g>
|
||||
</g>
|
||||
<!-- Node7->Node6 -->
|
||||
<g id="edge8_Node000007_Node000006" class="edge">
|
||||
<title>Node7->Node6</title>
|
||||
<g id="a_edge8_Node000007_Node000006"><a xlink:title=" ">
|
||||
<path fill="none" stroke="#63b8ff" d="M416.29,-161.27C431.16,-165.86 447.29,-170.84 461.65,-175.28"/>
|
||||
<polygon fill="#63b8ff" stroke="#63b8ff" points="460.2,-178.49 470.79,-178.1 462.27,-171.81 460.2,-178.49"/>
|
||||
</a>
|
||||
</g>
|
||||
</g>
|
||||
<!-- Node9->Node5 -->
|
||||
<g id="edge12_Node000009_Node000005" class="edge">
|
||||
<title>Node9->Node5</title>
|
||||
<g id="a_edge12_Node000009_Node000005"><a xlink:title=" ">
|
||||
<path fill="none" stroke="#63b8ff" d="M270.91,-91.36C312.42,-94.21 371.5,-101.77 422.5,-112.62 443.33,-117.06 466.6,-124.03 483.07,-130.89"/>
|
||||
<polygon fill="#63b8ff" stroke="#63b8ff" points="481.36,-133.95 491.91,-134.95 484.28,-127.59 481.36,-133.95"/>
|
||||
</a>
|
||||
</g>
|
||||
</g>
|
||||
<!-- Node9->Node5 -->
|
||||
<g id="edge15_Node000009_Node000005" class="edge">
|
||||
<title>Node9->Node5</title>
|
||||
<g id="a_edge15_Node000009_Node000005"><a xlink:title=" ">
|
||||
<path fill="none" stroke="#63b8ff" d="M270.91,-106.05C312.42,-112.21 371.5,-119.77 422.5,-130.62 431.1,-132.46 440.12,-134.72 448.91,-137.01"/>
|
||||
<polygon fill="#63b8ff" stroke="#63b8ff" points="447.84,-140.35 458.4,-139.51 449.62,-133.58 447.84,-140.35"/>
|
||||
</a>
|
||||
</g>
|
||||
</g>
|
||||
<!-- Node10 -->
|
||||
<g id="Node000010" class="node">
|
||||
<title>Node10</title>
|
||||
<g id="a_Node000010"><a target="_blank" xlink:href="http://en.cppreference.com/w/cpp/algorithm/max.html#" xlink:title=" ">
|
||||
<polygon fill="white" stroke="#666666" points="391.75,-56.25 337.5,-56.25 337.5,-37 391.75,-37 391.75,-56.25"/>
|
||||
<text text-anchor="middle" x="364.62" y="-42.75" font-family="Helvetica,sans-Serif" font-size="10.00">std::max</text>
|
||||
</a>
|
||||
</g>
|
||||
</g>
|
||||
<!-- Node9->Node10 -->
|
||||
<g id="edge13_Node000009_Node000010" class="edge">
|
||||
<title>Node9->Node10</title>
|
||||
<g id="a_edge13_Node000009_Node000010"><a xlink:title=" ">
|
||||
<path fill="none" stroke="#63b8ff" d="M266.49,-77.97C286.09,-71.65 308.34,-64.47 326.6,-58.58"/>
|
||||
<polygon fill="#63b8ff" stroke="#63b8ff" points="327.51,-61.96 335.95,-55.56 325.36,-55.3 327.51,-61.96"/>
|
||||
</a>
|
||||
</g>
|
||||
</g>
|
||||
<!-- Node11 -->
|
||||
<g id="Node000011" class="node">
|
||||
<title>Node11</title>
|
||||
<g id="a_Node000011"><a target="_blank" xlink:href="http://en.cppreference.com/w/cpp/container/vector/push_back.html#" xlink:title=" ">
|
||||
<polygon fill="white" stroke="#666666" points="422.5,-19.25 306.75,-19.25 306.75,0 422.5,0 422.5,-19.25"/>
|
||||
<text text-anchor="middle" x="364.62" y="-5.75" font-family="Helvetica,sans-Serif" font-size="10.00">std::vector::push_back</text>
|
||||
</a>
|
||||
</g>
|
||||
</g>
|
||||
<!-- Node9->Node11 -->
|
||||
<g id="edge14_Node000009_Node000011" class="edge">
|
||||
<title>Node9->Node11</title>
|
||||
<g id="a_edge14_Node000009_Node000011"><a xlink:title=" ">
|
||||
<path fill="none" stroke="#63b8ff" d="M235.19,-78.09C252.27,-63.35 279.74,-41.45 306.75,-27.62 309.42,-26.26 312.22,-24.97 315.08,-23.76"/>
|
||||
<polygon fill="#63b8ff" stroke="#63b8ff" points="316.1,-27.11 324.18,-20.26 313.59,-20.58 316.1,-27.11"/>
|
||||
</a>
|
||||
</g>
|
||||
</g>
|
||||
<!-- Node13->Node3 -->
|
||||
<g id="edge18_Node000013_Node000003" class="edge">
|
||||
<title>Node13->Node3</title>
|
||||
<g id="a_edge18_Node000013_Node000003"><a xlink:title=" ">
|
||||
<path fill="none" stroke="#63b8ff" d="M126.34,-145.97C133.93,-145.78 142.64,-145.55 151.6,-145.31"/>
|
||||
<polygon fill="#63b8ff" stroke="#63b8ff" points="151.58,-148.81 161.48,-145.05 151.4,-141.82 151.58,-148.81"/>
|
||||
</a>
|
||||
</g>
|
||||
</g>
|
||||
<!-- Node13->Node8 -->
|
||||
<g id="edge19_Node000013_Node000008" class="edge">
|
||||
<title>Node13->Node8</title>
|
||||
<g id="a_edge19_Node000013_Node000008"><a xlink:title=" ">
|
||||
<path fill="none" stroke="#63b8ff" d="M117.21,-156.71C120.64,-159.15 124.16,-161.86 127.25,-164.62 145.32,-180.8 143.78,-191.17 163.25,-205.62 164.41,-206.49 165.6,-207.32 166.83,-208.14"/>
|
||||
<polygon fill="#63b8ff" stroke="#63b8ff" points="164.94,-211.09 175.32,-213.21 168.53,-205.08 164.94,-211.09"/>
|
||||
</a>
|
||||
</g>
|
||||
</g>
|
||||
<!-- Node13->Node9 -->
|
||||
<g id="edge20_Node000013_Node000009" class="edge">
|
||||
<title>Node13->Node9</title>
|
||||
<g id="a_edge20_Node000013_Node000009"><a xlink:title=" ">
|
||||
<path fill="none" stroke="#63b8ff" d="M123.31,-136.53C137.06,-130.16 155.32,-121.71 171.99,-114"/>
|
||||
<polygon fill="#63b8ff" stroke="#63b8ff" points="173.13,-117.32 180.74,-109.95 170.19,-110.97 173.13,-117.32"/>
|
||||
</a>
|
||||
</g>
|
||||
</g>
|
||||
<!-- Node13->Node12 -->
|
||||
<g id="edge21_Node000013_Node000012" class="edge">
|
||||
<title>Node13->Node12</title>
|
||||
<g id="a_edge21_Node000013_Node000012"><a xlink:title=" ">
|
||||
<path fill="none" stroke="#63b8ff" d="M126.34,-155.3C141.02,-160.43 159.93,-167.04 176.6,-172.86"/>
|
||||
<polygon fill="#63b8ff" stroke="#63b8ff" points="175.14,-176.06 185.73,-176.05 177.45,-169.45 175.14,-176.06"/>
|
||||
</a>
|
||||
</g>
|
||||
</g>
|
||||
</g>
|
||||
</svg>
|
||||
|
||||
<g id="navigator" transform="translate(0 0)" fill="#404254">
|
||||
<rect fill="#f2f5e9" fill-opacity="0.5" stroke="#606060" stroke-width=".5" x="0" y="0" width="60" height="60"/>
|
||||
<use id="zoomplus" xlink:href="#zoomPlus" x="17" y="9" onmousedown="handleZoom(evt,'in')"/>
|
||||
<use id="zoomminus" xlink:href="#zoomMin" x="42" y="9" onmousedown="handleZoom(evt,'out')"/>
|
||||
<use id="reset" xlink:href="#resetDef" x="30" y="36" onmousedown="handleReset()"/>
|
||||
<use id="arrowup" xlink:href="#arrowUp" x="0" y="0" onmousedown="handlePan(0,-1)"/>
|
||||
<use id="arrowright" xlink:href="#arrowRight" x="0" y="0" onmousedown="handlePan(1,0)"/>
|
||||
<use id="arrowdown" xlink:href="#arrowDown" x="0" y="0" onmousedown="handlePan(0,1)"/>
|
||||
<use id="arrowleft" xlink:href="#arrowLeft" x="0" y="0" onmousedown="handlePan(-1,0)"/>
|
||||
</g>
|
||||
<svg viewBox="0 0 15 15" width="100%" height="30px" preserveAspectRatio="xMaxYMin meet">
|
||||
<g id="arrow_out" transform="scale(0.3 0.3)">
|
||||
<a xlink:href="boyer__moore_8cpp_a483bb8ccf42aaf7375a83e91490eda1e_cgraph_org.svg" target="_base">
|
||||
<rect id="button" ry="5" rx="5" y="6" x="6" height="38" width="38"
|
||||
fill="#f2f5e9" fill-opacity="0.5" stroke="#606060" stroke-width="1.0"/>
|
||||
<path id="arrow"
|
||||
d="M 11.500037,31.436501 C 11.940474,20.09759 22.043105,11.32322 32.158766,21.979434 L 37.068811,17.246167 C 37.068811,17.246167 37.088388,32 37.088388,32 L 22.160133,31.978069 C 22.160133,31.978069 26.997745,27.140456 26.997745,27.140456 C 18.528582,18.264221 13.291696,25.230495 11.500037,31.436501 z"
|
||||
style="fill:#404040;"/>
|
||||
</a>
|
||||
</g>
|
||||
</svg>
|
||||
|
||||
<style type='text/css'>
|
||||
<![CDATA[
|
||||
[data-mouse-over-selected='false'] { opacity: 0.7; }
|
||||
[data-mouse-over-selected='true'] { opacity: 1.0; }
|
||||
]]>
|
||||
</style>
|
||||
<script type="application/ecmascript"><![CDATA[
|
||||
document.addEventListener('DOMContentLoaded', (event) => {
|
||||
highlightEdges();
|
||||
highlightAdjacentNodes();
|
||||
});
|
||||
]]></script>
|
||||
</svg>
|
||||
|
Before Width: | Height: | Size: 20 KiB |
@@ -1,323 +0,0 @@
|
||||
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
|
||||
<!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN"
|
||||
"http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd">
|
||||
<!-- Generated by graphviz version 12.1.2 (20240928.0832)
|
||||
-->
|
||||
<!-- Title: tests Pages: 1 -->
|
||||
<svg width="561pt" height="253pt"
|
||||
viewBox="0.00 0.00 561.25 252.88" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink">
|
||||
<g id="graph0" class="graph" transform="scale(1 1) rotate(0) translate(4 248.88)">
|
||||
<title>tests</title>
|
||||
<!-- Node1 -->
|
||||
<g id="Node000001" class="node">
|
||||
<title>Node1</title>
|
||||
<g id="a_Node000001"><a xlink:title="Self-test implementations.">
|
||||
<polygon fill="#999999" stroke="#666666" points="37.75,-174.25 0,-174.25 0,-155 37.75,-155 37.75,-174.25"/>
|
||||
<text text-anchor="middle" x="18.88" y="-160.75" font-family="Helvetica,sans-Serif" font-size="10.00">tests</text>
|
||||
</a>
|
||||
</g>
|
||||
</g>
|
||||
<!-- Node2 -->
|
||||
<g id="Node000002" class="node">
|
||||
<title>Node2</title>
|
||||
<g id="a_Node000002"><a xlink:href="../../d3/db2/boyer__moore_8cpp.html#acb8f69e7901ee7459d98bd4b9dda79d9" target="_top" xlink:title="A test case in which we search for every appearance of the word 'and'.">
|
||||
<polygon fill="white" stroke="#666666" points="127.25,-193.25 73.75,-193.25 73.75,-174 127.25,-174 127.25,-193.25"/>
|
||||
<text text-anchor="middle" x="100.5" y="-179.75" font-family="Helvetica,sans-Serif" font-size="10.00">and_test</text>
|
||||
</a>
|
||||
</g>
|
||||
</g>
|
||||
<!-- Node1->Node2 -->
|
||||
<g id="edge1_Node000001_Node000002" class="edge">
|
||||
<title>Node1->Node2</title>
|
||||
<g id="a_edge1_Node000001_Node000002"><a xlink:title=" ">
|
||||
<path fill="none" stroke="#63b8ff" d="M37.94,-168.94C45.22,-170.67 53.89,-172.74 62.39,-174.77"/>
|
||||
<polygon fill="#63b8ff" stroke="#63b8ff" points="61.34,-178.12 71.88,-177.03 62.96,-171.31 61.34,-178.12"/>
|
||||
</a>
|
||||
</g>
|
||||
</g>
|
||||
<!-- Node13 -->
|
||||
<g id="Node000013" class="node">
|
||||
<title>Node13</title>
|
||||
<g id="a_Node000013"><a xlink:href="../../d3/db2/boyer__moore_8cpp.html#ac8fac0dd4b19973da103a434143a16d2" target="_top" xlink:title="A test case in which we search for every appearance of the word 'pat'.">
|
||||
<polygon fill="white" stroke="#666666" points="126.12,-156.25 74.88,-156.25 74.88,-137 126.12,-137 126.12,-156.25"/>
|
||||
<text text-anchor="middle" x="100.5" y="-142.75" font-family="Helvetica,sans-Serif" font-size="10.00">pat_test</text>
|
||||
</a>
|
||||
</g>
|
||||
</g>
|
||||
<!-- Node1->Node13 -->
|
||||
<g id="edge17_Node000001_Node000013" class="edge">
|
||||
<title>Node1->Node13</title>
|
||||
<g id="a_edge17_Node000001_Node000013"><a xlink:title=" ">
|
||||
<path fill="none" stroke="#63b8ff" d="M37.94,-160.54C45.56,-158.82 54.7,-156.75 63.58,-154.74"/>
|
||||
<polygon fill="#63b8ff" stroke="#63b8ff" points="64.1,-158.22 73.09,-152.6 62.56,-151.39 64.1,-158.22"/>
|
||||
</a>
|
||||
</g>
|
||||
</g>
|
||||
<!-- Node3 -->
|
||||
<g id="Node000003" class="node">
|
||||
<title>Node3</title>
|
||||
<g id="a_Node000003"><a xlink:href="../../d0/dbc/namespacestrings_1_1boyer__moore.html#a0b165af1dc341289fd705be4c67728f8" target="_top" xlink:title="A function that initializes pattern.">
|
||||
<polygon fill="white" stroke="#666666" points="270.75,-158.88 163.25,-158.88 163.25,-128.38 270.75,-128.38 270.75,-158.88"/>
|
||||
<text text-anchor="start" x="171.25" y="-145.38" font-family="Helvetica,sans-Serif" font-size="10.00">strings::boyer_moore</text>
|
||||
<text text-anchor="middle" x="217" y="-134.12" font-family="Helvetica,sans-Serif" font-size="10.00">::init_pattern</text>
|
||||
</a>
|
||||
</g>
|
||||
</g>
|
||||
<!-- Node2->Node3 -->
|
||||
<g id="edge2_Node000002_Node000003" class="edge">
|
||||
<title>Node2->Node3</title>
|
||||
<g id="a_edge2_Node000002_Node000003"><a xlink:title=" ">
|
||||
<path fill="none" stroke="#63b8ff" d="M127.48,-174.55C137.38,-171.09 149.08,-167 160.68,-162.95"/>
|
||||
<polygon fill="#63b8ff" stroke="#63b8ff" points="161.53,-166.36 169.82,-159.76 159.22,-159.75 161.53,-166.36"/>
|
||||
</a>
|
||||
</g>
|
||||
</g>
|
||||
<!-- Node8 -->
|
||||
<g id="Node000008" class="node">
|
||||
<title>Node8</title>
|
||||
<g id="a_Node000008"><a xlink:href="../../d0/dbc/namespacestrings_1_1boyer__moore.html#a056122c8fe8fb0f5fca6428d3f7b5c3a" target="_top" xlink:title="Check if pat is prefix of str.">
|
||||
<polygon fill="white" stroke="#666666" points="270.75,-244.88 163.25,-244.88 163.25,-214.38 270.75,-214.38 270.75,-244.88"/>
|
||||
<text text-anchor="start" x="171.25" y="-231.38" font-family="Helvetica,sans-Serif" font-size="10.00">strings::boyer_moore</text>
|
||||
<text text-anchor="middle" x="217" y="-220.12" font-family="Helvetica,sans-Serif" font-size="10.00">::is_prefix</text>
|
||||
</a>
|
||||
</g>
|
||||
</g>
|
||||
<!-- Node2->Node8 -->
|
||||
<g id="edge10_Node000002_Node000008" class="edge">
|
||||
<title>Node2->Node8</title>
|
||||
<g id="a_edge10_Node000002_Node000008"><a xlink:title=" ">
|
||||
<path fill="none" stroke="#63b8ff" d="M126.63,-193.72C138.38,-198.44 152.8,-204.23 166.6,-209.78"/>
|
||||
<polygon fill="#63b8ff" stroke="#63b8ff" points="164.99,-212.9 175.57,-213.38 167.6,-206.41 164.99,-212.9"/>
|
||||
</a>
|
||||
</g>
|
||||
</g>
|
||||
<!-- Node9 -->
|
||||
<g id="Node000009" class="node">
|
||||
<title>Node9</title>
|
||||
<g id="a_Node000009"><a xlink:href="../../d0/dbc/namespacestrings_1_1boyer__moore.html#a15703b553faed0d28202c10808cf9738" target="_top" xlink:title="A function that implements Boyer-Moore's algorithm.">
|
||||
<polygon fill="white" stroke="#666666" points="270.75,-108.88 163.25,-108.88 163.25,-78.38 270.75,-78.38 270.75,-108.88"/>
|
||||
<text text-anchor="start" x="171.25" y="-95.38" font-family="Helvetica,sans-Serif" font-size="10.00">strings::boyer_moore</text>
|
||||
<text text-anchor="middle" x="217" y="-84.12" font-family="Helvetica,sans-Serif" font-size="10.00">::search</text>
|
||||
</a>
|
||||
</g>
|
||||
</g>
|
||||
<!-- Node2->Node9 -->
|
||||
<g id="edge11_Node000002_Node000009" class="edge">
|
||||
<title>Node2->Node9</title>
|
||||
<g id="a_edge11_Node000002_Node000009"><a xlink:title=" ">
|
||||
<path fill="none" stroke="#63b8ff" d="M117.33,-173.67C120.75,-171.22 124.24,-168.48 127.25,-165.62 146.1,-147.77 143.1,-136 163.25,-119.62 165.15,-118.08 167.16,-116.6 169.23,-115.18"/>
|
||||
<polygon fill="#63b8ff" stroke="#63b8ff" points="170.7,-118.39 177.38,-110.16 167.03,-112.43 170.7,-118.39"/>
|
||||
</a>
|
||||
</g>
|
||||
</g>
|
||||
<!-- Node12 -->
|
||||
<g id="Node000012" class="node">
|
||||
<title>Node12</title>
|
||||
<g id="a_Node000012"><a target="_blank" xlink:href="http://en.cppreference.com/w/cpp/container/vector/size.html#" xlink:title=" ">
|
||||
<polygon fill="white" stroke="#666666" points="260.25,-196.25 173.75,-196.25 173.75,-177 260.25,-177 260.25,-196.25"/>
|
||||
<text text-anchor="middle" x="217" y="-182.75" font-family="Helvetica,sans-Serif" font-size="10.00">std::vector::size</text>
|
||||
</a>
|
||||
</g>
|
||||
</g>
|
||||
<!-- Node2->Node12 -->
|
||||
<g id="edge16_Node000002_Node000012" class="edge">
|
||||
<title>Node2->Node12</title>
|
||||
<g id="a_edge16_Node000002_Node000012"><a xlink:title=" ">
|
||||
<path fill="none" stroke="#63b8ff" d="M127.48,-184.31C137.78,-184.58 150.03,-184.9 162.08,-185.21"/>
|
||||
<polygon fill="#63b8ff" stroke="#63b8ff" points="161.9,-188.71 171.99,-185.47 162.09,-181.71 161.9,-188.71"/>
|
||||
</a>
|
||||
</g>
|
||||
</g>
|
||||
<!-- Node4 -->
|
||||
<g id="Node000004" class="node">
|
||||
<title>Node4</title>
|
||||
<g id="a_Node000004"><a xlink:href="../../d0/dbc/namespacestrings_1_1boyer__moore.html#a2f6688c9bb3e692297a3aa09cebc1c00" target="_top" xlink:title="A function that preprocess the bad char table.">
|
||||
<polygon fill="white" stroke="#666666" points="418.38,-209.88 310.88,-209.88 310.88,-179.38 418.38,-179.38 418.38,-209.88"/>
|
||||
<text text-anchor="start" x="318.88" y="-196.38" font-family="Helvetica,sans-Serif" font-size="10.00">strings::boyer_moore</text>
|
||||
<text text-anchor="middle" x="364.62" y="-185.12" font-family="Helvetica,sans-Serif" font-size="10.00">::init_bad_char</text>
|
||||
</a>
|
||||
</g>
|
||||
</g>
|
||||
<!-- Node3->Node4 -->
|
||||
<g id="edge3_Node000003_Node000004" class="edge">
|
||||
<title>Node3->Node4</title>
|
||||
<g id="a_edge3_Node000003_Node000004"><a xlink:title=" ">
|
||||
<path fill="none" stroke="#63b8ff" d="M262.88,-159.34C277.2,-164.36 293.23,-169.97 308.21,-175.22"/>
|
||||
<polygon fill="#63b8ff" stroke="#63b8ff" points="306.87,-178.46 317.46,-178.46 309.18,-171.85 306.87,-178.46"/>
|
||||
</a>
|
||||
</g>
|
||||
</g>
|
||||
<!-- Node7 -->
|
||||
<g id="Node000007" class="node">
|
||||
<title>Node7</title>
|
||||
<g id="a_Node000007"><a xlink:href="../../d0/dbc/namespacestrings_1_1boyer__moore.html#aa709cf7fca02b7d3e1888423d5f739a1" target="_top" xlink:title="A function that preprocess the good suffix thable.">
|
||||
<polygon fill="white" stroke="#666666" points="418.38,-160.88 310.88,-160.88 310.88,-130.38 418.38,-130.38 418.38,-160.88"/>
|
||||
<text text-anchor="start" x="318.88" y="-147.38" font-family="Helvetica,sans-Serif" font-size="10.00">strings::boyer_moore</text>
|
||||
<text text-anchor="middle" x="364.62" y="-136.12" font-family="Helvetica,sans-Serif" font-size="10.00">::init_good_suffix</text>
|
||||
</a>
|
||||
</g>
|
||||
</g>
|
||||
<!-- Node3->Node7 -->
|
||||
<g id="edge6_Node000003_Node000007" class="edge">
|
||||
<title>Node3->Node7</title>
|
||||
<g id="a_edge6_Node000003_Node000007"><a xlink:title=" ">
|
||||
<path fill="none" stroke="#63b8ff" d="M270.99,-144.35C280.12,-144.48 289.71,-144.61 299.11,-144.74"/>
|
||||
<polygon fill="#63b8ff" stroke="#63b8ff" points="298.87,-148.24 308.92,-144.87 298.97,-141.24 298.87,-148.24"/>
|
||||
</a>
|
||||
</g>
|
||||
</g>
|
||||
<!-- Node5 -->
|
||||
<g id="Node000005" class="node">
|
||||
<title>Node5</title>
|
||||
<g id="a_Node000005"><a target="_blank" xlink:href="http://en.cppreference.com/w/cpp/string/basic_string/size.html#" xlink:title=" ">
|
||||
<polygon fill="white" stroke="#666666" points="551.75,-155.25 460,-155.25 460,-136 551.75,-136 551.75,-155.25"/>
|
||||
<text text-anchor="middle" x="505.88" y="-141.75" font-family="Helvetica,sans-Serif" font-size="10.00">std::string::length</text>
|
||||
</a>
|
||||
</g>
|
||||
</g>
|
||||
<!-- Node4->Node5 -->
|
||||
<g id="edge4_Node000004_Node000005" class="edge">
|
||||
<title>Node4->Node5</title>
|
||||
<g id="a_edge4_Node000004_Node000005"><a xlink:title=" ">
|
||||
<path fill="none" stroke="#63b8ff" d="M410.07,-178.99C427.83,-172.74 448.11,-165.6 465.35,-159.53"/>
|
||||
<polygon fill="#63b8ff" stroke="#63b8ff" points="466.48,-162.85 474.75,-156.22 464.16,-156.24 466.48,-162.85"/>
|
||||
</a>
|
||||
</g>
|
||||
</g>
|
||||
<!-- Node6 -->
|
||||
<g id="Node000006" class="node">
|
||||
<title>Node6</title>
|
||||
<g id="a_Node000006"><a target="_blank" xlink:href="http://en.cppreference.com/w/cpp/container/vector/resize.html#" xlink:title=" ">
|
||||
<polygon fill="white" stroke="#666666" points="553.25,-198.25 458.5,-198.25 458.5,-179 553.25,-179 553.25,-198.25"/>
|
||||
<text text-anchor="middle" x="505.88" y="-184.75" font-family="Helvetica,sans-Serif" font-size="10.00">std::vector::resize</text>
|
||||
</a>
|
||||
</g>
|
||||
</g>
|
||||
<!-- Node4->Node6 -->
|
||||
<g id="edge5_Node000004_Node000006" class="edge">
|
||||
<title>Node4->Node6</title>
|
||||
<g id="a_edge5_Node000004_Node000006"><a xlink:title=" ">
|
||||
<path fill="none" stroke="#63b8ff" d="M418.67,-192.34C427.96,-191.94 437.66,-191.52 447.07,-191.12"/>
|
||||
<polygon fill="#63b8ff" stroke="#63b8ff" points="447,-194.62 456.84,-190.69 446.7,-187.63 447,-194.62"/>
|
||||
</a>
|
||||
</g>
|
||||
</g>
|
||||
<!-- Node7->Node5 -->
|
||||
<g id="edge7_Node000007_Node000005" class="edge">
|
||||
<title>Node7->Node5</title>
|
||||
<g id="a_edge7_Node000007_Node000005"><a xlink:title=" ">
|
||||
<path fill="none" stroke="#63b8ff" d="M418.67,-139.05C428.39,-138.84 438.57,-138.82 448.39,-138.98"/>
|
||||
<polygon fill="#63b8ff" stroke="#63b8ff" points="448.1,-142.48 458.19,-139.22 448.28,-135.48 448.1,-142.48"/>
|
||||
</a>
|
||||
</g>
|
||||
</g>
|
||||
<!-- Node7->Node5 -->
|
||||
<g id="edge9_Node000007_Node000005" class="edge">
|
||||
<title>Node7->Node5</title>
|
||||
<g id="a_edge9_Node000007_Node000005"><a xlink:title=" ">
|
||||
<path fill="none" stroke="#63b8ff" d="M418.67,-152.2C428.39,-152.41 438.57,-152.43 448.39,-152.27"/>
|
||||
<polygon fill="#63b8ff" stroke="#63b8ff" points="448.28,-155.77 458.19,-152.03 448.1,-148.77 448.28,-155.77"/>
|
||||
</a>
|
||||
</g>
|
||||
</g>
|
||||
<!-- Node7->Node6 -->
|
||||
<g id="edge8_Node000007_Node000006" class="edge">
|
||||
<title>Node7->Node6</title>
|
||||
<g id="a_edge8_Node000007_Node000006"><a xlink:title=" ">
|
||||
<path fill="none" stroke="#63b8ff" d="M416.29,-161.27C431.16,-165.86 447.29,-170.84 461.65,-175.28"/>
|
||||
<polygon fill="#63b8ff" stroke="#63b8ff" points="460.2,-178.49 470.79,-178.1 462.27,-171.81 460.2,-178.49"/>
|
||||
</a>
|
||||
</g>
|
||||
</g>
|
||||
<!-- Node9->Node5 -->
|
||||
<g id="edge12_Node000009_Node000005" class="edge">
|
||||
<title>Node9->Node5</title>
|
||||
<g id="a_edge12_Node000009_Node000005"><a xlink:title=" ">
|
||||
<path fill="none" stroke="#63b8ff" d="M270.91,-91.36C312.42,-94.21 371.5,-101.77 422.5,-112.62 443.33,-117.06 466.6,-124.03 483.07,-130.89"/>
|
||||
<polygon fill="#63b8ff" stroke="#63b8ff" points="481.36,-133.95 491.91,-134.95 484.28,-127.59 481.36,-133.95"/>
|
||||
</a>
|
||||
</g>
|
||||
</g>
|
||||
<!-- Node9->Node5 -->
|
||||
<g id="edge15_Node000009_Node000005" class="edge">
|
||||
<title>Node9->Node5</title>
|
||||
<g id="a_edge15_Node000009_Node000005"><a xlink:title=" ">
|
||||
<path fill="none" stroke="#63b8ff" d="M270.91,-106.05C312.42,-112.21 371.5,-119.77 422.5,-130.62 431.1,-132.46 440.12,-134.72 448.91,-137.01"/>
|
||||
<polygon fill="#63b8ff" stroke="#63b8ff" points="447.84,-140.35 458.4,-139.51 449.62,-133.58 447.84,-140.35"/>
|
||||
</a>
|
||||
</g>
|
||||
</g>
|
||||
<!-- Node10 -->
|
||||
<g id="Node000010" class="node">
|
||||
<title>Node10</title>
|
||||
<g id="a_Node000010"><a target="_blank" xlink:href="http://en.cppreference.com/w/cpp/algorithm/max.html#" xlink:title=" ">
|
||||
<polygon fill="white" stroke="#666666" points="391.75,-56.25 337.5,-56.25 337.5,-37 391.75,-37 391.75,-56.25"/>
|
||||
<text text-anchor="middle" x="364.62" y="-42.75" font-family="Helvetica,sans-Serif" font-size="10.00">std::max</text>
|
||||
</a>
|
||||
</g>
|
||||
</g>
|
||||
<!-- Node9->Node10 -->
|
||||
<g id="edge13_Node000009_Node000010" class="edge">
|
||||
<title>Node9->Node10</title>
|
||||
<g id="a_edge13_Node000009_Node000010"><a xlink:title=" ">
|
||||
<path fill="none" stroke="#63b8ff" d="M266.49,-77.97C286.09,-71.65 308.34,-64.47 326.6,-58.58"/>
|
||||
<polygon fill="#63b8ff" stroke="#63b8ff" points="327.51,-61.96 335.95,-55.56 325.36,-55.3 327.51,-61.96"/>
|
||||
</a>
|
||||
</g>
|
||||
</g>
|
||||
<!-- Node11 -->
|
||||
<g id="Node000011" class="node">
|
||||
<title>Node11</title>
|
||||
<g id="a_Node000011"><a target="_blank" xlink:href="http://en.cppreference.com/w/cpp/container/vector/push_back.html#" xlink:title=" ">
|
||||
<polygon fill="white" stroke="#666666" points="422.5,-19.25 306.75,-19.25 306.75,0 422.5,0 422.5,-19.25"/>
|
||||
<text text-anchor="middle" x="364.62" y="-5.75" font-family="Helvetica,sans-Serif" font-size="10.00">std::vector::push_back</text>
|
||||
</a>
|
||||
</g>
|
||||
</g>
|
||||
<!-- Node9->Node11 -->
|
||||
<g id="edge14_Node000009_Node000011" class="edge">
|
||||
<title>Node9->Node11</title>
|
||||
<g id="a_edge14_Node000009_Node000011"><a xlink:title=" ">
|
||||
<path fill="none" stroke="#63b8ff" d="M235.19,-78.09C252.27,-63.35 279.74,-41.45 306.75,-27.62 309.42,-26.26 312.22,-24.97 315.08,-23.76"/>
|
||||
<polygon fill="#63b8ff" stroke="#63b8ff" points="316.1,-27.11 324.18,-20.26 313.59,-20.58 316.1,-27.11"/>
|
||||
</a>
|
||||
</g>
|
||||
</g>
|
||||
<!-- Node13->Node3 -->
|
||||
<g id="edge18_Node000013_Node000003" class="edge">
|
||||
<title>Node13->Node3</title>
|
||||
<g id="a_edge18_Node000013_Node000003"><a xlink:title=" ">
|
||||
<path fill="none" stroke="#63b8ff" d="M126.34,-145.97C133.93,-145.78 142.64,-145.55 151.6,-145.31"/>
|
||||
<polygon fill="#63b8ff" stroke="#63b8ff" points="151.58,-148.81 161.48,-145.05 151.4,-141.82 151.58,-148.81"/>
|
||||
</a>
|
||||
</g>
|
||||
</g>
|
||||
<!-- Node13->Node8 -->
|
||||
<g id="edge19_Node000013_Node000008" class="edge">
|
||||
<title>Node13->Node8</title>
|
||||
<g id="a_edge19_Node000013_Node000008"><a xlink:title=" ">
|
||||
<path fill="none" stroke="#63b8ff" d="M117.21,-156.71C120.64,-159.15 124.16,-161.86 127.25,-164.62 145.32,-180.8 143.78,-191.17 163.25,-205.62 164.41,-206.49 165.6,-207.32 166.83,-208.14"/>
|
||||
<polygon fill="#63b8ff" stroke="#63b8ff" points="164.94,-211.09 175.32,-213.21 168.53,-205.08 164.94,-211.09"/>
|
||||
</a>
|
||||
</g>
|
||||
</g>
|
||||
<!-- Node13->Node9 -->
|
||||
<g id="edge20_Node000013_Node000009" class="edge">
|
||||
<title>Node13->Node9</title>
|
||||
<g id="a_edge20_Node000013_Node000009"><a xlink:title=" ">
|
||||
<path fill="none" stroke="#63b8ff" d="M123.31,-136.53C137.06,-130.16 155.32,-121.71 171.99,-114"/>
|
||||
<polygon fill="#63b8ff" stroke="#63b8ff" points="173.13,-117.32 180.74,-109.95 170.19,-110.97 173.13,-117.32"/>
|
||||
</a>
|
||||
</g>
|
||||
</g>
|
||||
<!-- Node13->Node12 -->
|
||||
<g id="edge21_Node000013_Node000012" class="edge">
|
||||
<title>Node13->Node12</title>
|
||||
<g id="a_edge21_Node000013_Node000012"><a xlink:title=" ">
|
||||
<path fill="none" stroke="#63b8ff" d="M126.34,-155.3C141.02,-160.43 159.93,-167.04 176.6,-172.86"/>
|
||||
<polygon fill="#63b8ff" stroke="#63b8ff" points="175.14,-176.06 185.73,-176.05 177.45,-169.45 175.14,-176.06"/>
|
||||
</a>
|
||||
</g>
|
||||
</g>
|
||||
</g>
|
||||
</svg>
|
||||
|
Before Width: | Height: | Size: 16 KiB |
@@ -1,28 +0,0 @@
|
||||
<map id="pat_test" name="pat_test">
|
||||
<area shape="rect" id="Node000001" title="A test case in which we search for every appearance of the word 'pat'." alt="" coords="5,169,74,194"/>
|
||||
<area shape="rect" id="Node000002" href="$d0/dbc/namespacestrings_1_1boyer__moore.html#a0b165af1dc341289fd705be4c67728f8" title="A function that initializes pattern." alt="" coords="122,71,265,111"/>
|
||||
<area shape="poly" id="edge1_Node000001_Node000002" title=" " alt="" coords="62,166,143,117,146,122,65,171"/>
|
||||
<area shape="rect" id="Node000007" href="$d0/dbc/namespacestrings_1_1boyer__moore.html#a056122c8fe8fb0f5fca6428d3f7b5c3a" title="Check if pat is prefix of str." alt="" coords="122,189,265,230"/>
|
||||
<area shape="poly" id="edge9_Node000001_Node000007" title=" " alt="" coords="74,185,107,191,106,196,74,190"/>
|
||||
<area shape="rect" id="Node000008" href="$d0/dbc/namespacestrings_1_1boyer__moore.html#a15703b553faed0d28202c10808cf9738" title="A function that implements Boyer-Moore's algorithm." alt="" coords="313,136,456,177"/>
|
||||
<area shape="poly" id="edge10_Node000001_Node000008" title=" " alt="" coords="74,177,297,160,298,165,74,182"/>
|
||||
<area shape="rect" id="Node000011" href="/Users/runner/work/C-Plus-Plus/C-Plus-Plus/doc/cppreference-doxygen-web.tag.xml$cpp/container/vector/size.html#" title=" " alt="" coords="136,254,251,280"/>
|
||||
<area shape="poly" id="edge15_Node000001_Node000011" title=" " alt="" coords="58,193,87,216,123,239,135,245,133,250,120,244,84,221,54,197"/>
|
||||
<area shape="rect" id="Node000003" href="$d0/dbc/namespacestrings_1_1boyer__moore.html#a2f6688c9bb3e692297a3aa09cebc1c00" title="A function that preprocess the bad char table." alt="" coords="313,5,456,46"/>
|
||||
<area shape="poly" id="edge2_Node000002_Node000003" title=" " alt="" coords="254,68,308,49,310,54,256,73"/>
|
||||
<area shape="rect" id="Node000006" href="$d0/dbc/namespacestrings_1_1boyer__moore.html#aa709cf7fca02b7d3e1888423d5f739a1" title="A function that preprocess the good suffix thable." alt="" coords="313,71,456,111"/>
|
||||
<area shape="poly" id="edge5_Node000002_Node000006" title=" " alt="" coords="265,88,298,88,298,94,265,94"/>
|
||||
<area shape="rect" id="Node000004" href="/Users/runner/work/C-Plus-Plus/C-Plus-Plus/doc/cppreference-doxygen-web.tag.xml$cpp/string/basic_string/size.html#" title=" " alt="" coords="520,78,643,104"/>
|
||||
<area shape="poly" id="edge3_Node000003_Node000004" title=" " alt="" coords="449,44,527,70,525,75,447,49"/>
|
||||
<area shape="rect" id="Node000005" href="/Users/runner/work/C-Plus-Plus/C-Plus-Plus/doc/cppreference-doxygen-web.tag.xml$cpp/container/vector/resize.html#" title=" " alt="" coords="518,21,645,46"/>
|
||||
<area shape="poly" id="edge4_Node000003_Node000005" title=" " alt="" coords="457,26,503,28,503,33,457,31"/>
|
||||
<area shape="poly" id="edge6_Node000006_Node000004" title=" " alt="" coords="457,97,505,97,505,102,457,102"/>
|
||||
<area shape="poly" id="edge8_Node000006_Node000004" title=" " alt="" coords="457,80,505,80,505,85,457,85"/>
|
||||
<area shape="poly" id="edge7_Node000006_Node000005" title=" " alt="" coords="456,68,520,49,521,54,457,73"/>
|
||||
<area shape="poly" id="edge11_Node000008_Node000004" title=" " alt="" coords="456,139,543,108,545,113,458,144"/>
|
||||
<area shape="poly" id="edge14_Node000008_Node000004" title=" " alt="" coords="425,133,504,105,506,110,427,138"/>
|
||||
<area shape="rect" id="Node000009" href="/Users/runner/work/C-Plus-Plus/C-Plus-Plus/doc/cppreference-doxygen-web.tag.xml$cpp/algorithm/max.html#" title=" " alt="" coords="545,136,618,161"/>
|
||||
<area shape="poly" id="edge12_Node000008_Node000009" title=" " alt="" coords="457,151,529,148,529,153,457,156"/>
|
||||
<area shape="rect" id="Node000010" href="/Users/runner/work/C-Plus-Plus/C-Plus-Plus/doc/cppreference-doxygen-web.tag.xml$cpp/container/vector/push_back.html#" title=" " alt="" coords="504,185,659,210"/>
|
||||
<area shape="poly" id="edge13_Node000008_Node000010" title=" " alt="" coords="457,169,503,178,502,184,456,174"/>
|
||||
</map>
|
||||
@@ -1 +0,0 @@
|
||||
382f0c5d9378c7cbcf591c40e3a3a7db
|
||||
@@ -1,277 +0,0 @@
|
||||
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
|
||||
<!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN"
|
||||
"http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd">
|
||||
<!-- Generated by graphviz version 12.1.2 (20240928.0832)
|
||||
-->
|
||||
<!-- Title: pat_test Pages: 1 -->
|
||||
<svg width="498pt" height="214pt"
|
||||
viewBox="0.00 0.00 498.00 213.88" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink">
|
||||
|
||||
<svg id="main" version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" xml:space="preserve">
|
||||
|
||||
<style type="text/css"><![CDATA[
|
||||
.node, .edge {opacity: 0.7;}
|
||||
.node.selected, .edge.selected {opacity: 1;}
|
||||
.edge:hover path { stroke: red; }
|
||||
.edge:hover polygon { stroke: red; fill: red; }
|
||||
]]></style>
|
||||
<script type="application/ecmascript" xlink:href="../../svg.min.js"/>
|
||||
<svg id="graph" class="graph">
|
||||
<g id="graph0" class="graph" transform="scale(1 1) rotate(0) translate(4 209.88)">
|
||||
<title>pat_test</title>
|
||||
<!-- Node1 -->
|
||||
<g id="Node000001" class="node">
|
||||
<title>Node1</title>
|
||||
<g id="a_Node000001"><a xlink:title="A test case in which we search for every appearance of the word 'pat'.">
|
||||
<polygon fill="#999999" stroke="#666666" points="51.25,-83.25 0,-83.25 0,-64 51.25,-64 51.25,-83.25"/>
|
||||
<text text-anchor="middle" x="25.62" y="-69.75" font-family="Helvetica,sans-Serif" font-size="10.00">pat_test</text>
|
||||
</a>
|
||||
</g>
|
||||
</g>
|
||||
<!-- Node2 -->
|
||||
<g id="Node000002" class="node">
|
||||
<title>Node2</title>
|
||||
<g id="a_Node000002"><a xlink:href="../../d0/dbc/namespacestrings_1_1boyer__moore.html#a0b165af1dc341289fd705be4c67728f8" target="_top" xlink:title="A function that initializes pattern.">
|
||||
<polygon fill="white" stroke="#666666" points="194.75,-156.88 87.25,-156.88 87.25,-126.38 194.75,-126.38 194.75,-156.88"/>
|
||||
<text text-anchor="start" x="95.25" y="-143.38" font-family="Helvetica,sans-Serif" font-size="10.00">strings::boyer_moore</text>
|
||||
<text text-anchor="middle" x="141" y="-132.12" font-family="Helvetica,sans-Serif" font-size="10.00">::init_pattern</text>
|
||||
</a>
|
||||
</g>
|
||||
</g>
|
||||
<!-- Node1->Node2 -->
|
||||
<g id="edge1_Node000001_Node000002" class="edge">
|
||||
<title>Node1->Node2</title>
|
||||
<g id="a_edge1_Node000001_Node000002"><a xlink:title=" ">
|
||||
<path fill="none" stroke="#63b8ff" d="M43.35,-83.66C59.34,-93.25 83.95,-108.01 104.34,-120.24"/>
|
||||
<polygon fill="#63b8ff" stroke="#63b8ff" points="102.28,-123.08 112.65,-125.22 105.88,-117.08 102.28,-123.08"/>
|
||||
</a>
|
||||
</g>
|
||||
</g>
|
||||
<!-- Node7 -->
|
||||
<g id="Node000007" class="node">
|
||||
<title>Node7</title>
|
||||
<g id="a_Node000007"><a xlink:href="../../d0/dbc/namespacestrings_1_1boyer__moore.html#a056122c8fe8fb0f5fca6428d3f7b5c3a" target="_top" xlink:title="Check if pat is prefix of str.">
|
||||
<polygon fill="white" stroke="#666666" points="194.75,-67.88 87.25,-67.88 87.25,-37.38 194.75,-37.38 194.75,-67.88"/>
|
||||
<text text-anchor="start" x="95.25" y="-54.38" font-family="Helvetica,sans-Serif" font-size="10.00">strings::boyer_moore</text>
|
||||
<text text-anchor="middle" x="141" y="-43.12" font-family="Helvetica,sans-Serif" font-size="10.00">::is_prefix</text>
|
||||
</a>
|
||||
</g>
|
||||
</g>
|
||||
<!-- Node1->Node7 -->
|
||||
<g id="edge9_Node000001_Node000007" class="edge">
|
||||
<title>Node1->Node7</title>
|
||||
<g id="a_edge9_Node000001_Node000007"><a xlink:title=" ">
|
||||
<path fill="none" stroke="#63b8ff" d="M51.51,-69.02C58.76,-67.67 67.04,-66.14 75.55,-64.56"/>
|
||||
<polygon fill="#63b8ff" stroke="#63b8ff" points="76.14,-68.01 85.33,-62.75 74.86,-61.13 76.14,-68.01"/>
|
||||
</a>
|
||||
</g>
|
||||
</g>
|
||||
<!-- Node8 -->
|
||||
<g id="Node000008" class="node">
|
||||
<title>Node8</title>
|
||||
<g id="a_Node000008"><a xlink:href="../../d0/dbc/namespacestrings_1_1boyer__moore.html#a15703b553faed0d28202c10808cf9738" target="_top" xlink:title="A function that implements Boyer-Moore's algorithm.">
|
||||
<polygon fill="white" stroke="#666666" points="338.25,-107.88 230.75,-107.88 230.75,-77.38 338.25,-77.38 338.25,-107.88"/>
|
||||
<text text-anchor="start" x="238.75" y="-94.38" font-family="Helvetica,sans-Serif" font-size="10.00">strings::boyer_moore</text>
|
||||
<text text-anchor="middle" x="284.5" y="-83.12" font-family="Helvetica,sans-Serif" font-size="10.00">::search</text>
|
||||
</a>
|
||||
</g>
|
||||
</g>
|
||||
<!-- Node1->Node8 -->
|
||||
<g id="edge10_Node000001_Node000008" class="edge">
|
||||
<title>Node1->Node8</title>
|
||||
<g id="a_edge10_Node000001_Node000008"><a xlink:title=" ">
|
||||
<path fill="none" stroke="#63b8ff" d="M51.72,-75.48C90.15,-78.32 164.79,-83.84 219.01,-87.86"/>
|
||||
<polygon fill="#63b8ff" stroke="#63b8ff" points="218.51,-91.33 228.74,-88.57 219.03,-84.35 218.51,-91.33"/>
|
||||
</a>
|
||||
</g>
|
||||
</g>
|
||||
<!-- Node11 -->
|
||||
<g id="Node000011" class="node">
|
||||
<title>Node11</title>
|
||||
<g id="a_Node000011"><a target="_blank" xlink:href="http://en.cppreference.com/w/cpp/container/vector/size.html#" xlink:title=" ">
|
||||
<polygon fill="white" stroke="#666666" points="184.25,-19.25 97.75,-19.25 97.75,0 184.25,0 184.25,-19.25"/>
|
||||
<text text-anchor="middle" x="141" y="-5.75" font-family="Helvetica,sans-Serif" font-size="10.00">std::vector::size</text>
|
||||
</a>
|
||||
</g>
|
||||
</g>
|
||||
<!-- Node1->Node11 -->
|
||||
<g id="edge15_Node000001_Node000011" class="edge">
|
||||
<title>Node1->Node11</title>
|
||||
<g id="a_edge15_Node000001_Node000011"><a xlink:title=" ">
|
||||
<path fill="none" stroke="#63b8ff" d="M38.01,-63.57C49.71,-53.64 68.77,-38.53 87.25,-28.62 90.28,-27 93.49,-25.46 96.75,-24.01"/>
|
||||
<polygon fill="#63b8ff" stroke="#63b8ff" points="97.93,-27.31 105.87,-20.3 95.29,-20.83 97.93,-27.31"/>
|
||||
</a>
|
||||
</g>
|
||||
</g>
|
||||
<!-- Node3 -->
|
||||
<g id="Node000003" class="node">
|
||||
<title>Node3</title>
|
||||
<g id="a_Node000003"><a xlink:href="../../d0/dbc/namespacestrings_1_1boyer__moore.html#a2f6688c9bb3e692297a3aa09cebc1c00" target="_top" xlink:title="A function that preprocess the bad char table.">
|
||||
<polygon fill="white" stroke="#666666" points="338.25,-205.88 230.75,-205.88 230.75,-175.38 338.25,-175.38 338.25,-205.88"/>
|
||||
<text text-anchor="start" x="238.75" y="-192.38" font-family="Helvetica,sans-Serif" font-size="10.00">strings::boyer_moore</text>
|
||||
<text text-anchor="middle" x="284.5" y="-181.12" font-family="Helvetica,sans-Serif" font-size="10.00">::init_bad_char</text>
|
||||
</a>
|
||||
</g>
|
||||
</g>
|
||||
<!-- Node2->Node3 -->
|
||||
<g id="edge2_Node000002_Node000003" class="edge">
|
||||
<title>Node2->Node3</title>
|
||||
<g id="a_edge2_Node000002_Node000003"><a xlink:title=" ">
|
||||
<path fill="none" stroke="#63b8ff" d="M187.16,-157.26C200.05,-161.73 214.25,-166.65 227.7,-171.3"/>
|
||||
<polygon fill="#63b8ff" stroke="#63b8ff" points="226.26,-174.51 236.85,-174.47 228.55,-167.89 226.26,-174.51"/>
|
||||
</a>
|
||||
</g>
|
||||
</g>
|
||||
<!-- Node6 -->
|
||||
<g id="Node000006" class="node">
|
||||
<title>Node6</title>
|
||||
<g id="a_Node000006"><a xlink:href="../../d0/dbc/namespacestrings_1_1boyer__moore.html#aa709cf7fca02b7d3e1888423d5f739a1" target="_top" xlink:title="A function that preprocess the good suffix thable.">
|
||||
<polygon fill="white" stroke="#666666" points="338.25,-156.88 230.75,-156.88 230.75,-126.38 338.25,-126.38 338.25,-156.88"/>
|
||||
<text text-anchor="start" x="238.75" y="-143.38" font-family="Helvetica,sans-Serif" font-size="10.00">strings::boyer_moore</text>
|
||||
<text text-anchor="middle" x="284.5" y="-132.12" font-family="Helvetica,sans-Serif" font-size="10.00">::init_good_suffix</text>
|
||||
</a>
|
||||
</g>
|
||||
</g>
|
||||
<!-- Node2->Node6 -->
|
||||
<g id="edge5_Node000002_Node000006" class="edge">
|
||||
<title>Node2->Node6</title>
|
||||
<g id="a_edge5_Node000002_Node000006"><a xlink:title=" ">
|
||||
<path fill="none" stroke="#63b8ff" d="M195.09,-141.62C202.98,-141.62 211.18,-141.62 219.27,-141.62"/>
|
||||
<polygon fill="#63b8ff" stroke="#63b8ff" points="219.07,-145.13 229.07,-141.63 219.07,-138.13 219.07,-145.13"/>
|
||||
</a>
|
||||
</g>
|
||||
</g>
|
||||
<!-- Node4 -->
|
||||
<g id="Node000004" class="node">
|
||||
<title>Node4</title>
|
||||
<g id="a_Node000004"><a target="_blank" xlink:href="http://en.cppreference.com/w/cpp/string/basic_string/size.html#" xlink:title=" ">
|
||||
<polygon fill="white" stroke="#666666" points="478,-151.25 386.25,-151.25 386.25,-132 478,-132 478,-151.25"/>
|
||||
<text text-anchor="middle" x="432.12" y="-137.75" font-family="Helvetica,sans-Serif" font-size="10.00">std::string::length</text>
|
||||
</a>
|
||||
</g>
|
||||
</g>
|
||||
<!-- Node3->Node4 -->
|
||||
<g id="edge3_Node000003_Node000004" class="edge">
|
||||
<title>Node3->Node4</title>
|
||||
<g id="a_edge3_Node000003_Node000004"><a xlink:title=" ">
|
||||
<path fill="none" stroke="#63b8ff" d="M331.98,-174.99C350.73,-168.68 372.17,-161.46 390.31,-155.36"/>
|
||||
<polygon fill="#63b8ff" stroke="#63b8ff" points="391.32,-158.71 399.68,-152.2 389.09,-152.08 391.32,-158.71"/>
|
||||
</a>
|
||||
</g>
|
||||
</g>
|
||||
<!-- Node5 -->
|
||||
<g id="Node000005" class="node">
|
||||
<title>Node5</title>
|
||||
<g id="a_Node000005"><a target="_blank" xlink:href="http://en.cppreference.com/w/cpp/container/vector/resize.html#" xlink:title=" ">
|
||||
<polygon fill="white" stroke="#666666" points="479.5,-194.25 384.75,-194.25 384.75,-175 479.5,-175 479.5,-194.25"/>
|
||||
<text text-anchor="middle" x="432.12" y="-180.75" font-family="Helvetica,sans-Serif" font-size="10.00">std::vector::resize</text>
|
||||
</a>
|
||||
</g>
|
||||
</g>
|
||||
<!-- Node3->Node5 -->
|
||||
<g id="edge4_Node000003_Node000005" class="edge">
|
||||
<title>Node3->Node5</title>
|
||||
<g id="a_edge4_Node000003_Node000005"><a xlink:title=" ">
|
||||
<path fill="none" stroke="#63b8ff" d="M338.49,-188.44C349.83,-187.97 361.87,-187.48 373.38,-187"/>
|
||||
<polygon fill="#63b8ff" stroke="#63b8ff" points="373.32,-190.51 383.17,-186.6 373.03,-183.52 373.32,-190.51"/>
|
||||
</a>
|
||||
</g>
|
||||
</g>
|
||||
<!-- Node6->Node4 -->
|
||||
<g id="edge6_Node000006_Node000004" class="edge">
|
||||
<title>Node6->Node4</title>
|
||||
<g id="a_edge6_Node000006_Node000004"><a xlink:title=" ">
|
||||
<path fill="none" stroke="#63b8ff" d="M338.49,-135.1C350.32,-134.82 362.91,-134.8 374.87,-135.03"/>
|
||||
<polygon fill="#63b8ff" stroke="#63b8ff" points="374.49,-138.52 384.58,-135.29 374.68,-131.53 374.49,-138.52"/>
|
||||
</a>
|
||||
</g>
|
||||
</g>
|
||||
<!-- Node6->Node4 -->
|
||||
<g id="edge8_Node000006_Node000004" class="edge">
|
||||
<title>Node6->Node4</title>
|
||||
<g id="a_edge8_Node000006_Node000004"><a xlink:title=" ">
|
||||
<path fill="none" stroke="#63b8ff" d="M338.49,-148.15C350.32,-148.43 362.91,-148.45 374.87,-148.22"/>
|
||||
<polygon fill="#63b8ff" stroke="#63b8ff" points="374.68,-151.72 384.58,-147.96 374.49,-144.73 374.68,-151.72"/>
|
||||
</a>
|
||||
</g>
|
||||
</g>
|
||||
<!-- Node6->Node5 -->
|
||||
<g id="edge7_Node000006_Node000005" class="edge">
|
||||
<title>Node6->Node5</title>
|
||||
<g id="a_edge7_Node000006_Node000005"><a xlink:title=" ">
|
||||
<path fill="none" stroke="#63b8ff" d="M338.49,-157.27C354.19,-161.91 371.23,-166.94 386.36,-171.41"/>
|
||||
<polygon fill="#63b8ff" stroke="#63b8ff" points="384.96,-174.64 395.54,-174.12 386.94,-167.93 384.96,-174.64"/>
|
||||
</a>
|
||||
</g>
|
||||
</g>
|
||||
<!-- Node8->Node4 -->
|
||||
<g id="edge11_Node000008_Node000004" class="edge">
|
||||
<title>Node8->Node4</title>
|
||||
<g id="a_edge11_Node000008_Node000004"><a xlink:title=" ">
|
||||
<path fill="none" stroke="#63b8ff" d="M338.49,-103.93C360.71,-110.89 385.6,-119.64 403.98,-127.1"/>
|
||||
<polygon fill="#63b8ff" stroke="#63b8ff" points="402.54,-130.29 413.11,-130.96 405.26,-123.84 402.54,-130.29"/>
|
||||
</a>
|
||||
</g>
|
||||
</g>
|
||||
<!-- Node8->Node4 -->
|
||||
<g id="edge14_Node000008_Node000004" class="edge">
|
||||
<title>Node8->Node4</title>
|
||||
<g id="a_edge14_Node000008_Node000004"><a xlink:title=" ">
|
||||
<path fill="none" stroke="#63b8ff" d="M315.67,-108.37C332.75,-115.17 354.67,-122.88 374.81,-129.27"/>
|
||||
<polygon fill="#63b8ff" stroke="#63b8ff" points="373.74,-132.6 384.32,-132.22 375.81,-125.92 373.74,-132.6"/>
|
||||
</a>
|
||||
</g>
|
||||
</g>
|
||||
<!-- Node9 -->
|
||||
<g id="Node000009" class="node">
|
||||
<title>Node9</title>
|
||||
<g id="a_Node000009"><a target="_blank" xlink:href="http://en.cppreference.com/w/cpp/algorithm/max.html#" xlink:title=" ">
|
||||
<polygon fill="white" stroke="#666666" points="459.25,-108.25 405,-108.25 405,-89 459.25,-89 459.25,-108.25"/>
|
||||
<text text-anchor="middle" x="432.12" y="-94.75" font-family="Helvetica,sans-Serif" font-size="10.00">std::max</text>
|
||||
</a>
|
||||
</g>
|
||||
</g>
|
||||
<!-- Node8->Node9 -->
|
||||
<g id="edge12_Node000008_Node000009" class="edge">
|
||||
<title>Node8->Node9</title>
|
||||
<g id="a_edge12_Node000008_Node000009"><a xlink:title=" ">
|
||||
<path fill="none" stroke="#63b8ff" d="M338.49,-94.81C356.55,-95.55 376.37,-96.37 393.03,-97.06"/>
|
||||
<polygon fill="#63b8ff" stroke="#63b8ff" points="392.88,-100.55 403.02,-97.47 393.17,-93.56 392.88,-100.55"/>
|
||||
</a>
|
||||
</g>
|
||||
</g>
|
||||
<!-- Node10 -->
|
||||
<g id="Node000010" class="node">
|
||||
<title>Node10</title>
|
||||
<g id="a_Node000010"><a target="_blank" xlink:href="http://en.cppreference.com/w/cpp/container/vector/push_back.html#" xlink:title=" ">
|
||||
<polygon fill="white" stroke="#666666" points="490,-71.25 374.25,-71.25 374.25,-52 490,-52 490,-71.25"/>
|
||||
<text text-anchor="middle" x="432.12" y="-57.75" font-family="Helvetica,sans-Serif" font-size="10.00">std::vector::push_back</text>
|
||||
</a>
|
||||
</g>
|
||||
</g>
|
||||
<!-- Node8->Node10 -->
|
||||
<g id="edge13_Node000008_Node000010" class="edge">
|
||||
<title>Node8->Node10</title>
|
||||
<g id="a_edge13_Node000008_Node000010"><a xlink:title=" ">
|
||||
<path fill="none" stroke="#63b8ff" d="M338.49,-81.35C349.59,-78.98 361.35,-76.48 372.64,-74.07"/>
|
||||
<polygon fill="#63b8ff" stroke="#63b8ff" points="373.19,-77.54 382.25,-72.03 371.74,-70.69 373.19,-77.54"/>
|
||||
</a>
|
||||
</g>
|
||||
</g>
|
||||
</g>
|
||||
</svg>
|
||||
</svg>
|
||||
|
||||
<style type='text/css'>
|
||||
<![CDATA[
|
||||
[data-mouse-over-selected='false'] { opacity: 0.7; }
|
||||
[data-mouse-over-selected='true'] { opacity: 1.0; }
|
||||
]]>
|
||||
</style>
|
||||
<script type="application/ecmascript"><![CDATA[
|
||||
document.addEventListener('DOMContentLoaded', (event) => {
|
||||
highlightEdges();
|
||||
highlightAdjacentNodes();
|
||||
});
|
||||
]]></script>
|
||||
</svg>
|
||||
|
Before Width: | Height: | Size: 13 KiB |
@@ -1,251 +0,0 @@
|
||||
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
|
||||
<!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN"
|
||||
"http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd">
|
||||
<!-- Generated by graphviz version 12.1.2 (20240928.0832)
|
||||
-->
|
||||
<!-- Title: pat_test Pages: 1 -->
|
||||
<svg width="498pt" height="214pt"
|
||||
viewBox="0.00 0.00 498.00 213.88" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink">
|
||||
<g id="graph0" class="graph" transform="scale(1 1) rotate(0) translate(4 209.88)">
|
||||
<title>pat_test</title>
|
||||
<!-- Node1 -->
|
||||
<g id="Node000001" class="node">
|
||||
<title>Node1</title>
|
||||
<g id="a_Node000001"><a xlink:title="A test case in which we search for every appearance of the word 'pat'.">
|
||||
<polygon fill="#999999" stroke="#666666" points="51.25,-83.25 0,-83.25 0,-64 51.25,-64 51.25,-83.25"/>
|
||||
<text text-anchor="middle" x="25.62" y="-69.75" font-family="Helvetica,sans-Serif" font-size="10.00">pat_test</text>
|
||||
</a>
|
||||
</g>
|
||||
</g>
|
||||
<!-- Node2 -->
|
||||
<g id="Node000002" class="node">
|
||||
<title>Node2</title>
|
||||
<g id="a_Node000002"><a xlink:href="../../d0/dbc/namespacestrings_1_1boyer__moore.html#a0b165af1dc341289fd705be4c67728f8" target="_top" xlink:title="A function that initializes pattern.">
|
||||
<polygon fill="white" stroke="#666666" points="194.75,-156.88 87.25,-156.88 87.25,-126.38 194.75,-126.38 194.75,-156.88"/>
|
||||
<text text-anchor="start" x="95.25" y="-143.38" font-family="Helvetica,sans-Serif" font-size="10.00">strings::boyer_moore</text>
|
||||
<text text-anchor="middle" x="141" y="-132.12" font-family="Helvetica,sans-Serif" font-size="10.00">::init_pattern</text>
|
||||
</a>
|
||||
</g>
|
||||
</g>
|
||||
<!-- Node1->Node2 -->
|
||||
<g id="edge1_Node000001_Node000002" class="edge">
|
||||
<title>Node1->Node2</title>
|
||||
<g id="a_edge1_Node000001_Node000002"><a xlink:title=" ">
|
||||
<path fill="none" stroke="#63b8ff" d="M43.35,-83.66C59.34,-93.25 83.95,-108.01 104.34,-120.24"/>
|
||||
<polygon fill="#63b8ff" stroke="#63b8ff" points="102.28,-123.08 112.65,-125.22 105.88,-117.08 102.28,-123.08"/>
|
||||
</a>
|
||||
</g>
|
||||
</g>
|
||||
<!-- Node7 -->
|
||||
<g id="Node000007" class="node">
|
||||
<title>Node7</title>
|
||||
<g id="a_Node000007"><a xlink:href="../../d0/dbc/namespacestrings_1_1boyer__moore.html#a056122c8fe8fb0f5fca6428d3f7b5c3a" target="_top" xlink:title="Check if pat is prefix of str.">
|
||||
<polygon fill="white" stroke="#666666" points="194.75,-67.88 87.25,-67.88 87.25,-37.38 194.75,-37.38 194.75,-67.88"/>
|
||||
<text text-anchor="start" x="95.25" y="-54.38" font-family="Helvetica,sans-Serif" font-size="10.00">strings::boyer_moore</text>
|
||||
<text text-anchor="middle" x="141" y="-43.12" font-family="Helvetica,sans-Serif" font-size="10.00">::is_prefix</text>
|
||||
</a>
|
||||
</g>
|
||||
</g>
|
||||
<!-- Node1->Node7 -->
|
||||
<g id="edge9_Node000001_Node000007" class="edge">
|
||||
<title>Node1->Node7</title>
|
||||
<g id="a_edge9_Node000001_Node000007"><a xlink:title=" ">
|
||||
<path fill="none" stroke="#63b8ff" d="M51.51,-69.02C58.76,-67.67 67.04,-66.14 75.55,-64.56"/>
|
||||
<polygon fill="#63b8ff" stroke="#63b8ff" points="76.14,-68.01 85.33,-62.75 74.86,-61.13 76.14,-68.01"/>
|
||||
</a>
|
||||
</g>
|
||||
</g>
|
||||
<!-- Node8 -->
|
||||
<g id="Node000008" class="node">
|
||||
<title>Node8</title>
|
||||
<g id="a_Node000008"><a xlink:href="../../d0/dbc/namespacestrings_1_1boyer__moore.html#a15703b553faed0d28202c10808cf9738" target="_top" xlink:title="A function that implements Boyer-Moore's algorithm.">
|
||||
<polygon fill="white" stroke="#666666" points="338.25,-107.88 230.75,-107.88 230.75,-77.38 338.25,-77.38 338.25,-107.88"/>
|
||||
<text text-anchor="start" x="238.75" y="-94.38" font-family="Helvetica,sans-Serif" font-size="10.00">strings::boyer_moore</text>
|
||||
<text text-anchor="middle" x="284.5" y="-83.12" font-family="Helvetica,sans-Serif" font-size="10.00">::search</text>
|
||||
</a>
|
||||
</g>
|
||||
</g>
|
||||
<!-- Node1->Node8 -->
|
||||
<g id="edge10_Node000001_Node000008" class="edge">
|
||||
<title>Node1->Node8</title>
|
||||
<g id="a_edge10_Node000001_Node000008"><a xlink:title=" ">
|
||||
<path fill="none" stroke="#63b8ff" d="M51.72,-75.48C90.15,-78.32 164.79,-83.84 219.01,-87.86"/>
|
||||
<polygon fill="#63b8ff" stroke="#63b8ff" points="218.51,-91.33 228.74,-88.57 219.03,-84.35 218.51,-91.33"/>
|
||||
</a>
|
||||
</g>
|
||||
</g>
|
||||
<!-- Node11 -->
|
||||
<g id="Node000011" class="node">
|
||||
<title>Node11</title>
|
||||
<g id="a_Node000011"><a target="_blank" xlink:href="http://en.cppreference.com/w/cpp/container/vector/size.html#" xlink:title=" ">
|
||||
<polygon fill="white" stroke="#666666" points="184.25,-19.25 97.75,-19.25 97.75,0 184.25,0 184.25,-19.25"/>
|
||||
<text text-anchor="middle" x="141" y="-5.75" font-family="Helvetica,sans-Serif" font-size="10.00">std::vector::size</text>
|
||||
</a>
|
||||
</g>
|
||||
</g>
|
||||
<!-- Node1->Node11 -->
|
||||
<g id="edge15_Node000001_Node000011" class="edge">
|
||||
<title>Node1->Node11</title>
|
||||
<g id="a_edge15_Node000001_Node000011"><a xlink:title=" ">
|
||||
<path fill="none" stroke="#63b8ff" d="M38.01,-63.57C49.71,-53.64 68.77,-38.53 87.25,-28.62 90.28,-27 93.49,-25.46 96.75,-24.01"/>
|
||||
<polygon fill="#63b8ff" stroke="#63b8ff" points="97.93,-27.31 105.87,-20.3 95.29,-20.83 97.93,-27.31"/>
|
||||
</a>
|
||||
</g>
|
||||
</g>
|
||||
<!-- Node3 -->
|
||||
<g id="Node000003" class="node">
|
||||
<title>Node3</title>
|
||||
<g id="a_Node000003"><a xlink:href="../../d0/dbc/namespacestrings_1_1boyer__moore.html#a2f6688c9bb3e692297a3aa09cebc1c00" target="_top" xlink:title="A function that preprocess the bad char table.">
|
||||
<polygon fill="white" stroke="#666666" points="338.25,-205.88 230.75,-205.88 230.75,-175.38 338.25,-175.38 338.25,-205.88"/>
|
||||
<text text-anchor="start" x="238.75" y="-192.38" font-family="Helvetica,sans-Serif" font-size="10.00">strings::boyer_moore</text>
|
||||
<text text-anchor="middle" x="284.5" y="-181.12" font-family="Helvetica,sans-Serif" font-size="10.00">::init_bad_char</text>
|
||||
</a>
|
||||
</g>
|
||||
</g>
|
||||
<!-- Node2->Node3 -->
|
||||
<g id="edge2_Node000002_Node000003" class="edge">
|
||||
<title>Node2->Node3</title>
|
||||
<g id="a_edge2_Node000002_Node000003"><a xlink:title=" ">
|
||||
<path fill="none" stroke="#63b8ff" d="M187.16,-157.26C200.05,-161.73 214.25,-166.65 227.7,-171.3"/>
|
||||
<polygon fill="#63b8ff" stroke="#63b8ff" points="226.26,-174.51 236.85,-174.47 228.55,-167.89 226.26,-174.51"/>
|
||||
</a>
|
||||
</g>
|
||||
</g>
|
||||
<!-- Node6 -->
|
||||
<g id="Node000006" class="node">
|
||||
<title>Node6</title>
|
||||
<g id="a_Node000006"><a xlink:href="../../d0/dbc/namespacestrings_1_1boyer__moore.html#aa709cf7fca02b7d3e1888423d5f739a1" target="_top" xlink:title="A function that preprocess the good suffix thable.">
|
||||
<polygon fill="white" stroke="#666666" points="338.25,-156.88 230.75,-156.88 230.75,-126.38 338.25,-126.38 338.25,-156.88"/>
|
||||
<text text-anchor="start" x="238.75" y="-143.38" font-family="Helvetica,sans-Serif" font-size="10.00">strings::boyer_moore</text>
|
||||
<text text-anchor="middle" x="284.5" y="-132.12" font-family="Helvetica,sans-Serif" font-size="10.00">::init_good_suffix</text>
|
||||
</a>
|
||||
</g>
|
||||
</g>
|
||||
<!-- Node2->Node6 -->
|
||||
<g id="edge5_Node000002_Node000006" class="edge">
|
||||
<title>Node2->Node6</title>
|
||||
<g id="a_edge5_Node000002_Node000006"><a xlink:title=" ">
|
||||
<path fill="none" stroke="#63b8ff" d="M195.09,-141.62C202.98,-141.62 211.18,-141.62 219.27,-141.62"/>
|
||||
<polygon fill="#63b8ff" stroke="#63b8ff" points="219.07,-145.13 229.07,-141.63 219.07,-138.13 219.07,-145.13"/>
|
||||
</a>
|
||||
</g>
|
||||
</g>
|
||||
<!-- Node4 -->
|
||||
<g id="Node000004" class="node">
|
||||
<title>Node4</title>
|
||||
<g id="a_Node000004"><a target="_blank" xlink:href="http://en.cppreference.com/w/cpp/string/basic_string/size.html#" xlink:title=" ">
|
||||
<polygon fill="white" stroke="#666666" points="478,-151.25 386.25,-151.25 386.25,-132 478,-132 478,-151.25"/>
|
||||
<text text-anchor="middle" x="432.12" y="-137.75" font-family="Helvetica,sans-Serif" font-size="10.00">std::string::length</text>
|
||||
</a>
|
||||
</g>
|
||||
</g>
|
||||
<!-- Node3->Node4 -->
|
||||
<g id="edge3_Node000003_Node000004" class="edge">
|
||||
<title>Node3->Node4</title>
|
||||
<g id="a_edge3_Node000003_Node000004"><a xlink:title=" ">
|
||||
<path fill="none" stroke="#63b8ff" d="M331.98,-174.99C350.73,-168.68 372.17,-161.46 390.31,-155.36"/>
|
||||
<polygon fill="#63b8ff" stroke="#63b8ff" points="391.32,-158.71 399.68,-152.2 389.09,-152.08 391.32,-158.71"/>
|
||||
</a>
|
||||
</g>
|
||||
</g>
|
||||
<!-- Node5 -->
|
||||
<g id="Node000005" class="node">
|
||||
<title>Node5</title>
|
||||
<g id="a_Node000005"><a target="_blank" xlink:href="http://en.cppreference.com/w/cpp/container/vector/resize.html#" xlink:title=" ">
|
||||
<polygon fill="white" stroke="#666666" points="479.5,-194.25 384.75,-194.25 384.75,-175 479.5,-175 479.5,-194.25"/>
|
||||
<text text-anchor="middle" x="432.12" y="-180.75" font-family="Helvetica,sans-Serif" font-size="10.00">std::vector::resize</text>
|
||||
</a>
|
||||
</g>
|
||||
</g>
|
||||
<!-- Node3->Node5 -->
|
||||
<g id="edge4_Node000003_Node000005" class="edge">
|
||||
<title>Node3->Node5</title>
|
||||
<g id="a_edge4_Node000003_Node000005"><a xlink:title=" ">
|
||||
<path fill="none" stroke="#63b8ff" d="M338.49,-188.44C349.83,-187.97 361.87,-187.48 373.38,-187"/>
|
||||
<polygon fill="#63b8ff" stroke="#63b8ff" points="373.32,-190.51 383.17,-186.6 373.03,-183.52 373.32,-190.51"/>
|
||||
</a>
|
||||
</g>
|
||||
</g>
|
||||
<!-- Node6->Node4 -->
|
||||
<g id="edge6_Node000006_Node000004" class="edge">
|
||||
<title>Node6->Node4</title>
|
||||
<g id="a_edge6_Node000006_Node000004"><a xlink:title=" ">
|
||||
<path fill="none" stroke="#63b8ff" d="M338.49,-135.1C350.32,-134.82 362.91,-134.8 374.87,-135.03"/>
|
||||
<polygon fill="#63b8ff" stroke="#63b8ff" points="374.49,-138.52 384.58,-135.29 374.68,-131.53 374.49,-138.52"/>
|
||||
</a>
|
||||
</g>
|
||||
</g>
|
||||
<!-- Node6->Node4 -->
|
||||
<g id="edge8_Node000006_Node000004" class="edge">
|
||||
<title>Node6->Node4</title>
|
||||
<g id="a_edge8_Node000006_Node000004"><a xlink:title=" ">
|
||||
<path fill="none" stroke="#63b8ff" d="M338.49,-148.15C350.32,-148.43 362.91,-148.45 374.87,-148.22"/>
|
||||
<polygon fill="#63b8ff" stroke="#63b8ff" points="374.68,-151.72 384.58,-147.96 374.49,-144.73 374.68,-151.72"/>
|
||||
</a>
|
||||
</g>
|
||||
</g>
|
||||
<!-- Node6->Node5 -->
|
||||
<g id="edge7_Node000006_Node000005" class="edge">
|
||||
<title>Node6->Node5</title>
|
||||
<g id="a_edge7_Node000006_Node000005"><a xlink:title=" ">
|
||||
<path fill="none" stroke="#63b8ff" d="M338.49,-157.27C354.19,-161.91 371.23,-166.94 386.36,-171.41"/>
|
||||
<polygon fill="#63b8ff" stroke="#63b8ff" points="384.96,-174.64 395.54,-174.12 386.94,-167.93 384.96,-174.64"/>
|
||||
</a>
|
||||
</g>
|
||||
</g>
|
||||
<!-- Node8->Node4 -->
|
||||
<g id="edge11_Node000008_Node000004" class="edge">
|
||||
<title>Node8->Node4</title>
|
||||
<g id="a_edge11_Node000008_Node000004"><a xlink:title=" ">
|
||||
<path fill="none" stroke="#63b8ff" d="M338.49,-103.93C360.71,-110.89 385.6,-119.64 403.98,-127.1"/>
|
||||
<polygon fill="#63b8ff" stroke="#63b8ff" points="402.54,-130.29 413.11,-130.96 405.26,-123.84 402.54,-130.29"/>
|
||||
</a>
|
||||
</g>
|
||||
</g>
|
||||
<!-- Node8->Node4 -->
|
||||
<g id="edge14_Node000008_Node000004" class="edge">
|
||||
<title>Node8->Node4</title>
|
||||
<g id="a_edge14_Node000008_Node000004"><a xlink:title=" ">
|
||||
<path fill="none" stroke="#63b8ff" d="M315.67,-108.37C332.75,-115.17 354.67,-122.88 374.81,-129.27"/>
|
||||
<polygon fill="#63b8ff" stroke="#63b8ff" points="373.74,-132.6 384.32,-132.22 375.81,-125.92 373.74,-132.6"/>
|
||||
</a>
|
||||
</g>
|
||||
</g>
|
||||
<!-- Node9 -->
|
||||
<g id="Node000009" class="node">
|
||||
<title>Node9</title>
|
||||
<g id="a_Node000009"><a target="_blank" xlink:href="http://en.cppreference.com/w/cpp/algorithm/max.html#" xlink:title=" ">
|
||||
<polygon fill="white" stroke="#666666" points="459.25,-108.25 405,-108.25 405,-89 459.25,-89 459.25,-108.25"/>
|
||||
<text text-anchor="middle" x="432.12" y="-94.75" font-family="Helvetica,sans-Serif" font-size="10.00">std::max</text>
|
||||
</a>
|
||||
</g>
|
||||
</g>
|
||||
<!-- Node8->Node9 -->
|
||||
<g id="edge12_Node000008_Node000009" class="edge">
|
||||
<title>Node8->Node9</title>
|
||||
<g id="a_edge12_Node000008_Node000009"><a xlink:title=" ">
|
||||
<path fill="none" stroke="#63b8ff" d="M338.49,-94.81C356.55,-95.55 376.37,-96.37 393.03,-97.06"/>
|
||||
<polygon fill="#63b8ff" stroke="#63b8ff" points="392.88,-100.55 403.02,-97.47 393.17,-93.56 392.88,-100.55"/>
|
||||
</a>
|
||||
</g>
|
||||
</g>
|
||||
<!-- Node10 -->
|
||||
<g id="Node000010" class="node">
|
||||
<title>Node10</title>
|
||||
<g id="a_Node000010"><a target="_blank" xlink:href="http://en.cppreference.com/w/cpp/container/vector/push_back.html#" xlink:title=" ">
|
||||
<polygon fill="white" stroke="#666666" points="490,-71.25 374.25,-71.25 374.25,-52 490,-52 490,-71.25"/>
|
||||
<text text-anchor="middle" x="432.12" y="-57.75" font-family="Helvetica,sans-Serif" font-size="10.00">std::vector::push_back</text>
|
||||
</a>
|
||||
</g>
|
||||
</g>
|
||||
<!-- Node8->Node10 -->
|
||||
<g id="edge13_Node000008_Node000010" class="edge">
|
||||
<title>Node8->Node10</title>
|
||||
<g id="a_edge13_Node000008_Node000010"><a xlink:title=" ">
|
||||
<path fill="none" stroke="#63b8ff" d="M338.49,-81.35C349.59,-78.98 361.35,-76.48 372.64,-74.07"/>
|
||||
<polygon fill="#63b8ff" stroke="#63b8ff" points="373.19,-77.54 382.25,-72.03 371.74,-70.69 373.19,-77.54"/>
|
||||
</a>
|
||||
</g>
|
||||
</g>
|
||||
</g>
|
||||
</svg>
|
||||
|
Before Width: | Height: | Size: 12 KiB |
@@ -1,28 +0,0 @@
|
||||
<map id="and_test" name="and_test">
|
||||
<area shape="rect" id="Node000001" title="A test case in which we search for every appearance of the word 'and'." alt="" coords="5,169,77,194"/>
|
||||
<area shape="rect" id="Node000002" href="$d0/dbc/namespacestrings_1_1boyer__moore.html#a0b165af1dc341289fd705be4c67728f8" title="A function that initializes pattern." alt="" coords="125,71,268,111"/>
|
||||
<area shape="poly" id="edge1_Node000001_Node000002" title=" " alt="" coords="63,166,146,117,148,122,66,171"/>
|
||||
<area shape="rect" id="Node000007" href="$d0/dbc/namespacestrings_1_1boyer__moore.html#a056122c8fe8fb0f5fca6428d3f7b5c3a" title="Check if pat is prefix of str." alt="" coords="125,189,268,230"/>
|
||||
<area shape="poly" id="edge9_Node000001_Node000007" title=" " alt="" coords="77,185,110,191,109,197,76,191"/>
|
||||
<area shape="rect" id="Node000008" href="$d0/dbc/namespacestrings_1_1boyer__moore.html#a15703b553faed0d28202c10808cf9738" title="A function that implements Boyer-Moore's algorithm." alt="" coords="316,136,459,177"/>
|
||||
<area shape="poly" id="edge10_Node000001_Node000008" title=" " alt="" coords="77,176,300,160,301,165,77,182"/>
|
||||
<area shape="rect" id="Node000011" href="/Users/runner/work/C-Plus-Plus/C-Plus-Plus/doc/cppreference-doxygen-web.tag.xml$cpp/container/vector/size.html#" title=" " alt="" coords="139,254,254,280"/>
|
||||
<area shape="poly" id="edge15_Node000001_Node000011" title=" " alt="" coords="59,193,89,216,126,239,139,246,137,250,123,244,86,221,56,197"/>
|
||||
<area shape="rect" id="Node000003" href="$d0/dbc/namespacestrings_1_1boyer__moore.html#a2f6688c9bb3e692297a3aa09cebc1c00" title="A function that preprocess the bad char table." alt="" coords="316,5,459,46"/>
|
||||
<area shape="poly" id="edge2_Node000002_Node000003" title=" " alt="" coords="257,68,311,49,313,54,259,73"/>
|
||||
<area shape="rect" id="Node000006" href="$d0/dbc/namespacestrings_1_1boyer__moore.html#aa709cf7fca02b7d3e1888423d5f739a1" title="A function that preprocess the good suffix thable." alt="" coords="316,71,459,111"/>
|
||||
<area shape="poly" id="edge5_Node000002_Node000006" title=" " alt="" coords="268,88,301,88,301,94,268,94"/>
|
||||
<area shape="rect" id="Node000004" href="/Users/runner/work/C-Plus-Plus/C-Plus-Plus/doc/cppreference-doxygen-web.tag.xml$cpp/string/basic_string/size.html#" title=" " alt="" coords="523,78,646,104"/>
|
||||
<area shape="poly" id="edge3_Node000003_Node000004" title=" " alt="" coords="452,44,530,70,528,75,450,49"/>
|
||||
<area shape="rect" id="Node000005" href="/Users/runner/work/C-Plus-Plus/C-Plus-Plus/doc/cppreference-doxygen-web.tag.xml$cpp/container/vector/resize.html#" title=" " alt="" coords="521,21,648,46"/>
|
||||
<area shape="poly" id="edge4_Node000003_Node000005" title=" " alt="" coords="460,26,506,28,506,33,460,31"/>
|
||||
<area shape="poly" id="edge6_Node000006_Node000004" title=" " alt="" coords="460,97,508,97,508,102,460,102"/>
|
||||
<area shape="poly" id="edge8_Node000006_Node000004" title=" " alt="" coords="460,80,508,80,508,85,460,85"/>
|
||||
<area shape="poly" id="edge7_Node000006_Node000005" title=" " alt="" coords="459,68,523,49,524,54,460,73"/>
|
||||
<area shape="poly" id="edge11_Node000008_Node000004" title=" " alt="" coords="459,139,546,108,548,113,461,144"/>
|
||||
<area shape="poly" id="edge14_Node000008_Node000004" title=" " alt="" coords="428,133,507,105,509,110,430,138"/>
|
||||
<area shape="rect" id="Node000009" href="/Users/runner/work/C-Plus-Plus/C-Plus-Plus/doc/cppreference-doxygen-web.tag.xml$cpp/algorithm/max.html#" title=" " alt="" coords="548,136,621,161"/>
|
||||
<area shape="poly" id="edge12_Node000008_Node000009" title=" " alt="" coords="460,151,532,148,532,153,460,156"/>
|
||||
<area shape="rect" id="Node000010" href="/Users/runner/work/C-Plus-Plus/C-Plus-Plus/doc/cppreference-doxygen-web.tag.xml$cpp/container/vector/push_back.html#" title=" " alt="" coords="507,185,662,210"/>
|
||||
<area shape="poly" id="edge13_Node000008_Node000010" title=" " alt="" coords="460,169,506,178,505,184,459,174"/>
|
||||
</map>
|
||||
@@ -1 +0,0 @@
|
||||
98d8f70da8aad14556827317ad6b0ff1
|
||||
@@ -1,277 +0,0 @@
|
||||
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
|
||||
<!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN"
|
||||
"http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd">
|
||||
<!-- Generated by graphviz version 12.1.2 (20240928.0832)
|
||||
-->
|
||||
<!-- Title: and_test Pages: 1 -->
|
||||
<svg width="500pt" height="214pt"
|
||||
viewBox="0.00 0.00 500.25 213.88" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink">
|
||||
|
||||
<svg id="main" version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" xml:space="preserve">
|
||||
|
||||
<style type="text/css"><![CDATA[
|
||||
.node, .edge {opacity: 0.7;}
|
||||
.node.selected, .edge.selected {opacity: 1;}
|
||||
.edge:hover path { stroke: red; }
|
||||
.edge:hover polygon { stroke: red; fill: red; }
|
||||
]]></style>
|
||||
<script type="application/ecmascript" xlink:href="../../svg.min.js"/>
|
||||
<svg id="graph" class="graph">
|
||||
<g id="graph0" class="graph" transform="scale(1 1) rotate(0) translate(4 209.88)">
|
||||
<title>and_test</title>
|
||||
<!-- Node1 -->
|
||||
<g id="Node000001" class="node">
|
||||
<title>Node1</title>
|
||||
<g id="a_Node000001"><a xlink:title="A test case in which we search for every appearance of the word 'and'.">
|
||||
<polygon fill="#999999" stroke="#666666" points="53.5,-83.25 0,-83.25 0,-64 53.5,-64 53.5,-83.25"/>
|
||||
<text text-anchor="middle" x="26.75" y="-69.75" font-family="Helvetica,sans-Serif" font-size="10.00">and_test</text>
|
||||
</a>
|
||||
</g>
|
||||
</g>
|
||||
<!-- Node2 -->
|
||||
<g id="Node000002" class="node">
|
||||
<title>Node2</title>
|
||||
<g id="a_Node000002"><a xlink:href="../../d0/dbc/namespacestrings_1_1boyer__moore.html#a0b165af1dc341289fd705be4c67728f8" target="_top" xlink:title="A function that initializes pattern.">
|
||||
<polygon fill="white" stroke="#666666" points="197,-156.88 89.5,-156.88 89.5,-126.38 197,-126.38 197,-156.88"/>
|
||||
<text text-anchor="start" x="97.5" y="-143.38" font-family="Helvetica,sans-Serif" font-size="10.00">strings::boyer_moore</text>
|
||||
<text text-anchor="middle" x="143.25" y="-132.12" font-family="Helvetica,sans-Serif" font-size="10.00">::init_pattern</text>
|
||||
</a>
|
||||
</g>
|
||||
</g>
|
||||
<!-- Node1->Node2 -->
|
||||
<g id="edge1_Node000001_Node000002" class="edge">
|
||||
<title>Node1->Node2</title>
|
||||
<g id="a_edge1_Node000001_Node000002"><a xlink:title=" ">
|
||||
<path fill="none" stroke="#63b8ff" d="M44.64,-83.66C60.79,-93.25 85.65,-108.01 106.23,-120.24"/>
|
||||
<polygon fill="#63b8ff" stroke="#63b8ff" points="104.25,-123.13 114.64,-125.23 107.83,-117.11 104.25,-123.13"/>
|
||||
</a>
|
||||
</g>
|
||||
</g>
|
||||
<!-- Node7 -->
|
||||
<g id="Node000007" class="node">
|
||||
<title>Node7</title>
|
||||
<g id="a_Node000007"><a xlink:href="../../d0/dbc/namespacestrings_1_1boyer__moore.html#a056122c8fe8fb0f5fca6428d3f7b5c3a" target="_top" xlink:title="Check if pat is prefix of str.">
|
||||
<polygon fill="white" stroke="#666666" points="197,-67.88 89.5,-67.88 89.5,-37.38 197,-37.38 197,-67.88"/>
|
||||
<text text-anchor="start" x="97.5" y="-54.38" font-family="Helvetica,sans-Serif" font-size="10.00">strings::boyer_moore</text>
|
||||
<text text-anchor="middle" x="143.25" y="-43.12" font-family="Helvetica,sans-Serif" font-size="10.00">::is_prefix</text>
|
||||
</a>
|
||||
</g>
|
||||
</g>
|
||||
<!-- Node1->Node7 -->
|
||||
<g id="edge9_Node000001_Node000007" class="edge">
|
||||
<title>Node1->Node7</title>
|
||||
<g id="a_edge9_Node000001_Node000007"><a xlink:title=" ">
|
||||
<path fill="none" stroke="#63b8ff" d="M53.73,-68.86C61.07,-67.51 69.4,-65.99 77.94,-64.42"/>
|
||||
<polygon fill="#63b8ff" stroke="#63b8ff" points="78.54,-67.87 87.74,-62.62 77.28,-60.98 78.54,-67.87"/>
|
||||
</a>
|
||||
</g>
|
||||
</g>
|
||||
<!-- Node8 -->
|
||||
<g id="Node000008" class="node">
|
||||
<title>Node8</title>
|
||||
<g id="a_Node000008"><a xlink:href="../../d0/dbc/namespacestrings_1_1boyer__moore.html#a15703b553faed0d28202c10808cf9738" target="_top" xlink:title="A function that implements Boyer-Moore's algorithm.">
|
||||
<polygon fill="white" stroke="#666666" points="340.5,-107.88 233,-107.88 233,-77.38 340.5,-77.38 340.5,-107.88"/>
|
||||
<text text-anchor="start" x="241" y="-94.38" font-family="Helvetica,sans-Serif" font-size="10.00">strings::boyer_moore</text>
|
||||
<text text-anchor="middle" x="286.75" y="-83.12" font-family="Helvetica,sans-Serif" font-size="10.00">::search</text>
|
||||
</a>
|
||||
</g>
|
||||
</g>
|
||||
<!-- Node1->Node8 -->
|
||||
<g id="edge10_Node000001_Node000008" class="edge">
|
||||
<title>Node1->Node8</title>
|
||||
<g id="a_edge10_Node000001_Node000008"><a xlink:title=" ">
|
||||
<path fill="none" stroke="#63b8ff" d="M53.91,-75.55C92.9,-78.42 167.46,-83.91 221.52,-87.89"/>
|
||||
<polygon fill="#63b8ff" stroke="#63b8ff" points="220.99,-91.36 231.22,-88.61 221.5,-84.38 220.99,-91.36"/>
|
||||
</a>
|
||||
</g>
|
||||
</g>
|
||||
<!-- Node11 -->
|
||||
<g id="Node000011" class="node">
|
||||
<title>Node11</title>
|
||||
<g id="a_Node000011"><a target="_blank" xlink:href="http://en.cppreference.com/w/cpp/container/vector/size.html#" xlink:title=" ">
|
||||
<polygon fill="white" stroke="#666666" points="186.5,-19.25 100,-19.25 100,0 186.5,0 186.5,-19.25"/>
|
||||
<text text-anchor="middle" x="143.25" y="-5.75" font-family="Helvetica,sans-Serif" font-size="10.00">std::vector::size</text>
|
||||
</a>
|
||||
</g>
|
||||
</g>
|
||||
<!-- Node1->Node11 -->
|
||||
<g id="edge15_Node000001_Node000011" class="edge">
|
||||
<title>Node1->Node11</title>
|
||||
<g id="a_edge15_Node000001_Node000011"><a xlink:title=" ">
|
||||
<path fill="none" stroke="#63b8ff" d="M39.38,-63.58C51.32,-53.66 70.75,-38.57 89.5,-28.62 92.68,-26.94 96.05,-25.34 99.47,-23.84"/>
|
||||
<polygon fill="#63b8ff" stroke="#63b8ff" points="100.46,-27.22 108.42,-20.23 97.84,-20.73 100.46,-27.22"/>
|
||||
</a>
|
||||
</g>
|
||||
</g>
|
||||
<!-- Node3 -->
|
||||
<g id="Node000003" class="node">
|
||||
<title>Node3</title>
|
||||
<g id="a_Node000003"><a xlink:href="../../d0/dbc/namespacestrings_1_1boyer__moore.html#a2f6688c9bb3e692297a3aa09cebc1c00" target="_top" xlink:title="A function that preprocess the bad char table.">
|
||||
<polygon fill="white" stroke="#666666" points="340.5,-205.88 233,-205.88 233,-175.38 340.5,-175.38 340.5,-205.88"/>
|
||||
<text text-anchor="start" x="241" y="-192.38" font-family="Helvetica,sans-Serif" font-size="10.00">strings::boyer_moore</text>
|
||||
<text text-anchor="middle" x="286.75" y="-181.12" font-family="Helvetica,sans-Serif" font-size="10.00">::init_bad_char</text>
|
||||
</a>
|
||||
</g>
|
||||
</g>
|
||||
<!-- Node2->Node3 -->
|
||||
<g id="edge2_Node000002_Node000003" class="edge">
|
||||
<title>Node2->Node3</title>
|
||||
<g id="a_edge2_Node000002_Node000003"><a xlink:title=" ">
|
||||
<path fill="none" stroke="#63b8ff" d="M189.41,-157.26C202.3,-161.73 216.5,-166.65 229.95,-171.3"/>
|
||||
<polygon fill="#63b8ff" stroke="#63b8ff" points="228.51,-174.51 239.1,-174.47 230.8,-167.89 228.51,-174.51"/>
|
||||
</a>
|
||||
</g>
|
||||
</g>
|
||||
<!-- Node6 -->
|
||||
<g id="Node000006" class="node">
|
||||
<title>Node6</title>
|
||||
<g id="a_Node000006"><a xlink:href="../../d0/dbc/namespacestrings_1_1boyer__moore.html#aa709cf7fca02b7d3e1888423d5f739a1" target="_top" xlink:title="A function that preprocess the good suffix thable.">
|
||||
<polygon fill="white" stroke="#666666" points="340.5,-156.88 233,-156.88 233,-126.38 340.5,-126.38 340.5,-156.88"/>
|
||||
<text text-anchor="start" x="241" y="-143.38" font-family="Helvetica,sans-Serif" font-size="10.00">strings::boyer_moore</text>
|
||||
<text text-anchor="middle" x="286.75" y="-132.12" font-family="Helvetica,sans-Serif" font-size="10.00">::init_good_suffix</text>
|
||||
</a>
|
||||
</g>
|
||||
</g>
|
||||
<!-- Node2->Node6 -->
|
||||
<g id="edge5_Node000002_Node000006" class="edge">
|
||||
<title>Node2->Node6</title>
|
||||
<g id="a_edge5_Node000002_Node000006"><a xlink:title=" ">
|
||||
<path fill="none" stroke="#63b8ff" d="M197.34,-141.62C205.23,-141.62 213.43,-141.62 221.52,-141.62"/>
|
||||
<polygon fill="#63b8ff" stroke="#63b8ff" points="221.32,-145.13 231.32,-141.63 221.32,-138.13 221.32,-145.13"/>
|
||||
</a>
|
||||
</g>
|
||||
</g>
|
||||
<!-- Node4 -->
|
||||
<g id="Node000004" class="node">
|
||||
<title>Node4</title>
|
||||
<g id="a_Node000004"><a target="_blank" xlink:href="http://en.cppreference.com/w/cpp/string/basic_string/size.html#" xlink:title=" ">
|
||||
<polygon fill="white" stroke="#666666" points="480.25,-151.25 388.5,-151.25 388.5,-132 480.25,-132 480.25,-151.25"/>
|
||||
<text text-anchor="middle" x="434.38" y="-137.75" font-family="Helvetica,sans-Serif" font-size="10.00">std::string::length</text>
|
||||
</a>
|
||||
</g>
|
||||
</g>
|
||||
<!-- Node3->Node4 -->
|
||||
<g id="edge3_Node000003_Node000004" class="edge">
|
||||
<title>Node3->Node4</title>
|
||||
<g id="a_edge3_Node000003_Node000004"><a xlink:title=" ">
|
||||
<path fill="none" stroke="#63b8ff" d="M334.23,-174.99C352.98,-168.68 374.42,-161.46 392.56,-155.36"/>
|
||||
<polygon fill="#63b8ff" stroke="#63b8ff" points="393.57,-158.71 401.93,-152.2 391.34,-152.08 393.57,-158.71"/>
|
||||
</a>
|
||||
</g>
|
||||
</g>
|
||||
<!-- Node5 -->
|
||||
<g id="Node000005" class="node">
|
||||
<title>Node5</title>
|
||||
<g id="a_Node000005"><a target="_blank" xlink:href="http://en.cppreference.com/w/cpp/container/vector/resize.html#" xlink:title=" ">
|
||||
<polygon fill="white" stroke="#666666" points="481.75,-194.25 387,-194.25 387,-175 481.75,-175 481.75,-194.25"/>
|
||||
<text text-anchor="middle" x="434.38" y="-180.75" font-family="Helvetica,sans-Serif" font-size="10.00">std::vector::resize</text>
|
||||
</a>
|
||||
</g>
|
||||
</g>
|
||||
<!-- Node3->Node5 -->
|
||||
<g id="edge4_Node000003_Node000005" class="edge">
|
||||
<title>Node3->Node5</title>
|
||||
<g id="a_edge4_Node000003_Node000005"><a xlink:title=" ">
|
||||
<path fill="none" stroke="#63b8ff" d="M340.74,-188.44C352.08,-187.97 364.12,-187.48 375.63,-187"/>
|
||||
<polygon fill="#63b8ff" stroke="#63b8ff" points="375.57,-190.51 385.42,-186.6 375.28,-183.52 375.57,-190.51"/>
|
||||
</a>
|
||||
</g>
|
||||
</g>
|
||||
<!-- Node6->Node4 -->
|
||||
<g id="edge6_Node000006_Node000004" class="edge">
|
||||
<title>Node6->Node4</title>
|
||||
<g id="a_edge6_Node000006_Node000004"><a xlink:title=" ">
|
||||
<path fill="none" stroke="#63b8ff" d="M340.74,-135.1C352.57,-134.82 365.16,-134.8 377.12,-135.03"/>
|
||||
<polygon fill="#63b8ff" stroke="#63b8ff" points="376.74,-138.52 386.83,-135.29 376.93,-131.53 376.74,-138.52"/>
|
||||
</a>
|
||||
</g>
|
||||
</g>
|
||||
<!-- Node6->Node4 -->
|
||||
<g id="edge8_Node000006_Node000004" class="edge">
|
||||
<title>Node6->Node4</title>
|
||||
<g id="a_edge8_Node000006_Node000004"><a xlink:title=" ">
|
||||
<path fill="none" stroke="#63b8ff" d="M340.74,-148.15C352.57,-148.43 365.16,-148.45 377.12,-148.22"/>
|
||||
<polygon fill="#63b8ff" stroke="#63b8ff" points="376.93,-151.72 386.83,-147.96 376.74,-144.73 376.93,-151.72"/>
|
||||
</a>
|
||||
</g>
|
||||
</g>
|
||||
<!-- Node6->Node5 -->
|
||||
<g id="edge7_Node000006_Node000005" class="edge">
|
||||
<title>Node6->Node5</title>
|
||||
<g id="a_edge7_Node000006_Node000005"><a xlink:title=" ">
|
||||
<path fill="none" stroke="#63b8ff" d="M340.74,-157.27C356.44,-161.91 373.48,-166.94 388.61,-171.41"/>
|
||||
<polygon fill="#63b8ff" stroke="#63b8ff" points="387.21,-174.64 397.79,-174.12 389.19,-167.93 387.21,-174.64"/>
|
||||
</a>
|
||||
</g>
|
||||
</g>
|
||||
<!-- Node8->Node4 -->
|
||||
<g id="edge11_Node000008_Node000004" class="edge">
|
||||
<title>Node8->Node4</title>
|
||||
<g id="a_edge11_Node000008_Node000004"><a xlink:title=" ">
|
||||
<path fill="none" stroke="#63b8ff" d="M340.74,-103.93C362.96,-110.89 387.85,-119.64 406.23,-127.1"/>
|
||||
<polygon fill="#63b8ff" stroke="#63b8ff" points="404.79,-130.29 415.36,-130.96 407.51,-123.84 404.79,-130.29"/>
|
||||
</a>
|
||||
</g>
|
||||
</g>
|
||||
<!-- Node8->Node4 -->
|
||||
<g id="edge14_Node000008_Node000004" class="edge">
|
||||
<title>Node8->Node4</title>
|
||||
<g id="a_edge14_Node000008_Node000004"><a xlink:title=" ">
|
||||
<path fill="none" stroke="#63b8ff" d="M317.92,-108.37C335,-115.17 356.92,-122.88 377.06,-129.27"/>
|
||||
<polygon fill="#63b8ff" stroke="#63b8ff" points="375.99,-132.6 386.57,-132.22 378.06,-125.92 375.99,-132.6"/>
|
||||
</a>
|
||||
</g>
|
||||
</g>
|
||||
<!-- Node9 -->
|
||||
<g id="Node000009" class="node">
|
||||
<title>Node9</title>
|
||||
<g id="a_Node000009"><a target="_blank" xlink:href="http://en.cppreference.com/w/cpp/algorithm/max.html#" xlink:title=" ">
|
||||
<polygon fill="white" stroke="#666666" points="461.5,-108.25 407.25,-108.25 407.25,-89 461.5,-89 461.5,-108.25"/>
|
||||
<text text-anchor="middle" x="434.38" y="-94.75" font-family="Helvetica,sans-Serif" font-size="10.00">std::max</text>
|
||||
</a>
|
||||
</g>
|
||||
</g>
|
||||
<!-- Node8->Node9 -->
|
||||
<g id="edge12_Node000008_Node000009" class="edge">
|
||||
<title>Node8->Node9</title>
|
||||
<g id="a_edge12_Node000008_Node000009"><a xlink:title=" ">
|
||||
<path fill="none" stroke="#63b8ff" d="M340.74,-94.81C358.8,-95.55 378.62,-96.37 395.28,-97.06"/>
|
||||
<polygon fill="#63b8ff" stroke="#63b8ff" points="395.13,-100.55 405.27,-97.47 395.42,-93.56 395.13,-100.55"/>
|
||||
</a>
|
||||
</g>
|
||||
</g>
|
||||
<!-- Node10 -->
|
||||
<g id="Node000010" class="node">
|
||||
<title>Node10</title>
|
||||
<g id="a_Node000010"><a target="_blank" xlink:href="http://en.cppreference.com/w/cpp/container/vector/push_back.html#" xlink:title=" ">
|
||||
<polygon fill="white" stroke="#666666" points="492.25,-71.25 376.5,-71.25 376.5,-52 492.25,-52 492.25,-71.25"/>
|
||||
<text text-anchor="middle" x="434.38" y="-57.75" font-family="Helvetica,sans-Serif" font-size="10.00">std::vector::push_back</text>
|
||||
</a>
|
||||
</g>
|
||||
</g>
|
||||
<!-- Node8->Node10 -->
|
||||
<g id="edge13_Node000008_Node000010" class="edge">
|
||||
<title>Node8->Node10</title>
|
||||
<g id="a_edge13_Node000008_Node000010"><a xlink:title=" ">
|
||||
<path fill="none" stroke="#63b8ff" d="M340.74,-81.35C351.84,-78.98 363.6,-76.48 374.89,-74.07"/>
|
||||
<polygon fill="#63b8ff" stroke="#63b8ff" points="375.44,-77.54 384.5,-72.03 373.99,-70.69 375.44,-77.54"/>
|
||||
</a>
|
||||
</g>
|
||||
</g>
|
||||
</g>
|
||||
</svg>
|
||||
</svg>
|
||||
|
||||
<style type='text/css'>
|
||||
<![CDATA[
|
||||
[data-mouse-over-selected='false'] { opacity: 0.7; }
|
||||
[data-mouse-over-selected='true'] { opacity: 1.0; }
|
||||
]]>
|
||||
</style>
|
||||
<script type="application/ecmascript"><![CDATA[
|
||||
document.addEventListener('DOMContentLoaded', (event) => {
|
||||
highlightEdges();
|
||||
highlightAdjacentNodes();
|
||||
});
|
||||
]]></script>
|
||||
</svg>
|
||||
|
Before Width: | Height: | Size: 13 KiB |
@@ -1,251 +0,0 @@
|
||||
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
|
||||
<!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN"
|
||||
"http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd">
|
||||
<!-- Generated by graphviz version 12.1.2 (20240928.0832)
|
||||
-->
|
||||
<!-- Title: and_test Pages: 1 -->
|
||||
<svg width="500pt" height="214pt"
|
||||
viewBox="0.00 0.00 500.25 213.88" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink">
|
||||
<g id="graph0" class="graph" transform="scale(1 1) rotate(0) translate(4 209.88)">
|
||||
<title>and_test</title>
|
||||
<!-- Node1 -->
|
||||
<g id="Node000001" class="node">
|
||||
<title>Node1</title>
|
||||
<g id="a_Node000001"><a xlink:title="A test case in which we search for every appearance of the word 'and'.">
|
||||
<polygon fill="#999999" stroke="#666666" points="53.5,-83.25 0,-83.25 0,-64 53.5,-64 53.5,-83.25"/>
|
||||
<text text-anchor="middle" x="26.75" y="-69.75" font-family="Helvetica,sans-Serif" font-size="10.00">and_test</text>
|
||||
</a>
|
||||
</g>
|
||||
</g>
|
||||
<!-- Node2 -->
|
||||
<g id="Node000002" class="node">
|
||||
<title>Node2</title>
|
||||
<g id="a_Node000002"><a xlink:href="../../d0/dbc/namespacestrings_1_1boyer__moore.html#a0b165af1dc341289fd705be4c67728f8" target="_top" xlink:title="A function that initializes pattern.">
|
||||
<polygon fill="white" stroke="#666666" points="197,-156.88 89.5,-156.88 89.5,-126.38 197,-126.38 197,-156.88"/>
|
||||
<text text-anchor="start" x="97.5" y="-143.38" font-family="Helvetica,sans-Serif" font-size="10.00">strings::boyer_moore</text>
|
||||
<text text-anchor="middle" x="143.25" y="-132.12" font-family="Helvetica,sans-Serif" font-size="10.00">::init_pattern</text>
|
||||
</a>
|
||||
</g>
|
||||
</g>
|
||||
<!-- Node1->Node2 -->
|
||||
<g id="edge1_Node000001_Node000002" class="edge">
|
||||
<title>Node1->Node2</title>
|
||||
<g id="a_edge1_Node000001_Node000002"><a xlink:title=" ">
|
||||
<path fill="none" stroke="#63b8ff" d="M44.64,-83.66C60.79,-93.25 85.65,-108.01 106.23,-120.24"/>
|
||||
<polygon fill="#63b8ff" stroke="#63b8ff" points="104.25,-123.13 114.64,-125.23 107.83,-117.11 104.25,-123.13"/>
|
||||
</a>
|
||||
</g>
|
||||
</g>
|
||||
<!-- Node7 -->
|
||||
<g id="Node000007" class="node">
|
||||
<title>Node7</title>
|
||||
<g id="a_Node000007"><a xlink:href="../../d0/dbc/namespacestrings_1_1boyer__moore.html#a056122c8fe8fb0f5fca6428d3f7b5c3a" target="_top" xlink:title="Check if pat is prefix of str.">
|
||||
<polygon fill="white" stroke="#666666" points="197,-67.88 89.5,-67.88 89.5,-37.38 197,-37.38 197,-67.88"/>
|
||||
<text text-anchor="start" x="97.5" y="-54.38" font-family="Helvetica,sans-Serif" font-size="10.00">strings::boyer_moore</text>
|
||||
<text text-anchor="middle" x="143.25" y="-43.12" font-family="Helvetica,sans-Serif" font-size="10.00">::is_prefix</text>
|
||||
</a>
|
||||
</g>
|
||||
</g>
|
||||
<!-- Node1->Node7 -->
|
||||
<g id="edge9_Node000001_Node000007" class="edge">
|
||||
<title>Node1->Node7</title>
|
||||
<g id="a_edge9_Node000001_Node000007"><a xlink:title=" ">
|
||||
<path fill="none" stroke="#63b8ff" d="M53.73,-68.86C61.07,-67.51 69.4,-65.99 77.94,-64.42"/>
|
||||
<polygon fill="#63b8ff" stroke="#63b8ff" points="78.54,-67.87 87.74,-62.62 77.28,-60.98 78.54,-67.87"/>
|
||||
</a>
|
||||
</g>
|
||||
</g>
|
||||
<!-- Node8 -->
|
||||
<g id="Node000008" class="node">
|
||||
<title>Node8</title>
|
||||
<g id="a_Node000008"><a xlink:href="../../d0/dbc/namespacestrings_1_1boyer__moore.html#a15703b553faed0d28202c10808cf9738" target="_top" xlink:title="A function that implements Boyer-Moore's algorithm.">
|
||||
<polygon fill="white" stroke="#666666" points="340.5,-107.88 233,-107.88 233,-77.38 340.5,-77.38 340.5,-107.88"/>
|
||||
<text text-anchor="start" x="241" y="-94.38" font-family="Helvetica,sans-Serif" font-size="10.00">strings::boyer_moore</text>
|
||||
<text text-anchor="middle" x="286.75" y="-83.12" font-family="Helvetica,sans-Serif" font-size="10.00">::search</text>
|
||||
</a>
|
||||
</g>
|
||||
</g>
|
||||
<!-- Node1->Node8 -->
|
||||
<g id="edge10_Node000001_Node000008" class="edge">
|
||||
<title>Node1->Node8</title>
|
||||
<g id="a_edge10_Node000001_Node000008"><a xlink:title=" ">
|
||||
<path fill="none" stroke="#63b8ff" d="M53.91,-75.55C92.9,-78.42 167.46,-83.91 221.52,-87.89"/>
|
||||
<polygon fill="#63b8ff" stroke="#63b8ff" points="220.99,-91.36 231.22,-88.61 221.5,-84.38 220.99,-91.36"/>
|
||||
</a>
|
||||
</g>
|
||||
</g>
|
||||
<!-- Node11 -->
|
||||
<g id="Node000011" class="node">
|
||||
<title>Node11</title>
|
||||
<g id="a_Node000011"><a target="_blank" xlink:href="http://en.cppreference.com/w/cpp/container/vector/size.html#" xlink:title=" ">
|
||||
<polygon fill="white" stroke="#666666" points="186.5,-19.25 100,-19.25 100,0 186.5,0 186.5,-19.25"/>
|
||||
<text text-anchor="middle" x="143.25" y="-5.75" font-family="Helvetica,sans-Serif" font-size="10.00">std::vector::size</text>
|
||||
</a>
|
||||
</g>
|
||||
</g>
|
||||
<!-- Node1->Node11 -->
|
||||
<g id="edge15_Node000001_Node000011" class="edge">
|
||||
<title>Node1->Node11</title>
|
||||
<g id="a_edge15_Node000001_Node000011"><a xlink:title=" ">
|
||||
<path fill="none" stroke="#63b8ff" d="M39.38,-63.58C51.32,-53.66 70.75,-38.57 89.5,-28.62 92.68,-26.94 96.05,-25.34 99.47,-23.84"/>
|
||||
<polygon fill="#63b8ff" stroke="#63b8ff" points="100.46,-27.22 108.42,-20.23 97.84,-20.73 100.46,-27.22"/>
|
||||
</a>
|
||||
</g>
|
||||
</g>
|
||||
<!-- Node3 -->
|
||||
<g id="Node000003" class="node">
|
||||
<title>Node3</title>
|
||||
<g id="a_Node000003"><a xlink:href="../../d0/dbc/namespacestrings_1_1boyer__moore.html#a2f6688c9bb3e692297a3aa09cebc1c00" target="_top" xlink:title="A function that preprocess the bad char table.">
|
||||
<polygon fill="white" stroke="#666666" points="340.5,-205.88 233,-205.88 233,-175.38 340.5,-175.38 340.5,-205.88"/>
|
||||
<text text-anchor="start" x="241" y="-192.38" font-family="Helvetica,sans-Serif" font-size="10.00">strings::boyer_moore</text>
|
||||
<text text-anchor="middle" x="286.75" y="-181.12" font-family="Helvetica,sans-Serif" font-size="10.00">::init_bad_char</text>
|
||||
</a>
|
||||
</g>
|
||||
</g>
|
||||
<!-- Node2->Node3 -->
|
||||
<g id="edge2_Node000002_Node000003" class="edge">
|
||||
<title>Node2->Node3</title>
|
||||
<g id="a_edge2_Node000002_Node000003"><a xlink:title=" ">
|
||||
<path fill="none" stroke="#63b8ff" d="M189.41,-157.26C202.3,-161.73 216.5,-166.65 229.95,-171.3"/>
|
||||
<polygon fill="#63b8ff" stroke="#63b8ff" points="228.51,-174.51 239.1,-174.47 230.8,-167.89 228.51,-174.51"/>
|
||||
</a>
|
||||
</g>
|
||||
</g>
|
||||
<!-- Node6 -->
|
||||
<g id="Node000006" class="node">
|
||||
<title>Node6</title>
|
||||
<g id="a_Node000006"><a xlink:href="../../d0/dbc/namespacestrings_1_1boyer__moore.html#aa709cf7fca02b7d3e1888423d5f739a1" target="_top" xlink:title="A function that preprocess the good suffix thable.">
|
||||
<polygon fill="white" stroke="#666666" points="340.5,-156.88 233,-156.88 233,-126.38 340.5,-126.38 340.5,-156.88"/>
|
||||
<text text-anchor="start" x="241" y="-143.38" font-family="Helvetica,sans-Serif" font-size="10.00">strings::boyer_moore</text>
|
||||
<text text-anchor="middle" x="286.75" y="-132.12" font-family="Helvetica,sans-Serif" font-size="10.00">::init_good_suffix</text>
|
||||
</a>
|
||||
</g>
|
||||
</g>
|
||||
<!-- Node2->Node6 -->
|
||||
<g id="edge5_Node000002_Node000006" class="edge">
|
||||
<title>Node2->Node6</title>
|
||||
<g id="a_edge5_Node000002_Node000006"><a xlink:title=" ">
|
||||
<path fill="none" stroke="#63b8ff" d="M197.34,-141.62C205.23,-141.62 213.43,-141.62 221.52,-141.62"/>
|
||||
<polygon fill="#63b8ff" stroke="#63b8ff" points="221.32,-145.13 231.32,-141.63 221.32,-138.13 221.32,-145.13"/>
|
||||
</a>
|
||||
</g>
|
||||
</g>
|
||||
<!-- Node4 -->
|
||||
<g id="Node000004" class="node">
|
||||
<title>Node4</title>
|
||||
<g id="a_Node000004"><a target="_blank" xlink:href="http://en.cppreference.com/w/cpp/string/basic_string/size.html#" xlink:title=" ">
|
||||
<polygon fill="white" stroke="#666666" points="480.25,-151.25 388.5,-151.25 388.5,-132 480.25,-132 480.25,-151.25"/>
|
||||
<text text-anchor="middle" x="434.38" y="-137.75" font-family="Helvetica,sans-Serif" font-size="10.00">std::string::length</text>
|
||||
</a>
|
||||
</g>
|
||||
</g>
|
||||
<!-- Node3->Node4 -->
|
||||
<g id="edge3_Node000003_Node000004" class="edge">
|
||||
<title>Node3->Node4</title>
|
||||
<g id="a_edge3_Node000003_Node000004"><a xlink:title=" ">
|
||||
<path fill="none" stroke="#63b8ff" d="M334.23,-174.99C352.98,-168.68 374.42,-161.46 392.56,-155.36"/>
|
||||
<polygon fill="#63b8ff" stroke="#63b8ff" points="393.57,-158.71 401.93,-152.2 391.34,-152.08 393.57,-158.71"/>
|
||||
</a>
|
||||
</g>
|
||||
</g>
|
||||
<!-- Node5 -->
|
||||
<g id="Node000005" class="node">
|
||||
<title>Node5</title>
|
||||
<g id="a_Node000005"><a target="_blank" xlink:href="http://en.cppreference.com/w/cpp/container/vector/resize.html#" xlink:title=" ">
|
||||
<polygon fill="white" stroke="#666666" points="481.75,-194.25 387,-194.25 387,-175 481.75,-175 481.75,-194.25"/>
|
||||
<text text-anchor="middle" x="434.38" y="-180.75" font-family="Helvetica,sans-Serif" font-size="10.00">std::vector::resize</text>
|
||||
</a>
|
||||
</g>
|
||||
</g>
|
||||
<!-- Node3->Node5 -->
|
||||
<g id="edge4_Node000003_Node000005" class="edge">
|
||||
<title>Node3->Node5</title>
|
||||
<g id="a_edge4_Node000003_Node000005"><a xlink:title=" ">
|
||||
<path fill="none" stroke="#63b8ff" d="M340.74,-188.44C352.08,-187.97 364.12,-187.48 375.63,-187"/>
|
||||
<polygon fill="#63b8ff" stroke="#63b8ff" points="375.57,-190.51 385.42,-186.6 375.28,-183.52 375.57,-190.51"/>
|
||||
</a>
|
||||
</g>
|
||||
</g>
|
||||
<!-- Node6->Node4 -->
|
||||
<g id="edge6_Node000006_Node000004" class="edge">
|
||||
<title>Node6->Node4</title>
|
||||
<g id="a_edge6_Node000006_Node000004"><a xlink:title=" ">
|
||||
<path fill="none" stroke="#63b8ff" d="M340.74,-135.1C352.57,-134.82 365.16,-134.8 377.12,-135.03"/>
|
||||
<polygon fill="#63b8ff" stroke="#63b8ff" points="376.74,-138.52 386.83,-135.29 376.93,-131.53 376.74,-138.52"/>
|
||||
</a>
|
||||
</g>
|
||||
</g>
|
||||
<!-- Node6->Node4 -->
|
||||
<g id="edge8_Node000006_Node000004" class="edge">
|
||||
<title>Node6->Node4</title>
|
||||
<g id="a_edge8_Node000006_Node000004"><a xlink:title=" ">
|
||||
<path fill="none" stroke="#63b8ff" d="M340.74,-148.15C352.57,-148.43 365.16,-148.45 377.12,-148.22"/>
|
||||
<polygon fill="#63b8ff" stroke="#63b8ff" points="376.93,-151.72 386.83,-147.96 376.74,-144.73 376.93,-151.72"/>
|
||||
</a>
|
||||
</g>
|
||||
</g>
|
||||
<!-- Node6->Node5 -->
|
||||
<g id="edge7_Node000006_Node000005" class="edge">
|
||||
<title>Node6->Node5</title>
|
||||
<g id="a_edge7_Node000006_Node000005"><a xlink:title=" ">
|
||||
<path fill="none" stroke="#63b8ff" d="M340.74,-157.27C356.44,-161.91 373.48,-166.94 388.61,-171.41"/>
|
||||
<polygon fill="#63b8ff" stroke="#63b8ff" points="387.21,-174.64 397.79,-174.12 389.19,-167.93 387.21,-174.64"/>
|
||||
</a>
|
||||
</g>
|
||||
</g>
|
||||
<!-- Node8->Node4 -->
|
||||
<g id="edge11_Node000008_Node000004" class="edge">
|
||||
<title>Node8->Node4</title>
|
||||
<g id="a_edge11_Node000008_Node000004"><a xlink:title=" ">
|
||||
<path fill="none" stroke="#63b8ff" d="M340.74,-103.93C362.96,-110.89 387.85,-119.64 406.23,-127.1"/>
|
||||
<polygon fill="#63b8ff" stroke="#63b8ff" points="404.79,-130.29 415.36,-130.96 407.51,-123.84 404.79,-130.29"/>
|
||||
</a>
|
||||
</g>
|
||||
</g>
|
||||
<!-- Node8->Node4 -->
|
||||
<g id="edge14_Node000008_Node000004" class="edge">
|
||||
<title>Node8->Node4</title>
|
||||
<g id="a_edge14_Node000008_Node000004"><a xlink:title=" ">
|
||||
<path fill="none" stroke="#63b8ff" d="M317.92,-108.37C335,-115.17 356.92,-122.88 377.06,-129.27"/>
|
||||
<polygon fill="#63b8ff" stroke="#63b8ff" points="375.99,-132.6 386.57,-132.22 378.06,-125.92 375.99,-132.6"/>
|
||||
</a>
|
||||
</g>
|
||||
</g>
|
||||
<!-- Node9 -->
|
||||
<g id="Node000009" class="node">
|
||||
<title>Node9</title>
|
||||
<g id="a_Node000009"><a target="_blank" xlink:href="http://en.cppreference.com/w/cpp/algorithm/max.html#" xlink:title=" ">
|
||||
<polygon fill="white" stroke="#666666" points="461.5,-108.25 407.25,-108.25 407.25,-89 461.5,-89 461.5,-108.25"/>
|
||||
<text text-anchor="middle" x="434.38" y="-94.75" font-family="Helvetica,sans-Serif" font-size="10.00">std::max</text>
|
||||
</a>
|
||||
</g>
|
||||
</g>
|
||||
<!-- Node8->Node9 -->
|
||||
<g id="edge12_Node000008_Node000009" class="edge">
|
||||
<title>Node8->Node9</title>
|
||||
<g id="a_edge12_Node000008_Node000009"><a xlink:title=" ">
|
||||
<path fill="none" stroke="#63b8ff" d="M340.74,-94.81C358.8,-95.55 378.62,-96.37 395.28,-97.06"/>
|
||||
<polygon fill="#63b8ff" stroke="#63b8ff" points="395.13,-100.55 405.27,-97.47 395.42,-93.56 395.13,-100.55"/>
|
||||
</a>
|
||||
</g>
|
||||
</g>
|
||||
<!-- Node10 -->
|
||||
<g id="Node000010" class="node">
|
||||
<title>Node10</title>
|
||||
<g id="a_Node000010"><a target="_blank" xlink:href="http://en.cppreference.com/w/cpp/container/vector/push_back.html#" xlink:title=" ">
|
||||
<polygon fill="white" stroke="#666666" points="492.25,-71.25 376.5,-71.25 376.5,-52 492.25,-52 492.25,-71.25"/>
|
||||
<text text-anchor="middle" x="434.38" y="-57.75" font-family="Helvetica,sans-Serif" font-size="10.00">std::vector::push_back</text>
|
||||
</a>
|
||||
</g>
|
||||
</g>
|
||||
<!-- Node8->Node10 -->
|
||||
<g id="edge13_Node000008_Node000010" class="edge">
|
||||
<title>Node8->Node10</title>
|
||||
<g id="a_edge13_Node000008_Node000010"><a xlink:title=" ">
|
||||
<path fill="none" stroke="#63b8ff" d="M340.74,-81.35C351.84,-78.98 363.6,-76.48 374.89,-74.07"/>
|
||||
<polygon fill="#63b8ff" stroke="#63b8ff" points="375.44,-77.54 384.5,-72.03 373.99,-70.69 375.44,-77.54"/>
|
||||
</a>
|
||||
</g>
|
||||
</g>
|
||||
</g>
|
||||
</svg>
|
||||
|
Before Width: | Height: | Size: 12 KiB |
@@ -1,38 +0,0 @@
|
||||
<map id="main" name="main">
|
||||
<area shape="rect" id="Node000001" title="Main function." alt="" coords="5,100,55,125"/>
|
||||
<area shape="rect" id="Node000002" href="$d3/db2/boyer__moore_8cpp.html#a483bb8ccf42aaf7375a83e91490eda1e" title="Self-test implementations." alt="" coords="103,100,153,125"/>
|
||||
<area shape="poly" id="edge1_Node000001_Node000002" title=" " alt="" coords="55,110,88,110,88,115,55,115"/>
|
||||
<area shape="rect" id="Node000003" href="$d3/db2/boyer__moore_8cpp.html#acb8f69e7901ee7459d98bd4b9dda79d9" title="A test case in which we search for every appearance of the word 'and'." alt="" coords="201,74,272,100"/>
|
||||
<area shape="poly" id="edge2_Node000002_Node000003" title=" " alt="" coords="153,104,185,96,186,101,154,109"/>
|
||||
<area shape="rect" id="Node000014" href="$d3/db2/boyer__moore_8cpp.html#ac8fac0dd4b19973da103a434143a16d2" title="A test case in which we search for every appearance of the word 'pat'." alt="" coords="202,124,271,149"/>
|
||||
<area shape="poly" id="edge18_Node000002_Node000014" title=" " alt="" coords="154,115,188,123,187,128,153,120"/>
|
||||
<area shape="rect" id="Node000004" href="$d0/dbc/namespacestrings_1_1boyer__moore.html#a0b165af1dc341289fd705be4c67728f8" title="A function that initializes pattern." alt="" coords="320,120,464,161"/>
|
||||
<area shape="poly" id="edge3_Node000003_Node000004" title=" " alt="" coords="274,97,318,112,316,117,272,102"/>
|
||||
<area shape="rect" id="Node000009" href="$d0/dbc/namespacestrings_1_1boyer__moore.html#a056122c8fe8fb0f5fca6428d3f7b5c3a" title="Check if pat is prefix of str." alt="" coords="320,5,464,46"/>
|
||||
<area shape="poly" id="edge11_Node000003_Node000009" title=" " alt="" coords="271,71,324,50,326,55,272,76"/>
|
||||
<area shape="rect" id="Node000010" href="$d0/dbc/namespacestrings_1_1boyer__moore.html#a15703b553faed0d28202c10808cf9738" title="A function that implements Boyer-Moore's algorithm." alt="" coords="320,187,464,227"/>
|
||||
<area shape="poly" id="edge12_Node000003_Node000010" title=" " alt="" coords="261,98,274,109,289,126,298,141,307,155,322,170,330,176,327,180,319,174,303,159,293,144,285,129,270,113,257,102"/>
|
||||
<area shape="rect" id="Node000013" href="/Users/runner/work/C-Plus-Plus/C-Plus-Plus/doc/cppreference-doxygen-web.tag.xml$cpp/container/vector/size.html#" title=" " alt="" coords="334,70,450,96"/>
|
||||
<area shape="poly" id="edge17_Node000003_Node000013" title=" " alt="" coords="273,83,319,82,319,88,273,89"/>
|
||||
<area shape="rect" id="Node000005" href="$d0/dbc/namespacestrings_1_1boyer__moore.html#a2f6688c9bb3e692297a3aa09cebc1c00" title="A function that preprocess the bad char table." alt="" coords="517,52,660,93"/>
|
||||
<area shape="poly" id="edge4_Node000004_Node000005" title=" " alt="" coords="452,117,513,96,514,101,454,122"/>
|
||||
<area shape="rect" id="Node000008" href="$d0/dbc/namespacestrings_1_1boyer__moore.html#aa709cf7fca02b7d3e1888423d5f739a1" title="A function that preprocess the good suffix thable." alt="" coords="517,117,660,158"/>
|
||||
<area shape="poly" id="edge7_Node000004_Node000008" title=" " alt="" coords="464,137,501,136,502,142,464,142"/>
|
||||
<area shape="rect" id="Node000006" href="/Users/runner/work/C-Plus-Plus/C-Plus-Plus/doc/cppreference-doxygen-web.tag.xml$cpp/string/basic_string/size.html#" title=" " alt="" coords="716,125,838,150"/>
|
||||
<area shape="poly" id="edge5_Node000005_Node000006" title=" " alt="" coords="650,91,724,117,722,122,649,96"/>
|
||||
<area shape="rect" id="Node000007" href="/Users/runner/work/C-Plus-Plus/C-Plus-Plus/doc/cppreference-doxygen-web.tag.xml$cpp/container/vector/resize.html#" title=" " alt="" coords="714,68,840,93"/>
|
||||
<area shape="poly" id="edge6_Node000005_Node000007" title=" " alt="" coords="661,73,699,74,699,80,661,78"/>
|
||||
<area shape="poly" id="edge8_Node000008_Node000006" title=" " alt="" coords="661,144,701,144,701,149,661,149"/>
|
||||
<area shape="poly" id="edge10_Node000008_Node000006" title=" " alt="" coords="661,126,701,126,701,131,661,132"/>
|
||||
<area shape="poly" id="edge9_Node000008_Node000007" title=" " alt="" coords="657,114,717,96,719,101,659,119"/>
|
||||
<area shape="poly" id="edge13_Node000010_Node000006" title=" " alt="" coords="464,207,560,197,665,179,746,155,748,160,667,184,561,202,464,213"/>
|
||||
<area shape="poly" id="edge16_Node000010_Node000006" title=" " alt="" coords="463,188,560,174,665,155,701,147,702,152,667,160,561,179,464,193"/>
|
||||
<area shape="rect" id="Node000011" href="/Users/runner/work/C-Plus-Plus/C-Plus-Plus/doc/cppreference-doxygen-web.tag.xml$cpp/algorithm/max.html#" title=" " alt="" coords="553,257,625,282"/>
|
||||
<area shape="poly" id="edge14_Node000010_Node000011" title=" " alt="" coords="459,225,539,251,537,256,457,230"/>
|
||||
<area shape="rect" id="Node000012" href="/Users/runner/work/C-Plus-Plus/C-Plus-Plus/doc/cppreference-doxygen-web.tag.xml$cpp/container/vector/push_back.html#" title=" " alt="" coords="512,306,666,332"/>
|
||||
<area shape="poly" id="edge15_Node000010_Node000012" title=" " alt="" coords="418,226,461,260,513,293,524,298,522,303,510,297,457,264,415,230"/>
|
||||
<area shape="poly" id="edge19_Node000014_Node000004" title=" " alt="" coords="271,135,305,135,305,141,271,140"/>
|
||||
<area shape="poly" id="edge20_Node000014_Node000009" title=" " alt="" coords="257,121,270,110,294,82,303,70,319,56,324,52,327,56,322,60,307,73,298,86,274,114,261,125"/>
|
||||
<area shape="poly" id="edge21_Node000014_Node000010" title=" " alt="" coords="268,147,333,177,331,182,266,152"/>
|
||||
<area shape="poly" id="edge22_Node000014_Node000013" title=" " alt="" coords="270,122,337,99,339,104,272,127"/>
|
||||
</map>
|
||||
@@ -1 +0,0 @@
|
||||
c01f7d0f619a779c5be556c9694222ec
|
||||
@@ -1,424 +0,0 @@
|
||||
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
|
||||
<!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN"
|
||||
"http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd">
|
||||
<!-- Generated by graphviz version 12.1.2 (20240928.0832)
|
||||
-->
|
||||
<!-- Title: main Pages: 1 -->
|
||||
<!--zoomable 253 -->
|
||||
|
||||
<svg id="main" version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" xml:space="preserve" onload="init(evt)">
|
||||
|
||||
<style type="text/css"><![CDATA[
|
||||
.node, .edge {opacity: 0.7;}
|
||||
.node.selected, .edge.selected {opacity: 1;}
|
||||
.edge:hover path { stroke: red; }
|
||||
.edge:hover polygon { stroke: red; fill: red; }
|
||||
]]></style>
|
||||
|
||||
<defs>
|
||||
<circle id="rim" cx="0" cy="0" r="7"/>
|
||||
<circle id="rim2" cx="0" cy="0" r="3.5"/>
|
||||
<g id="zoomPlus">
|
||||
<use xlink:href="#rim" fill="#404040"><set attributeName="fill" to="#808080" begin="zoomplus.mouseover" end="zoomplus.mouseout"/></use>
|
||||
<path d="M-4,0h8M0,-4v8" fill="none" stroke="white" stroke-width="1.5" pointer-events="none"/>
|
||||
</g>
|
||||
<g id="zoomMin">
|
||||
<use xlink:href="#rim" fill="#404040"><set attributeName="fill" to="#808080" begin="zoomminus.mouseover" end="zoomminus.mouseout"/></use>
|
||||
<path d="M-4,0h8" fill="none" stroke="white" stroke-width="1.5" pointer-events="none"/>
|
||||
</g>
|
||||
<g id="arrowUp" transform="translate(30 24)">
|
||||
<use xlink:href="#rim"/>
|
||||
<path pointer-events="none" fill="none" stroke="white" stroke-width="1.5" d="M0,-3.0v7 M-2.5,-0.5L0,-3.0L2.5,-0.5"/>
|
||||
</g>
|
||||
<g id="arrowRight" transform="rotate(90) translate(36 -43)">
|
||||
<use xlink:href="#rim"/>
|
||||
<path pointer-events="none" fill="none" stroke="white" stroke-width="1.5" d="M0,-3.0v7 M-2.5,-0.5L0,-3.0L2.5,-0.5"/>
|
||||
</g>
|
||||
<g id="arrowDown" transform="rotate(180) translate(-30 -48)">
|
||||
<use xlink:href="#rim"/>
|
||||
<path pointer-events="none" fill="none" stroke="white" stroke-width="1.5" d="M0,-3.0v7 M-2.5,-0.5L0,-3.0L2.5,-0.5"/>
|
||||
</g>
|
||||
<g id="arrowLeft" transform="rotate(270) translate(-36 17)">
|
||||
<use xlink:href="#rim"/>
|
||||
<path pointer-events="none" fill="none" stroke="white" stroke-width="1.5" d="M0,-3.0v7 M-2.5,-0.5L0,-3.0L2.5,-0.5"/>
|
||||
</g>
|
||||
<g id="resetDef">
|
||||
<use xlink:href="#rim2" fill="#404040"><set attributeName="fill" to="#808080" begin="reset.mouseover" end="reset.mouseout"/></use>
|
||||
</g>
|
||||
</defs>
|
||||
<script type="application/ecmascript">
|
||||
var viewWidth = 634;
|
||||
var viewHeight = 253;
|
||||
var sectionId = 'dynsection-2';
|
||||
</script>
|
||||
<script type="application/ecmascript" xlink:href="../../svg.min.js"/>
|
||||
<svg id="graph" class="graph">
|
||||
<g id="viewport">
|
||||
<title>main</title>
|
||||
<!-- Node1 -->
|
||||
<g id="Node000001" class="node">
|
||||
<title>Node1</title>
|
||||
<g id="a_Node000001"><a xlink:title="Main function.">
|
||||
<polygon fill="#999999" stroke="#666666" points="37,-174.25 0,-174.25 0,-155 37,-155 37,-174.25"/>
|
||||
<text text-anchor="middle" x="18.5" y="-160.75" font-family="Helvetica,sans-Serif" font-size="10.00">main</text>
|
||||
</a>
|
||||
</g>
|
||||
</g>
|
||||
<!-- Node2 -->
|
||||
<g id="Node000002" class="node">
|
||||
<title>Node2</title>
|
||||
<g id="a_Node000002"><a xlink:href="../../d3/db2/boyer__moore_8cpp.html#a483bb8ccf42aaf7375a83e91490eda1e" target="_top" xlink:title="Self-test implementations.">
|
||||
<polygon fill="white" stroke="#666666" points="110.75,-174.25 73,-174.25 73,-155 110.75,-155 110.75,-174.25"/>
|
||||
<text text-anchor="middle" x="91.88" y="-160.75" font-family="Helvetica,sans-Serif" font-size="10.00">tests</text>
|
||||
</a>
|
||||
</g>
|
||||
</g>
|
||||
<!-- Node1->Node2 -->
|
||||
<g id="edge1_Node000001_Node000002" class="edge">
|
||||
<title>Node1->Node2</title>
|
||||
<g id="a_edge1_Node000001_Node000002"><a xlink:title=" ">
|
||||
<path fill="none" stroke="#63b8ff" d="M37.14,-164.62C44.55,-164.62 53.37,-164.62 61.69,-164.62"/>
|
||||
<polygon fill="#63b8ff" stroke="#63b8ff" points="61.43,-168.13 71.43,-164.63 61.43,-161.13 61.43,-168.13"/>
|
||||
</a>
|
||||
</g>
|
||||
</g>
|
||||
<!-- Node3 -->
|
||||
<g id="Node000003" class="node">
|
||||
<title>Node3</title>
|
||||
<g id="a_Node000003"><a xlink:href="../../d3/db2/boyer__moore_8cpp.html#acb8f69e7901ee7459d98bd4b9dda79d9" target="_top" xlink:title="A test case in which we search for every appearance of the word 'and'.">
|
||||
<polygon fill="white" stroke="#666666" points="200.25,-193.25 146.75,-193.25 146.75,-174 200.25,-174 200.25,-193.25"/>
|
||||
<text text-anchor="middle" x="173.5" y="-179.75" font-family="Helvetica,sans-Serif" font-size="10.00">and_test</text>
|
||||
</a>
|
||||
</g>
|
||||
</g>
|
||||
<!-- Node2->Node3 -->
|
||||
<g id="edge2_Node000002_Node000003" class="edge">
|
||||
<title>Node2->Node3</title>
|
||||
<g id="a_edge2_Node000002_Node000003"><a xlink:title=" ">
|
||||
<path fill="none" stroke="#63b8ff" d="M110.94,-168.94C118.22,-170.67 126.89,-172.74 135.39,-174.77"/>
|
||||
<polygon fill="#63b8ff" stroke="#63b8ff" points="134.34,-178.12 144.88,-177.03 135.96,-171.31 134.34,-178.12"/>
|
||||
</a>
|
||||
</g>
|
||||
</g>
|
||||
<!-- Node14 -->
|
||||
<g id="Node000014" class="node">
|
||||
<title>Node14</title>
|
||||
<g id="a_Node000014"><a xlink:href="../../d3/db2/boyer__moore_8cpp.html#ac8fac0dd4b19973da103a434143a16d2" target="_top" xlink:title="A test case in which we search for every appearance of the word 'pat'.">
|
||||
<polygon fill="white" stroke="#666666" points="199.12,-156.25 147.88,-156.25 147.88,-137 199.12,-137 199.12,-156.25"/>
|
||||
<text text-anchor="middle" x="173.5" y="-142.75" font-family="Helvetica,sans-Serif" font-size="10.00">pat_test</text>
|
||||
</a>
|
||||
</g>
|
||||
</g>
|
||||
<!-- Node2->Node14 -->
|
||||
<g id="edge18_Node000002_Node000014" class="edge">
|
||||
<title>Node2->Node14</title>
|
||||
<g id="a_edge18_Node000002_Node000014"><a xlink:title=" ">
|
||||
<path fill="none" stroke="#63b8ff" d="M110.94,-160.54C118.56,-158.82 127.7,-156.75 136.58,-154.74"/>
|
||||
<polygon fill="#63b8ff" stroke="#63b8ff" points="137.1,-158.22 146.09,-152.6 135.56,-151.39 137.1,-158.22"/>
|
||||
</a>
|
||||
</g>
|
||||
</g>
|
||||
<!-- Node4 -->
|
||||
<g id="Node000004" class="node">
|
||||
<title>Node4</title>
|
||||
<g id="a_Node000004"><a xlink:href="../../d0/dbc/namespacestrings_1_1boyer__moore.html#a0b165af1dc341289fd705be4c67728f8" target="_top" xlink:title="A function that initializes pattern.">
|
||||
<polygon fill="white" stroke="#666666" points="343.75,-158.88 236.25,-158.88 236.25,-128.38 343.75,-128.38 343.75,-158.88"/>
|
||||
<text text-anchor="start" x="244.25" y="-145.38" font-family="Helvetica,sans-Serif" font-size="10.00">strings::boyer_moore</text>
|
||||
<text text-anchor="middle" x="290" y="-134.12" font-family="Helvetica,sans-Serif" font-size="10.00">::init_pattern</text>
|
||||
</a>
|
||||
</g>
|
||||
</g>
|
||||
<!-- Node3->Node4 -->
|
||||
<g id="edge3_Node000003_Node000004" class="edge">
|
||||
<title>Node3->Node4</title>
|
||||
<g id="a_edge3_Node000003_Node000004"><a xlink:title=" ">
|
||||
<path fill="none" stroke="#63b8ff" d="M200.48,-174.55C210.38,-171.09 222.08,-167 233.68,-162.95"/>
|
||||
<polygon fill="#63b8ff" stroke="#63b8ff" points="234.53,-166.36 242.82,-159.76 232.22,-159.75 234.53,-166.36"/>
|
||||
</a>
|
||||
</g>
|
||||
</g>
|
||||
<!-- Node9 -->
|
||||
<g id="Node000009" class="node">
|
||||
<title>Node9</title>
|
||||
<g id="a_Node000009"><a xlink:href="../../d0/dbc/namespacestrings_1_1boyer__moore.html#a056122c8fe8fb0f5fca6428d3f7b5c3a" target="_top" xlink:title="Check if pat is prefix of str.">
|
||||
<polygon fill="white" stroke="#666666" points="343.75,-244.88 236.25,-244.88 236.25,-214.38 343.75,-214.38 343.75,-244.88"/>
|
||||
<text text-anchor="start" x="244.25" y="-231.38" font-family="Helvetica,sans-Serif" font-size="10.00">strings::boyer_moore</text>
|
||||
<text text-anchor="middle" x="290" y="-220.12" font-family="Helvetica,sans-Serif" font-size="10.00">::is_prefix</text>
|
||||
</a>
|
||||
</g>
|
||||
</g>
|
||||
<!-- Node3->Node9 -->
|
||||
<g id="edge11_Node000003_Node000009" class="edge">
|
||||
<title>Node3->Node9</title>
|
||||
<g id="a_edge11_Node000003_Node000009"><a xlink:title=" ">
|
||||
<path fill="none" stroke="#63b8ff" d="M199.63,-193.72C211.38,-198.44 225.8,-204.23 239.6,-209.78"/>
|
||||
<polygon fill="#63b8ff" stroke="#63b8ff" points="237.99,-212.9 248.57,-213.38 240.6,-206.41 237.99,-212.9"/>
|
||||
</a>
|
||||
</g>
|
||||
</g>
|
||||
<!-- Node10 -->
|
||||
<g id="Node000010" class="node">
|
||||
<title>Node10</title>
|
||||
<g id="a_Node000010"><a xlink:href="../../d0/dbc/namespacestrings_1_1boyer__moore.html#a15703b553faed0d28202c10808cf9738" target="_top" xlink:title="A function that implements Boyer-Moore's algorithm.">
|
||||
<polygon fill="white" stroke="#666666" points="343.75,-108.88 236.25,-108.88 236.25,-78.38 343.75,-78.38 343.75,-108.88"/>
|
||||
<text text-anchor="start" x="244.25" y="-95.38" font-family="Helvetica,sans-Serif" font-size="10.00">strings::boyer_moore</text>
|
||||
<text text-anchor="middle" x="290" y="-84.12" font-family="Helvetica,sans-Serif" font-size="10.00">::search</text>
|
||||
</a>
|
||||
</g>
|
||||
</g>
|
||||
<!-- Node3->Node10 -->
|
||||
<g id="edge12_Node000003_Node000010" class="edge">
|
||||
<title>Node3->Node10</title>
|
||||
<g id="a_edge12_Node000003_Node000010"><a xlink:title=" ">
|
||||
<path fill="none" stroke="#63b8ff" d="M190.33,-173.67C193.75,-171.22 197.24,-168.48 200.25,-165.62 219.1,-147.77 216.1,-136 236.25,-119.62 238.15,-118.08 240.16,-116.6 242.23,-115.18"/>
|
||||
<polygon fill="#63b8ff" stroke="#63b8ff" points="243.7,-118.39 250.38,-110.16 240.03,-112.43 243.7,-118.39"/>
|
||||
</a>
|
||||
</g>
|
||||
</g>
|
||||
<!-- Node13 -->
|
||||
<g id="Node000013" class="node">
|
||||
<title>Node13</title>
|
||||
<g id="a_Node000013"><a target="_blank" xlink:href="http://en.cppreference.com/w/cpp/container/vector/size.html#" xlink:title=" ">
|
||||
<polygon fill="white" stroke="#666666" points="333.25,-196.25 246.75,-196.25 246.75,-177 333.25,-177 333.25,-196.25"/>
|
||||
<text text-anchor="middle" x="290" y="-182.75" font-family="Helvetica,sans-Serif" font-size="10.00">std::vector::size</text>
|
||||
</a>
|
||||
</g>
|
||||
</g>
|
||||
<!-- Node3->Node13 -->
|
||||
<g id="edge17_Node000003_Node000013" class="edge">
|
||||
<title>Node3->Node13</title>
|
||||
<g id="a_edge17_Node000003_Node000013"><a xlink:title=" ">
|
||||
<path fill="none" stroke="#63b8ff" d="M200.48,-184.31C210.78,-184.58 223.03,-184.9 235.08,-185.21"/>
|
||||
<polygon fill="#63b8ff" stroke="#63b8ff" points="234.9,-188.71 244.99,-185.47 235.09,-181.71 234.9,-188.71"/>
|
||||
</a>
|
||||
</g>
|
||||
</g>
|
||||
<!-- Node5 -->
|
||||
<g id="Node000005" class="node">
|
||||
<title>Node5</title>
|
||||
<g id="a_Node000005"><a xlink:href="../../d0/dbc/namespacestrings_1_1boyer__moore.html#a2f6688c9bb3e692297a3aa09cebc1c00" target="_top" xlink:title="A function that preprocess the bad char table.">
|
||||
<polygon fill="white" stroke="#666666" points="491.38,-209.88 383.88,-209.88 383.88,-179.38 491.38,-179.38 491.38,-209.88"/>
|
||||
<text text-anchor="start" x="391.88" y="-196.38" font-family="Helvetica,sans-Serif" font-size="10.00">strings::boyer_moore</text>
|
||||
<text text-anchor="middle" x="437.62" y="-185.12" font-family="Helvetica,sans-Serif" font-size="10.00">::init_bad_char</text>
|
||||
</a>
|
||||
</g>
|
||||
</g>
|
||||
<!-- Node4->Node5 -->
|
||||
<g id="edge4_Node000004_Node000005" class="edge">
|
||||
<title>Node4->Node5</title>
|
||||
<g id="a_edge4_Node000004_Node000005"><a xlink:title=" ">
|
||||
<path fill="none" stroke="#63b8ff" d="M335.88,-159.34C350.2,-164.36 366.23,-169.97 381.21,-175.22"/>
|
||||
<polygon fill="#63b8ff" stroke="#63b8ff" points="379.87,-178.46 390.46,-178.46 382.18,-171.85 379.87,-178.46"/>
|
||||
</a>
|
||||
</g>
|
||||
</g>
|
||||
<!-- Node8 -->
|
||||
<g id="Node000008" class="node">
|
||||
<title>Node8</title>
|
||||
<g id="a_Node000008"><a xlink:href="../../d0/dbc/namespacestrings_1_1boyer__moore.html#aa709cf7fca02b7d3e1888423d5f739a1" target="_top" xlink:title="A function that preprocess the good suffix thable.">
|
||||
<polygon fill="white" stroke="#666666" points="491.38,-160.88 383.88,-160.88 383.88,-130.38 491.38,-130.38 491.38,-160.88"/>
|
||||
<text text-anchor="start" x="391.88" y="-147.38" font-family="Helvetica,sans-Serif" font-size="10.00">strings::boyer_moore</text>
|
||||
<text text-anchor="middle" x="437.62" y="-136.12" font-family="Helvetica,sans-Serif" font-size="10.00">::init_good_suffix</text>
|
||||
</a>
|
||||
</g>
|
||||
</g>
|
||||
<!-- Node4->Node8 -->
|
||||
<g id="edge7_Node000004_Node000008" class="edge">
|
||||
<title>Node4->Node8</title>
|
||||
<g id="a_edge7_Node000004_Node000008"><a xlink:title=" ">
|
||||
<path fill="none" stroke="#63b8ff" d="M343.99,-144.35C353.12,-144.48 362.71,-144.61 372.11,-144.74"/>
|
||||
<polygon fill="#63b8ff" stroke="#63b8ff" points="371.87,-148.24 381.92,-144.87 371.97,-141.24 371.87,-148.24"/>
|
||||
</a>
|
||||
</g>
|
||||
</g>
|
||||
<!-- Node6 -->
|
||||
<g id="Node000006" class="node">
|
||||
<title>Node6</title>
|
||||
<g id="a_Node000006"><a target="_blank" xlink:href="http://en.cppreference.com/w/cpp/string/basic_string/size.html#" xlink:title=" ">
|
||||
<polygon fill="white" stroke="#666666" points="624.75,-155.25 533,-155.25 533,-136 624.75,-136 624.75,-155.25"/>
|
||||
<text text-anchor="middle" x="578.88" y="-141.75" font-family="Helvetica,sans-Serif" font-size="10.00">std::string::length</text>
|
||||
</a>
|
||||
</g>
|
||||
</g>
|
||||
<!-- Node5->Node6 -->
|
||||
<g id="edge5_Node000005_Node000006" class="edge">
|
||||
<title>Node5->Node6</title>
|
||||
<g id="a_edge5_Node000005_Node000006"><a xlink:title=" ">
|
||||
<path fill="none" stroke="#63b8ff" d="M483.07,-178.99C500.83,-172.74 521.11,-165.6 538.35,-159.53"/>
|
||||
<polygon fill="#63b8ff" stroke="#63b8ff" points="539.48,-162.85 547.75,-156.22 537.16,-156.24 539.48,-162.85"/>
|
||||
</a>
|
||||
</g>
|
||||
</g>
|
||||
<!-- Node7 -->
|
||||
<g id="Node000007" class="node">
|
||||
<title>Node7</title>
|
||||
<g id="a_Node000007"><a target="_blank" xlink:href="http://en.cppreference.com/w/cpp/container/vector/resize.html#" xlink:title=" ">
|
||||
<polygon fill="white" stroke="#666666" points="626.25,-198.25 531.5,-198.25 531.5,-179 626.25,-179 626.25,-198.25"/>
|
||||
<text text-anchor="middle" x="578.88" y="-184.75" font-family="Helvetica,sans-Serif" font-size="10.00">std::vector::resize</text>
|
||||
</a>
|
||||
</g>
|
||||
</g>
|
||||
<!-- Node5->Node7 -->
|
||||
<g id="edge6_Node000005_Node000007" class="edge">
|
||||
<title>Node5->Node7</title>
|
||||
<g id="a_edge6_Node000005_Node000007"><a xlink:title=" ">
|
||||
<path fill="none" stroke="#63b8ff" d="M491.67,-192.34C500.96,-191.94 510.66,-191.52 520.07,-191.12"/>
|
||||
<polygon fill="#63b8ff" stroke="#63b8ff" points="520,-194.62 529.84,-190.69 519.7,-187.63 520,-194.62"/>
|
||||
</a>
|
||||
</g>
|
||||
</g>
|
||||
<!-- Node8->Node6 -->
|
||||
<g id="edge8_Node000008_Node000006" class="edge">
|
||||
<title>Node8->Node6</title>
|
||||
<g id="a_edge8_Node000008_Node000006"><a xlink:title=" ">
|
||||
<path fill="none" stroke="#63b8ff" d="M491.67,-139.05C501.39,-138.84 511.57,-138.82 521.39,-138.98"/>
|
||||
<polygon fill="#63b8ff" stroke="#63b8ff" points="521.1,-142.48 531.19,-139.22 521.28,-135.48 521.1,-142.48"/>
|
||||
</a>
|
||||
</g>
|
||||
</g>
|
||||
<!-- Node8->Node6 -->
|
||||
<g id="edge10_Node000008_Node000006" class="edge">
|
||||
<title>Node8->Node6</title>
|
||||
<g id="a_edge10_Node000008_Node000006"><a xlink:title=" ">
|
||||
<path fill="none" stroke="#63b8ff" d="M491.67,-152.2C501.39,-152.41 511.57,-152.43 521.39,-152.27"/>
|
||||
<polygon fill="#63b8ff" stroke="#63b8ff" points="521.28,-155.77 531.19,-152.03 521.1,-148.77 521.28,-155.77"/>
|
||||
</a>
|
||||
</g>
|
||||
</g>
|
||||
<!-- Node8->Node7 -->
|
||||
<g id="edge9_Node000008_Node000007" class="edge">
|
||||
<title>Node8->Node7</title>
|
||||
<g id="a_edge9_Node000008_Node000007"><a xlink:title=" ">
|
||||
<path fill="none" stroke="#63b8ff" d="M489.29,-161.27C504.16,-165.86 520.29,-170.84 534.65,-175.28"/>
|
||||
<polygon fill="#63b8ff" stroke="#63b8ff" points="533.2,-178.49 543.79,-178.1 535.27,-171.81 533.2,-178.49"/>
|
||||
</a>
|
||||
</g>
|
||||
</g>
|
||||
<!-- Node10->Node6 -->
|
||||
<g id="edge13_Node000010_Node000006" class="edge">
|
||||
<title>Node10->Node6</title>
|
||||
<g id="a_edge13_Node000010_Node000006"><a xlink:title=" ">
|
||||
<path fill="none" stroke="#63b8ff" d="M343.91,-91.36C385.42,-94.21 444.5,-101.77 495.5,-112.62 516.33,-117.06 539.6,-124.03 556.07,-130.89"/>
|
||||
<polygon fill="#63b8ff" stroke="#63b8ff" points="554.36,-133.95 564.91,-134.95 557.28,-127.59 554.36,-133.95"/>
|
||||
</a>
|
||||
</g>
|
||||
</g>
|
||||
<!-- Node10->Node6 -->
|
||||
<g id="edge16_Node000010_Node000006" class="edge">
|
||||
<title>Node10->Node6</title>
|
||||
<g id="a_edge16_Node000010_Node000006"><a xlink:title=" ">
|
||||
<path fill="none" stroke="#63b8ff" d="M343.91,-106.05C385.42,-112.21 444.5,-119.77 495.5,-130.62 504.1,-132.46 513.12,-134.72 521.91,-137.01"/>
|
||||
<polygon fill="#63b8ff" stroke="#63b8ff" points="520.84,-140.35 531.4,-139.51 522.62,-133.58 520.84,-140.35"/>
|
||||
</a>
|
||||
</g>
|
||||
</g>
|
||||
<!-- Node11 -->
|
||||
<g id="Node000011" class="node">
|
||||
<title>Node11</title>
|
||||
<g id="a_Node000011"><a target="_blank" xlink:href="http://en.cppreference.com/w/cpp/algorithm/max.html#" xlink:title=" ">
|
||||
<polygon fill="white" stroke="#666666" points="464.75,-56.25 410.5,-56.25 410.5,-37 464.75,-37 464.75,-56.25"/>
|
||||
<text text-anchor="middle" x="437.62" y="-42.75" font-family="Helvetica,sans-Serif" font-size="10.00">std::max</text>
|
||||
</a>
|
||||
</g>
|
||||
</g>
|
||||
<!-- Node10->Node11 -->
|
||||
<g id="edge14_Node000010_Node000011" class="edge">
|
||||
<title>Node10->Node11</title>
|
||||
<g id="a_edge14_Node000010_Node000011"><a xlink:title=" ">
|
||||
<path fill="none" stroke="#63b8ff" d="M339.49,-77.97C359.09,-71.65 381.34,-64.47 399.6,-58.58"/>
|
||||
<polygon fill="#63b8ff" stroke="#63b8ff" points="400.51,-61.96 408.95,-55.56 398.36,-55.3 400.51,-61.96"/>
|
||||
</a>
|
||||
</g>
|
||||
</g>
|
||||
<!-- Node12 -->
|
||||
<g id="Node000012" class="node">
|
||||
<title>Node12</title>
|
||||
<g id="a_Node000012"><a target="_blank" xlink:href="http://en.cppreference.com/w/cpp/container/vector/push_back.html#" xlink:title=" ">
|
||||
<polygon fill="white" stroke="#666666" points="495.5,-19.25 379.75,-19.25 379.75,0 495.5,0 495.5,-19.25"/>
|
||||
<text text-anchor="middle" x="437.62" y="-5.75" font-family="Helvetica,sans-Serif" font-size="10.00">std::vector::push_back</text>
|
||||
</a>
|
||||
</g>
|
||||
</g>
|
||||
<!-- Node10->Node12 -->
|
||||
<g id="edge15_Node000010_Node000012" class="edge">
|
||||
<title>Node10->Node12</title>
|
||||
<g id="a_edge15_Node000010_Node000012"><a xlink:title=" ">
|
||||
<path fill="none" stroke="#63b8ff" d="M308.19,-78.09C325.27,-63.35 352.74,-41.45 379.75,-27.62 382.42,-26.26 385.22,-24.97 388.08,-23.76"/>
|
||||
<polygon fill="#63b8ff" stroke="#63b8ff" points="389.1,-27.11 397.18,-20.26 386.59,-20.58 389.1,-27.11"/>
|
||||
</a>
|
||||
</g>
|
||||
</g>
|
||||
<!-- Node14->Node4 -->
|
||||
<g id="edge19_Node000014_Node000004" class="edge">
|
||||
<title>Node14->Node4</title>
|
||||
<g id="a_edge19_Node000014_Node000004"><a xlink:title=" ">
|
||||
<path fill="none" stroke="#63b8ff" d="M199.34,-145.97C206.93,-145.78 215.64,-145.55 224.6,-145.31"/>
|
||||
<polygon fill="#63b8ff" stroke="#63b8ff" points="224.58,-148.81 234.48,-145.05 224.4,-141.82 224.58,-148.81"/>
|
||||
</a>
|
||||
</g>
|
||||
</g>
|
||||
<!-- Node14->Node9 -->
|
||||
<g id="edge20_Node000014_Node000009" class="edge">
|
||||
<title>Node14->Node9</title>
|
||||
<g id="a_edge20_Node000014_Node000009"><a xlink:title=" ">
|
||||
<path fill="none" stroke="#63b8ff" d="M190.21,-156.71C193.64,-159.15 197.16,-161.86 200.25,-164.62 218.32,-180.8 216.78,-191.17 236.25,-205.62 237.41,-206.49 238.6,-207.32 239.83,-208.14"/>
|
||||
<polygon fill="#63b8ff" stroke="#63b8ff" points="237.94,-211.09 248.32,-213.21 241.53,-205.08 237.94,-211.09"/>
|
||||
</a>
|
||||
</g>
|
||||
</g>
|
||||
<!-- Node14->Node10 -->
|
||||
<g id="edge21_Node000014_Node000010" class="edge">
|
||||
<title>Node14->Node10</title>
|
||||
<g id="a_edge21_Node000014_Node000010"><a xlink:title=" ">
|
||||
<path fill="none" stroke="#63b8ff" d="M196.31,-136.53C210.06,-130.16 228.32,-121.71 244.99,-114"/>
|
||||
<polygon fill="#63b8ff" stroke="#63b8ff" points="246.13,-117.32 253.74,-109.95 243.19,-110.97 246.13,-117.32"/>
|
||||
</a>
|
||||
</g>
|
||||
</g>
|
||||
<!-- Node14->Node13 -->
|
||||
<g id="edge22_Node000014_Node000013" class="edge">
|
||||
<title>Node14->Node13</title>
|
||||
<g id="a_edge22_Node000014_Node000013"><a xlink:title=" ">
|
||||
<path fill="none" stroke="#63b8ff" d="M199.34,-155.3C214.02,-160.43 232.93,-167.04 249.6,-172.86"/>
|
||||
<polygon fill="#63b8ff" stroke="#63b8ff" points="248.14,-176.06 258.73,-176.05 250.45,-169.45 248.14,-176.06"/>
|
||||
</a>
|
||||
</g>
|
||||
</g>
|
||||
</g>
|
||||
</svg>
|
||||
|
||||
<g id="navigator" transform="translate(0 0)" fill="#404254">
|
||||
<rect fill="#f2f5e9" fill-opacity="0.5" stroke="#606060" stroke-width=".5" x="0" y="0" width="60" height="60"/>
|
||||
<use id="zoomplus" xlink:href="#zoomPlus" x="17" y="9" onmousedown="handleZoom(evt,'in')"/>
|
||||
<use id="zoomminus" xlink:href="#zoomMin" x="42" y="9" onmousedown="handleZoom(evt,'out')"/>
|
||||
<use id="reset" xlink:href="#resetDef" x="30" y="36" onmousedown="handleReset()"/>
|
||||
<use id="arrowup" xlink:href="#arrowUp" x="0" y="0" onmousedown="handlePan(0,-1)"/>
|
||||
<use id="arrowright" xlink:href="#arrowRight" x="0" y="0" onmousedown="handlePan(1,0)"/>
|
||||
<use id="arrowdown" xlink:href="#arrowDown" x="0" y="0" onmousedown="handlePan(0,1)"/>
|
||||
<use id="arrowleft" xlink:href="#arrowLeft" x="0" y="0" onmousedown="handlePan(-1,0)"/>
|
||||
</g>
|
||||
<svg viewBox="0 0 15 15" width="100%" height="30px" preserveAspectRatio="xMaxYMin meet">
|
||||
<g id="arrow_out" transform="scale(0.3 0.3)">
|
||||
<a xlink:href="boyer__moore_8cpp_ae66f6b31b5ad750f1fe042a706a4e3d4_cgraph_org.svg" target="_base">
|
||||
<rect id="button" ry="5" rx="5" y="6" x="6" height="38" width="38"
|
||||
fill="#f2f5e9" fill-opacity="0.5" stroke="#606060" stroke-width="1.0"/>
|
||||
<path id="arrow"
|
||||
d="M 11.500037,31.436501 C 11.940474,20.09759 22.043105,11.32322 32.158766,21.979434 L 37.068811,17.246167 C 37.068811,17.246167 37.088388,32 37.088388,32 L 22.160133,31.978069 C 22.160133,31.978069 26.997745,27.140456 26.997745,27.140456 C 18.528582,18.264221 13.291696,25.230495 11.500037,31.436501 z"
|
||||
style="fill:#404040;"/>
|
||||
</a>
|
||||
</g>
|
||||
</svg>
|
||||
|
||||
<style type='text/css'>
|
||||
<![CDATA[
|
||||
[data-mouse-over-selected='false'] { opacity: 0.7; }
|
||||
[data-mouse-over-selected='true'] { opacity: 1.0; }
|
||||
]]>
|
||||
</style>
|
||||
<script type="application/ecmascript"><![CDATA[
|
||||
document.addEventListener('DOMContentLoaded', (event) => {
|
||||
highlightEdges();
|
||||
highlightAdjacentNodes();
|
||||
});
|
||||
]]></script>
|
||||
</svg>
|
||||
|
Before Width: | Height: | Size: 20 KiB |
@@ -1,341 +0,0 @@
|
||||
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
|
||||
<!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN"
|
||||
"http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd">
|
||||
<!-- Generated by graphviz version 12.1.2 (20240928.0832)
|
||||
-->
|
||||
<!-- Title: main Pages: 1 -->
|
||||
<svg width="634pt" height="253pt"
|
||||
viewBox="0.00 0.00 634.25 252.88" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink">
|
||||
<g id="graph0" class="graph" transform="scale(1 1) rotate(0) translate(4 248.88)">
|
||||
<title>main</title>
|
||||
<!-- Node1 -->
|
||||
<g id="Node000001" class="node">
|
||||
<title>Node1</title>
|
||||
<g id="a_Node000001"><a xlink:title="Main function.">
|
||||
<polygon fill="#999999" stroke="#666666" points="37,-174.25 0,-174.25 0,-155 37,-155 37,-174.25"/>
|
||||
<text text-anchor="middle" x="18.5" y="-160.75" font-family="Helvetica,sans-Serif" font-size="10.00">main</text>
|
||||
</a>
|
||||
</g>
|
||||
</g>
|
||||
<!-- Node2 -->
|
||||
<g id="Node000002" class="node">
|
||||
<title>Node2</title>
|
||||
<g id="a_Node000002"><a xlink:href="../../d3/db2/boyer__moore_8cpp.html#a483bb8ccf42aaf7375a83e91490eda1e" target="_top" xlink:title="Self-test implementations.">
|
||||
<polygon fill="white" stroke="#666666" points="110.75,-174.25 73,-174.25 73,-155 110.75,-155 110.75,-174.25"/>
|
||||
<text text-anchor="middle" x="91.88" y="-160.75" font-family="Helvetica,sans-Serif" font-size="10.00">tests</text>
|
||||
</a>
|
||||
</g>
|
||||
</g>
|
||||
<!-- Node1->Node2 -->
|
||||
<g id="edge1_Node000001_Node000002" class="edge">
|
||||
<title>Node1->Node2</title>
|
||||
<g id="a_edge1_Node000001_Node000002"><a xlink:title=" ">
|
||||
<path fill="none" stroke="#63b8ff" d="M37.14,-164.62C44.55,-164.62 53.37,-164.62 61.69,-164.62"/>
|
||||
<polygon fill="#63b8ff" stroke="#63b8ff" points="61.43,-168.13 71.43,-164.63 61.43,-161.13 61.43,-168.13"/>
|
||||
</a>
|
||||
</g>
|
||||
</g>
|
||||
<!-- Node3 -->
|
||||
<g id="Node000003" class="node">
|
||||
<title>Node3</title>
|
||||
<g id="a_Node000003"><a xlink:href="../../d3/db2/boyer__moore_8cpp.html#acb8f69e7901ee7459d98bd4b9dda79d9" target="_top" xlink:title="A test case in which we search for every appearance of the word 'and'.">
|
||||
<polygon fill="white" stroke="#666666" points="200.25,-193.25 146.75,-193.25 146.75,-174 200.25,-174 200.25,-193.25"/>
|
||||
<text text-anchor="middle" x="173.5" y="-179.75" font-family="Helvetica,sans-Serif" font-size="10.00">and_test</text>
|
||||
</a>
|
||||
</g>
|
||||
</g>
|
||||
<!-- Node2->Node3 -->
|
||||
<g id="edge2_Node000002_Node000003" class="edge">
|
||||
<title>Node2->Node3</title>
|
||||
<g id="a_edge2_Node000002_Node000003"><a xlink:title=" ">
|
||||
<path fill="none" stroke="#63b8ff" d="M110.94,-168.94C118.22,-170.67 126.89,-172.74 135.39,-174.77"/>
|
||||
<polygon fill="#63b8ff" stroke="#63b8ff" points="134.34,-178.12 144.88,-177.03 135.96,-171.31 134.34,-178.12"/>
|
||||
</a>
|
||||
</g>
|
||||
</g>
|
||||
<!-- Node14 -->
|
||||
<g id="Node000014" class="node">
|
||||
<title>Node14</title>
|
||||
<g id="a_Node000014"><a xlink:href="../../d3/db2/boyer__moore_8cpp.html#ac8fac0dd4b19973da103a434143a16d2" target="_top" xlink:title="A test case in which we search for every appearance of the word 'pat'.">
|
||||
<polygon fill="white" stroke="#666666" points="199.12,-156.25 147.88,-156.25 147.88,-137 199.12,-137 199.12,-156.25"/>
|
||||
<text text-anchor="middle" x="173.5" y="-142.75" font-family="Helvetica,sans-Serif" font-size="10.00">pat_test</text>
|
||||
</a>
|
||||
</g>
|
||||
</g>
|
||||
<!-- Node2->Node14 -->
|
||||
<g id="edge18_Node000002_Node000014" class="edge">
|
||||
<title>Node2->Node14</title>
|
||||
<g id="a_edge18_Node000002_Node000014"><a xlink:title=" ">
|
||||
<path fill="none" stroke="#63b8ff" d="M110.94,-160.54C118.56,-158.82 127.7,-156.75 136.58,-154.74"/>
|
||||
<polygon fill="#63b8ff" stroke="#63b8ff" points="137.1,-158.22 146.09,-152.6 135.56,-151.39 137.1,-158.22"/>
|
||||
</a>
|
||||
</g>
|
||||
</g>
|
||||
<!-- Node4 -->
|
||||
<g id="Node000004" class="node">
|
||||
<title>Node4</title>
|
||||
<g id="a_Node000004"><a xlink:href="../../d0/dbc/namespacestrings_1_1boyer__moore.html#a0b165af1dc341289fd705be4c67728f8" target="_top" xlink:title="A function that initializes pattern.">
|
||||
<polygon fill="white" stroke="#666666" points="343.75,-158.88 236.25,-158.88 236.25,-128.38 343.75,-128.38 343.75,-158.88"/>
|
||||
<text text-anchor="start" x="244.25" y="-145.38" font-family="Helvetica,sans-Serif" font-size="10.00">strings::boyer_moore</text>
|
||||
<text text-anchor="middle" x="290" y="-134.12" font-family="Helvetica,sans-Serif" font-size="10.00">::init_pattern</text>
|
||||
</a>
|
||||
</g>
|
||||
</g>
|
||||
<!-- Node3->Node4 -->
|
||||
<g id="edge3_Node000003_Node000004" class="edge">
|
||||
<title>Node3->Node4</title>
|
||||
<g id="a_edge3_Node000003_Node000004"><a xlink:title=" ">
|
||||
<path fill="none" stroke="#63b8ff" d="M200.48,-174.55C210.38,-171.09 222.08,-167 233.68,-162.95"/>
|
||||
<polygon fill="#63b8ff" stroke="#63b8ff" points="234.53,-166.36 242.82,-159.76 232.22,-159.75 234.53,-166.36"/>
|
||||
</a>
|
||||
</g>
|
||||
</g>
|
||||
<!-- Node9 -->
|
||||
<g id="Node000009" class="node">
|
||||
<title>Node9</title>
|
||||
<g id="a_Node000009"><a xlink:href="../../d0/dbc/namespacestrings_1_1boyer__moore.html#a056122c8fe8fb0f5fca6428d3f7b5c3a" target="_top" xlink:title="Check if pat is prefix of str.">
|
||||
<polygon fill="white" stroke="#666666" points="343.75,-244.88 236.25,-244.88 236.25,-214.38 343.75,-214.38 343.75,-244.88"/>
|
||||
<text text-anchor="start" x="244.25" y="-231.38" font-family="Helvetica,sans-Serif" font-size="10.00">strings::boyer_moore</text>
|
||||
<text text-anchor="middle" x="290" y="-220.12" font-family="Helvetica,sans-Serif" font-size="10.00">::is_prefix</text>
|
||||
</a>
|
||||
</g>
|
||||
</g>
|
||||
<!-- Node3->Node9 -->
|
||||
<g id="edge11_Node000003_Node000009" class="edge">
|
||||
<title>Node3->Node9</title>
|
||||
<g id="a_edge11_Node000003_Node000009"><a xlink:title=" ">
|
||||
<path fill="none" stroke="#63b8ff" d="M199.63,-193.72C211.38,-198.44 225.8,-204.23 239.6,-209.78"/>
|
||||
<polygon fill="#63b8ff" stroke="#63b8ff" points="237.99,-212.9 248.57,-213.38 240.6,-206.41 237.99,-212.9"/>
|
||||
</a>
|
||||
</g>
|
||||
</g>
|
||||
<!-- Node10 -->
|
||||
<g id="Node000010" class="node">
|
||||
<title>Node10</title>
|
||||
<g id="a_Node000010"><a xlink:href="../../d0/dbc/namespacestrings_1_1boyer__moore.html#a15703b553faed0d28202c10808cf9738" target="_top" xlink:title="A function that implements Boyer-Moore's algorithm.">
|
||||
<polygon fill="white" stroke="#666666" points="343.75,-108.88 236.25,-108.88 236.25,-78.38 343.75,-78.38 343.75,-108.88"/>
|
||||
<text text-anchor="start" x="244.25" y="-95.38" font-family="Helvetica,sans-Serif" font-size="10.00">strings::boyer_moore</text>
|
||||
<text text-anchor="middle" x="290" y="-84.12" font-family="Helvetica,sans-Serif" font-size="10.00">::search</text>
|
||||
</a>
|
||||
</g>
|
||||
</g>
|
||||
<!-- Node3->Node10 -->
|
||||
<g id="edge12_Node000003_Node000010" class="edge">
|
||||
<title>Node3->Node10</title>
|
||||
<g id="a_edge12_Node000003_Node000010"><a xlink:title=" ">
|
||||
<path fill="none" stroke="#63b8ff" d="M190.33,-173.67C193.75,-171.22 197.24,-168.48 200.25,-165.62 219.1,-147.77 216.1,-136 236.25,-119.62 238.15,-118.08 240.16,-116.6 242.23,-115.18"/>
|
||||
<polygon fill="#63b8ff" stroke="#63b8ff" points="243.7,-118.39 250.38,-110.16 240.03,-112.43 243.7,-118.39"/>
|
||||
</a>
|
||||
</g>
|
||||
</g>
|
||||
<!-- Node13 -->
|
||||
<g id="Node000013" class="node">
|
||||
<title>Node13</title>
|
||||
<g id="a_Node000013"><a target="_blank" xlink:href="http://en.cppreference.com/w/cpp/container/vector/size.html#" xlink:title=" ">
|
||||
<polygon fill="white" stroke="#666666" points="333.25,-196.25 246.75,-196.25 246.75,-177 333.25,-177 333.25,-196.25"/>
|
||||
<text text-anchor="middle" x="290" y="-182.75" font-family="Helvetica,sans-Serif" font-size="10.00">std::vector::size</text>
|
||||
</a>
|
||||
</g>
|
||||
</g>
|
||||
<!-- Node3->Node13 -->
|
||||
<g id="edge17_Node000003_Node000013" class="edge">
|
||||
<title>Node3->Node13</title>
|
||||
<g id="a_edge17_Node000003_Node000013"><a xlink:title=" ">
|
||||
<path fill="none" stroke="#63b8ff" d="M200.48,-184.31C210.78,-184.58 223.03,-184.9 235.08,-185.21"/>
|
||||
<polygon fill="#63b8ff" stroke="#63b8ff" points="234.9,-188.71 244.99,-185.47 235.09,-181.71 234.9,-188.71"/>
|
||||
</a>
|
||||
</g>
|
||||
</g>
|
||||
<!-- Node5 -->
|
||||
<g id="Node000005" class="node">
|
||||
<title>Node5</title>
|
||||
<g id="a_Node000005"><a xlink:href="../../d0/dbc/namespacestrings_1_1boyer__moore.html#a2f6688c9bb3e692297a3aa09cebc1c00" target="_top" xlink:title="A function that preprocess the bad char table.">
|
||||
<polygon fill="white" stroke="#666666" points="491.38,-209.88 383.88,-209.88 383.88,-179.38 491.38,-179.38 491.38,-209.88"/>
|
||||
<text text-anchor="start" x="391.88" y="-196.38" font-family="Helvetica,sans-Serif" font-size="10.00">strings::boyer_moore</text>
|
||||
<text text-anchor="middle" x="437.62" y="-185.12" font-family="Helvetica,sans-Serif" font-size="10.00">::init_bad_char</text>
|
||||
</a>
|
||||
</g>
|
||||
</g>
|
||||
<!-- Node4->Node5 -->
|
||||
<g id="edge4_Node000004_Node000005" class="edge">
|
||||
<title>Node4->Node5</title>
|
||||
<g id="a_edge4_Node000004_Node000005"><a xlink:title=" ">
|
||||
<path fill="none" stroke="#63b8ff" d="M335.88,-159.34C350.2,-164.36 366.23,-169.97 381.21,-175.22"/>
|
||||
<polygon fill="#63b8ff" stroke="#63b8ff" points="379.87,-178.46 390.46,-178.46 382.18,-171.85 379.87,-178.46"/>
|
||||
</a>
|
||||
</g>
|
||||
</g>
|
||||
<!-- Node8 -->
|
||||
<g id="Node000008" class="node">
|
||||
<title>Node8</title>
|
||||
<g id="a_Node000008"><a xlink:href="../../d0/dbc/namespacestrings_1_1boyer__moore.html#aa709cf7fca02b7d3e1888423d5f739a1" target="_top" xlink:title="A function that preprocess the good suffix thable.">
|
||||
<polygon fill="white" stroke="#666666" points="491.38,-160.88 383.88,-160.88 383.88,-130.38 491.38,-130.38 491.38,-160.88"/>
|
||||
<text text-anchor="start" x="391.88" y="-147.38" font-family="Helvetica,sans-Serif" font-size="10.00">strings::boyer_moore</text>
|
||||
<text text-anchor="middle" x="437.62" y="-136.12" font-family="Helvetica,sans-Serif" font-size="10.00">::init_good_suffix</text>
|
||||
</a>
|
||||
</g>
|
||||
</g>
|
||||
<!-- Node4->Node8 -->
|
||||
<g id="edge7_Node000004_Node000008" class="edge">
|
||||
<title>Node4->Node8</title>
|
||||
<g id="a_edge7_Node000004_Node000008"><a xlink:title=" ">
|
||||
<path fill="none" stroke="#63b8ff" d="M343.99,-144.35C353.12,-144.48 362.71,-144.61 372.11,-144.74"/>
|
||||
<polygon fill="#63b8ff" stroke="#63b8ff" points="371.87,-148.24 381.92,-144.87 371.97,-141.24 371.87,-148.24"/>
|
||||
</a>
|
||||
</g>
|
||||
</g>
|
||||
<!-- Node6 -->
|
||||
<g id="Node000006" class="node">
|
||||
<title>Node6</title>
|
||||
<g id="a_Node000006"><a target="_blank" xlink:href="http://en.cppreference.com/w/cpp/string/basic_string/size.html#" xlink:title=" ">
|
||||
<polygon fill="white" stroke="#666666" points="624.75,-155.25 533,-155.25 533,-136 624.75,-136 624.75,-155.25"/>
|
||||
<text text-anchor="middle" x="578.88" y="-141.75" font-family="Helvetica,sans-Serif" font-size="10.00">std::string::length</text>
|
||||
</a>
|
||||
</g>
|
||||
</g>
|
||||
<!-- Node5->Node6 -->
|
||||
<g id="edge5_Node000005_Node000006" class="edge">
|
||||
<title>Node5->Node6</title>
|
||||
<g id="a_edge5_Node000005_Node000006"><a xlink:title=" ">
|
||||
<path fill="none" stroke="#63b8ff" d="M483.07,-178.99C500.83,-172.74 521.11,-165.6 538.35,-159.53"/>
|
||||
<polygon fill="#63b8ff" stroke="#63b8ff" points="539.48,-162.85 547.75,-156.22 537.16,-156.24 539.48,-162.85"/>
|
||||
</a>
|
||||
</g>
|
||||
</g>
|
||||
<!-- Node7 -->
|
||||
<g id="Node000007" class="node">
|
||||
<title>Node7</title>
|
||||
<g id="a_Node000007"><a target="_blank" xlink:href="http://en.cppreference.com/w/cpp/container/vector/resize.html#" xlink:title=" ">
|
||||
<polygon fill="white" stroke="#666666" points="626.25,-198.25 531.5,-198.25 531.5,-179 626.25,-179 626.25,-198.25"/>
|
||||
<text text-anchor="middle" x="578.88" y="-184.75" font-family="Helvetica,sans-Serif" font-size="10.00">std::vector::resize</text>
|
||||
</a>
|
||||
</g>
|
||||
</g>
|
||||
<!-- Node5->Node7 -->
|
||||
<g id="edge6_Node000005_Node000007" class="edge">
|
||||
<title>Node5->Node7</title>
|
||||
<g id="a_edge6_Node000005_Node000007"><a xlink:title=" ">
|
||||
<path fill="none" stroke="#63b8ff" d="M491.67,-192.34C500.96,-191.94 510.66,-191.52 520.07,-191.12"/>
|
||||
<polygon fill="#63b8ff" stroke="#63b8ff" points="520,-194.62 529.84,-190.69 519.7,-187.63 520,-194.62"/>
|
||||
</a>
|
||||
</g>
|
||||
</g>
|
||||
<!-- Node8->Node6 -->
|
||||
<g id="edge8_Node000008_Node000006" class="edge">
|
||||
<title>Node8->Node6</title>
|
||||
<g id="a_edge8_Node000008_Node000006"><a xlink:title=" ">
|
||||
<path fill="none" stroke="#63b8ff" d="M491.67,-139.05C501.39,-138.84 511.57,-138.82 521.39,-138.98"/>
|
||||
<polygon fill="#63b8ff" stroke="#63b8ff" points="521.1,-142.48 531.19,-139.22 521.28,-135.48 521.1,-142.48"/>
|
||||
</a>
|
||||
</g>
|
||||
</g>
|
||||
<!-- Node8->Node6 -->
|
||||
<g id="edge10_Node000008_Node000006" class="edge">
|
||||
<title>Node8->Node6</title>
|
||||
<g id="a_edge10_Node000008_Node000006"><a xlink:title=" ">
|
||||
<path fill="none" stroke="#63b8ff" d="M491.67,-152.2C501.39,-152.41 511.57,-152.43 521.39,-152.27"/>
|
||||
<polygon fill="#63b8ff" stroke="#63b8ff" points="521.28,-155.77 531.19,-152.03 521.1,-148.77 521.28,-155.77"/>
|
||||
</a>
|
||||
</g>
|
||||
</g>
|
||||
<!-- Node8->Node7 -->
|
||||
<g id="edge9_Node000008_Node000007" class="edge">
|
||||
<title>Node8->Node7</title>
|
||||
<g id="a_edge9_Node000008_Node000007"><a xlink:title=" ">
|
||||
<path fill="none" stroke="#63b8ff" d="M489.29,-161.27C504.16,-165.86 520.29,-170.84 534.65,-175.28"/>
|
||||
<polygon fill="#63b8ff" stroke="#63b8ff" points="533.2,-178.49 543.79,-178.1 535.27,-171.81 533.2,-178.49"/>
|
||||
</a>
|
||||
</g>
|
||||
</g>
|
||||
<!-- Node10->Node6 -->
|
||||
<g id="edge13_Node000010_Node000006" class="edge">
|
||||
<title>Node10->Node6</title>
|
||||
<g id="a_edge13_Node000010_Node000006"><a xlink:title=" ">
|
||||
<path fill="none" stroke="#63b8ff" d="M343.91,-91.36C385.42,-94.21 444.5,-101.77 495.5,-112.62 516.33,-117.06 539.6,-124.03 556.07,-130.89"/>
|
||||
<polygon fill="#63b8ff" stroke="#63b8ff" points="554.36,-133.95 564.91,-134.95 557.28,-127.59 554.36,-133.95"/>
|
||||
</a>
|
||||
</g>
|
||||
</g>
|
||||
<!-- Node10->Node6 -->
|
||||
<g id="edge16_Node000010_Node000006" class="edge">
|
||||
<title>Node10->Node6</title>
|
||||
<g id="a_edge16_Node000010_Node000006"><a xlink:title=" ">
|
||||
<path fill="none" stroke="#63b8ff" d="M343.91,-106.05C385.42,-112.21 444.5,-119.77 495.5,-130.62 504.1,-132.46 513.12,-134.72 521.91,-137.01"/>
|
||||
<polygon fill="#63b8ff" stroke="#63b8ff" points="520.84,-140.35 531.4,-139.51 522.62,-133.58 520.84,-140.35"/>
|
||||
</a>
|
||||
</g>
|
||||
</g>
|
||||
<!-- Node11 -->
|
||||
<g id="Node000011" class="node">
|
||||
<title>Node11</title>
|
||||
<g id="a_Node000011"><a target="_blank" xlink:href="http://en.cppreference.com/w/cpp/algorithm/max.html#" xlink:title=" ">
|
||||
<polygon fill="white" stroke="#666666" points="464.75,-56.25 410.5,-56.25 410.5,-37 464.75,-37 464.75,-56.25"/>
|
||||
<text text-anchor="middle" x="437.62" y="-42.75" font-family="Helvetica,sans-Serif" font-size="10.00">std::max</text>
|
||||
</a>
|
||||
</g>
|
||||
</g>
|
||||
<!-- Node10->Node11 -->
|
||||
<g id="edge14_Node000010_Node000011" class="edge">
|
||||
<title>Node10->Node11</title>
|
||||
<g id="a_edge14_Node000010_Node000011"><a xlink:title=" ">
|
||||
<path fill="none" stroke="#63b8ff" d="M339.49,-77.97C359.09,-71.65 381.34,-64.47 399.6,-58.58"/>
|
||||
<polygon fill="#63b8ff" stroke="#63b8ff" points="400.51,-61.96 408.95,-55.56 398.36,-55.3 400.51,-61.96"/>
|
||||
</a>
|
||||
</g>
|
||||
</g>
|
||||
<!-- Node12 -->
|
||||
<g id="Node000012" class="node">
|
||||
<title>Node12</title>
|
||||
<g id="a_Node000012"><a target="_blank" xlink:href="http://en.cppreference.com/w/cpp/container/vector/push_back.html#" xlink:title=" ">
|
||||
<polygon fill="white" stroke="#666666" points="495.5,-19.25 379.75,-19.25 379.75,0 495.5,0 495.5,-19.25"/>
|
||||
<text text-anchor="middle" x="437.62" y="-5.75" font-family="Helvetica,sans-Serif" font-size="10.00">std::vector::push_back</text>
|
||||
</a>
|
||||
</g>
|
||||
</g>
|
||||
<!-- Node10->Node12 -->
|
||||
<g id="edge15_Node000010_Node000012" class="edge">
|
||||
<title>Node10->Node12</title>
|
||||
<g id="a_edge15_Node000010_Node000012"><a xlink:title=" ">
|
||||
<path fill="none" stroke="#63b8ff" d="M308.19,-78.09C325.27,-63.35 352.74,-41.45 379.75,-27.62 382.42,-26.26 385.22,-24.97 388.08,-23.76"/>
|
||||
<polygon fill="#63b8ff" stroke="#63b8ff" points="389.1,-27.11 397.18,-20.26 386.59,-20.58 389.1,-27.11"/>
|
||||
</a>
|
||||
</g>
|
||||
</g>
|
||||
<!-- Node14->Node4 -->
|
||||
<g id="edge19_Node000014_Node000004" class="edge">
|
||||
<title>Node14->Node4</title>
|
||||
<g id="a_edge19_Node000014_Node000004"><a xlink:title=" ">
|
||||
<path fill="none" stroke="#63b8ff" d="M199.34,-145.97C206.93,-145.78 215.64,-145.55 224.6,-145.31"/>
|
||||
<polygon fill="#63b8ff" stroke="#63b8ff" points="224.58,-148.81 234.48,-145.05 224.4,-141.82 224.58,-148.81"/>
|
||||
</a>
|
||||
</g>
|
||||
</g>
|
||||
<!-- Node14->Node9 -->
|
||||
<g id="edge20_Node000014_Node000009" class="edge">
|
||||
<title>Node14->Node9</title>
|
||||
<g id="a_edge20_Node000014_Node000009"><a xlink:title=" ">
|
||||
<path fill="none" stroke="#63b8ff" d="M190.21,-156.71C193.64,-159.15 197.16,-161.86 200.25,-164.62 218.32,-180.8 216.78,-191.17 236.25,-205.62 237.41,-206.49 238.6,-207.32 239.83,-208.14"/>
|
||||
<polygon fill="#63b8ff" stroke="#63b8ff" points="237.94,-211.09 248.32,-213.21 241.53,-205.08 237.94,-211.09"/>
|
||||
</a>
|
||||
</g>
|
||||
</g>
|
||||
<!-- Node14->Node10 -->
|
||||
<g id="edge21_Node000014_Node000010" class="edge">
|
||||
<title>Node14->Node10</title>
|
||||
<g id="a_edge21_Node000014_Node000010"><a xlink:title=" ">
|
||||
<path fill="none" stroke="#63b8ff" d="M196.31,-136.53C210.06,-130.16 228.32,-121.71 244.99,-114"/>
|
||||
<polygon fill="#63b8ff" stroke="#63b8ff" points="246.13,-117.32 253.74,-109.95 243.19,-110.97 246.13,-117.32"/>
|
||||
</a>
|
||||
</g>
|
||||
</g>
|
||||
<!-- Node14->Node13 -->
|
||||
<g id="edge22_Node000014_Node000013" class="edge">
|
||||
<title>Node14->Node13</title>
|
||||
<g id="a_edge22_Node000014_Node000013"><a xlink:title=" ">
|
||||
<path fill="none" stroke="#63b8ff" d="M199.34,-155.3C214.02,-160.43 232.93,-167.04 249.6,-172.86"/>
|
||||
<polygon fill="#63b8ff" stroke="#63b8ff" points="248.14,-176.06 258.73,-176.05 250.45,-169.45 248.14,-176.06"/>
|
||||
</a>
|
||||
</g>
|
||||
</g>
|
||||
</g>
|
||||
</svg>
|
||||
|
Before Width: | Height: | Size: 17 KiB |
334
d3/db2/boyer__moore_8cpp_source.html
Normal file
@@ -0,0 +1,334 @@
|
||||
<!-- HTML header for doxygen 1.12.0-->
|
||||
<!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.12.0"/>
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1"/>
|
||||
<title>TheAlgorithms/C++: strings/boyer_moore.cpp Source File</title>
|
||||
<link rel="icon" href="../../favicon.svg" type="image/x-icon" />
|
||||
<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>
|
||||
<script type="text/javascript" src="https://cdn.jsdelivr.net/npm/@xpack-3rd-party/doxygen-awesome-css@2.2.0-1/doxygen-awesome-darkmode-toggle.js"></script>
|
||||
<script type="text/javascript">
|
||||
DoxygenAwesomeDarkModeToggle.init()
|
||||
</script>
|
||||
<script type="text/javascript" src="../../clipboard.js"></script>
|
||||
<link href="../../navtree.css" rel="stylesheet" type="text/css"/>
|
||||
<script type="text/javascript" src="../../navtreedata.js"></script>
|
||||
<script type="text/javascript" src="../../navtree.js"></script>
|
||||
<script type="text/javascript" src="../../resize.js"></script>
|
||||
<script type="text/javascript" src="../../cookie.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>
|
||||
<script type="text/javascript">
|
||||
window.MathJax = {
|
||||
options: {
|
||||
ignoreHtmlClass: 'tex2jax_ignore',
|
||||
processHtmlClass: 'tex2jax_process'
|
||||
},
|
||||
loader: {
|
||||
load: ['[tex]/ams']
|
||||
},
|
||||
tex: {
|
||||
macros: {},
|
||||
packages: ['base','configmacros','ams']
|
||||
}
|
||||
};
|
||||
</script>
|
||||
<script type="text/javascript" id="MathJax-script" async="async" src="https://cdn.jsdelivr.net/npm/mathjax@3/es5/tex-chtml.js"></script>
|
||||
<link href="../../doxygen.css" rel="stylesheet" type="text/css" />
|
||||
<link href="../../doxygen-awesome.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="projectlogo"><img alt="Logo" src="../../project_logo.png"/></td>
|
||||
<td id="projectalign">
|
||||
<div id="projectname">TheAlgorithms/C++<span id="projectnumber"> 1.0.0</span>
|
||||
</div>
|
||||
<div id="projectbrief">All the algorithms implemented in C++</div>
|
||||
</td>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
<!-- end header part -->
|
||||
<!-- Generated by Doxygen 1.12.0 -->
|
||||
<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">
|
||||
/* @license magnet:?xt=urn:btih:d3d9a9a6595521f9666a5e94cc830dab83b65699&dn=expat.txt MIT */
|
||||
$(function() { codefold.init(1); });
|
||||
/* @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',true);
|
||||
$(function() { init_search(); });
|
||||
});
|
||||
/* @license-end */
|
||||
</script>
|
||||
<div id="main-nav"></div>
|
||||
</div><!-- top -->
|
||||
<div id="side-nav" class="ui-resizable side-nav-resizable">
|
||||
<div id="nav-tree">
|
||||
<div id="nav-tree-contents">
|
||||
<div id="nav-sync" class="sync"></div>
|
||||
</div>
|
||||
</div>
|
||||
<div id="splitbar" style="-moz-user-select:none;"
|
||||
class="ui-resizable-handle">
|
||||
</div>
|
||||
</div>
|
||||
<script type="text/javascript">
|
||||
/* @license magnet:?xt=urn:btih:d3d9a9a6595521f9666a5e94cc830dab83b65699&dn=expat.txt MIT */
|
||||
$(function(){initNavTree('d3/db2/boyer__moore_8cpp_source.html','../../'); initResizable(true); });
|
||||
/* @license-end */
|
||||
</script>
|
||||
<div id="doc-content">
|
||||
<!-- 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 class="header">
|
||||
<div class="headertitle"><div class="title">boyer_moore.cpp</div></div>
|
||||
</div><!--header-->
|
||||
<div class="contents">
|
||||
<a href="../../d3/db2/boyer__moore_8cpp.html">Go to the documentation of this file.</a><div class="fragment"><div class="line"><a id="l00001" name="l00001"></a><span class="lineno"> 1</span> </div>
|
||||
<div class="line"><a id="l00045" name="l00045"></a><span class="lineno"> 45</span><span class="preprocessor">#include <cassert></span> </div>
|
||||
<div class="line"><a id="l00046" name="l00046"></a><span class="lineno"> 46</span><span class="preprocessor">#include <climits></span> </div>
|
||||
<div class="line"><a id="l00047" name="l00047"></a><span class="lineno"> 47</span><span class="preprocessor">#include <cstring></span> </div>
|
||||
<div class="line"><a id="l00048" name="l00048"></a><span class="lineno"> 48</span><span class="preprocessor">#include <iostream></span> </div>
|
||||
<div class="line"><a id="l00049" name="l00049"></a><span class="lineno"> 49</span><span class="preprocessor">#include <string></span> </div>
|
||||
<div class="line"><a id="l00050" name="l00050"></a><span class="lineno"> 50</span><span class="preprocessor">#include <vector></span> </div>
|
||||
<div class="line"><a id="l00051" name="l00051"></a><span class="lineno"> 51</span> </div>
|
||||
<div class="line"><a id="l00052" name="l00052"></a><span class="lineno"><a class="line" href="../../d3/db2/boyer__moore_8cpp.html#a77c872c08612d7b8861ba13bc9881cbd"> 52</a></span><span class="preprocessor">#define APLHABET_SIZE CHAR_MAX </span></div>
|
||||
<div class="line"><a id="l00053" name="l00053"></a><span class="lineno"> 53</span> </div>
|
||||
<div class="foldopen" id="foldopen00058" data-start="{" data-end="}">
|
||||
<div class="line"><a id="l00058" name="l00058"></a><span class="lineno"><a class="line" href="../../df/dcb/namespacestrings.html"> 58</a></span><span class="keyword">namespace </span><a class="code hl_namespace" href="../../df/dcb/namespacestrings.html">strings</a> {</div>
|
||||
<div class="foldopen" id="foldopen00065" data-start="{" data-end="}">
|
||||
<div class="line"><a id="l00065" name="l00065"></a><span class="lineno"><a class="line" href="../../d0/dbc/namespacestrings_1_1boyer__moore.html"> 65</a></span><span class="keyword">namespace </span>boyer_moore {</div>
|
||||
<div class="foldopen" id="foldopen00070" data-start="{" data-end="};">
|
||||
<div class="line"><a id="l00070" name="l00070"></a><span class="lineno"><a class="line" href="../../dd/d5a/structstrings_1_1boyer__moore_1_1pattern.html"> 70</a></span><span class="keyword">struct </span><a class="code hl_struct" href="../../dd/d5a/structstrings_1_1boyer__moore_1_1pattern.html">pattern</a> {</div>
|
||||
<div class="line"><a id="l00071" name="l00071"></a><span class="lineno"> 71</span> std::string pat;</div>
|
||||
<div class="line"><a id="l00072" name="l00072"></a><span class="lineno"> 72</span> </div>
|
||||
<div class="line"><a id="l00073" name="l00073"></a><span class="lineno"> 73</span> std::vector<size_t></div>
|
||||
<div class="line"><a id="l00074" name="l00074"></a><span class="lineno"><a class="line" href="../../dd/d5a/structstrings_1_1boyer__moore_1_1pattern.html#ae5ca7abf15e939eddc80542131de3645"> 74</a></span> <a class="code hl_variable" href="../../dd/d5a/structstrings_1_1boyer__moore_1_1pattern.html#ae5ca7abf15e939eddc80542131de3645">bad_char</a>; </div>
|
||||
<div class="line"><a id="l00076" name="l00076"></a><span class="lineno"> 76</span> </div>
|
||||
<div class="line"><a id="l00077" name="l00077"></a><span class="lineno"> 77</span> std::vector<size_t></div>
|
||||
<div class="line"><a id="l00078" name="l00078"></a><span class="lineno"><a class="line" href="../../dd/d5a/structstrings_1_1boyer__moore_1_1pattern.html#a3d62f615a0171a5d77e7018f704f3a7e"> 78</a></span> <a class="code hl_variable" href="../../dd/d5a/structstrings_1_1boyer__moore_1_1pattern.html#a3d62f615a0171a5d77e7018f704f3a7e">good_suffix</a>; </div>
|
||||
<div class="line"><a id="l00080" name="l00080"></a><span class="lineno"> 80</span>};</div>
|
||||
</div>
|
||||
<div class="line"><a id="l00081" name="l00081"></a><span class="lineno"> 81</span> </div>
|
||||
<div class="foldopen" id="foldopen00089" data-start="{" data-end="}">
|
||||
<div class="line"><a id="l00089" name="l00089"></a><span class="lineno"><a class="line" href="../../d0/dbc/namespacestrings_1_1boyer__moore.html#aa709cf7fca02b7d3e1888423d5f739a1"> 89</a></span><span class="keywordtype">void</span> <a class="code hl_function" href="../../d0/dbc/namespacestrings_1_1boyer__moore.html#aa709cf7fca02b7d3e1888423d5f739a1">init_good_suffix</a>(<span class="keyword">const</span> std::string& str, std::vector<size_t>& arg) {</div>
|
||||
<div class="line"><a id="l00090" name="l00090"></a><span class="lineno"> 90</span> arg.resize(str.size() + 1, 0);</div>
|
||||
<div class="line"><a id="l00091" name="l00091"></a><span class="lineno"> 91</span> </div>
|
||||
<div class="line"><a id="l00092" name="l00092"></a><span class="lineno"> 92</span> <span class="comment">// border_pos[i] - the index of the longest proper suffix of str[i..] which</span></div>
|
||||
<div class="line"><a id="l00093" name="l00093"></a><span class="lineno"> 93</span> <span class="comment">// is also a proper prefix.</span></div>
|
||||
<div class="line"><a id="l00094" name="l00094"></a><span class="lineno"> 94</span> std::vector<size_t> border_pos(str.size() + 1, 0);</div>
|
||||
<div class="line"><a id="l00095" name="l00095"></a><span class="lineno"> 95</span> </div>
|
||||
<div class="line"><a id="l00096" name="l00096"></a><span class="lineno"> 96</span> <span class="keywordtype">size_t</span> current_char = str.length();</div>
|
||||
<div class="line"><a id="l00097" name="l00097"></a><span class="lineno"> 97</span> </div>
|
||||
<div class="line"><a id="l00098" name="l00098"></a><span class="lineno"> 98</span> <span class="keywordtype">size_t</span> border_index = str.length() + 1;</div>
|
||||
<div class="line"><a id="l00099" name="l00099"></a><span class="lineno"> 99</span> </div>
|
||||
<div class="line"><a id="l00100" name="l00100"></a><span class="lineno"> 100</span> border_pos[current_char] = border_index;</div>
|
||||
<div class="line"><a id="l00101" name="l00101"></a><span class="lineno"> 101</span> </div>
|
||||
<div class="line"><a id="l00102" name="l00102"></a><span class="lineno"> 102</span> <span class="keywordflow">while</span> (current_char > 0) {</div>
|
||||
<div class="line"><a id="l00103" name="l00103"></a><span class="lineno"> 103</span> <span class="keywordflow">while</span> (border_index <= str.length() &&</div>
|
||||
<div class="line"><a id="l00104" name="l00104"></a><span class="lineno"> 104</span> str[current_char - 1] != str[border_index - 1]) {</div>
|
||||
<div class="line"><a id="l00105" name="l00105"></a><span class="lineno"> 105</span> <span class="keywordflow">if</span> (arg[border_index] == 0) {</div>
|
||||
<div class="line"><a id="l00106" name="l00106"></a><span class="lineno"> 106</span> arg[border_index] = border_index - current_char;</div>
|
||||
<div class="line"><a id="l00107" name="l00107"></a><span class="lineno"> 107</span> }</div>
|
||||
<div class="line"><a id="l00108" name="l00108"></a><span class="lineno"> 108</span> </div>
|
||||
<div class="line"><a id="l00109" name="l00109"></a><span class="lineno"> 109</span> border_index = border_pos[border_index];</div>
|
||||
<div class="line"><a id="l00110" name="l00110"></a><span class="lineno"> 110</span> }</div>
|
||||
<div class="line"><a id="l00111" name="l00111"></a><span class="lineno"> 111</span> </div>
|
||||
<div class="line"><a id="l00112" name="l00112"></a><span class="lineno"> 112</span> current_char--;</div>
|
||||
<div class="line"><a id="l00113" name="l00113"></a><span class="lineno"> 113</span> border_index--;</div>
|
||||
<div class="line"><a id="l00114" name="l00114"></a><span class="lineno"> 114</span> border_pos[current_char] = border_index;</div>
|
||||
<div class="line"><a id="l00115" name="l00115"></a><span class="lineno"> 115</span> }</div>
|
||||
<div class="line"><a id="l00116" name="l00116"></a><span class="lineno"> 116</span> </div>
|
||||
<div class="line"><a id="l00117" name="l00117"></a><span class="lineno"> 117</span> <span class="keywordtype">size_t</span> largest_border_index = border_pos[0];</div>
|
||||
<div class="line"><a id="l00118" name="l00118"></a><span class="lineno"> 118</span> </div>
|
||||
<div class="line"><a id="l00119" name="l00119"></a><span class="lineno"> 119</span> <span class="keywordflow">for</span> (<span class="keywordtype">size_t</span> i = 0; i < str.size(); i++) {</div>
|
||||
<div class="line"><a id="l00120" name="l00120"></a><span class="lineno"> 120</span> <span class="keywordflow">if</span> (arg[i] == 0) {</div>
|
||||
<div class="line"><a id="l00121" name="l00121"></a><span class="lineno"> 121</span> arg[i] = largest_border_index;</div>
|
||||
<div class="line"><a id="l00122" name="l00122"></a><span class="lineno"> 122</span> }</div>
|
||||
<div class="line"><a id="l00123" name="l00123"></a><span class="lineno"> 123</span> </div>
|
||||
<div class="line"><a id="l00124" name="l00124"></a><span class="lineno"> 124</span> <span class="comment">// If we go pass the largest border we find the next one as we iterate</span></div>
|
||||
<div class="line"><a id="l00125" name="l00125"></a><span class="lineno"> 125</span> <span class="keywordflow">if</span> (i == largest_border_index) {</div>
|
||||
<div class="line"><a id="l00126" name="l00126"></a><span class="lineno"> 126</span> largest_border_index = border_pos[largest_border_index];</div>
|
||||
<div class="line"><a id="l00127" name="l00127"></a><span class="lineno"> 127</span> }</div>
|
||||
<div class="line"><a id="l00128" name="l00128"></a><span class="lineno"> 128</span> }</div>
|
||||
<div class="line"><a id="l00129" name="l00129"></a><span class="lineno"> 129</span>}</div>
|
||||
</div>
|
||||
<div class="line"><a id="l00130" name="l00130"></a><span class="lineno"> 130</span> </div>
|
||||
<div class="foldopen" id="foldopen00138" data-start="{" data-end="}">
|
||||
<div class="line"><a id="l00138" name="l00138"></a><span class="lineno"><a class="line" href="../../d0/dbc/namespacestrings_1_1boyer__moore.html#a2f6688c9bb3e692297a3aa09cebc1c00"> 138</a></span><span class="keywordtype">void</span> <a class="code hl_function" href="../../d0/dbc/namespacestrings_1_1boyer__moore.html#a2f6688c9bb3e692297a3aa09cebc1c00">init_bad_char</a>(<span class="keyword">const</span> std::string& str, std::vector<size_t>& arg) {</div>
|
||||
<div class="line"><a id="l00139" name="l00139"></a><span class="lineno"> 139</span> arg.resize(<a class="code hl_define" href="../../d3/db2/boyer__moore_8cpp.html#a77c872c08612d7b8861ba13bc9881cbd">APLHABET_SIZE</a>, str.length());</div>
|
||||
<div class="line"><a id="l00140" name="l00140"></a><span class="lineno"> 140</span> </div>
|
||||
<div class="line"><a id="l00141" name="l00141"></a><span class="lineno"> 141</span> <span class="keywordflow">for</span> (<span class="keywordtype">size_t</span> i = 0; i < str.length(); i++) {</div>
|
||||
<div class="line"><a id="l00142" name="l00142"></a><span class="lineno"> 142</span> arg[str[i]] = str.length() - i - 1;</div>
|
||||
<div class="line"><a id="l00143" name="l00143"></a><span class="lineno"> 143</span> }</div>
|
||||
<div class="line"><a id="l00144" name="l00144"></a><span class="lineno"> 144</span>}</div>
|
||||
</div>
|
||||
<div class="line"><a id="l00145" name="l00145"></a><span class="lineno"> 145</span> </div>
|
||||
<div class="foldopen" id="foldopen00153" data-start="{" data-end="}">
|
||||
<div class="line"><a id="l00153" name="l00153"></a><span class="lineno"><a class="line" href="../../d0/dbc/namespacestrings_1_1boyer__moore.html#a0b165af1dc341289fd705be4c67728f8"> 153</a></span><span class="keywordtype">void</span> <a class="code hl_function" href="../../d0/dbc/namespacestrings_1_1boyer__moore.html#a0b165af1dc341289fd705be4c67728f8">init_pattern</a>(<span class="keyword">const</span> std::string& str, <a class="code hl_struct" href="../../dd/d5a/structstrings_1_1boyer__moore_1_1pattern.html">pattern</a>& arg) {</div>
|
||||
<div class="line"><a id="l00154" name="l00154"></a><span class="lineno"> 154</span> arg.pat = str;</div>
|
||||
<div class="line"><a id="l00155" name="l00155"></a><span class="lineno"> 155</span> <a class="code hl_function" href="../../d0/dbc/namespacestrings_1_1boyer__moore.html#a2f6688c9bb3e692297a3aa09cebc1c00">init_bad_char</a>(str, arg.<a class="code hl_variable" href="../../dd/d5a/structstrings_1_1boyer__moore_1_1pattern.html#ae5ca7abf15e939eddc80542131de3645">bad_char</a>);</div>
|
||||
<div class="line"><a id="l00156" name="l00156"></a><span class="lineno"> 156</span> <a class="code hl_function" href="../../d0/dbc/namespacestrings_1_1boyer__moore.html#aa709cf7fca02b7d3e1888423d5f739a1">init_good_suffix</a>(str, arg.<a class="code hl_variable" href="../../dd/d5a/structstrings_1_1boyer__moore_1_1pattern.html#a3d62f615a0171a5d77e7018f704f3a7e">good_suffix</a>);</div>
|
||||
<div class="line"><a id="l00157" name="l00157"></a><span class="lineno"> 157</span>}</div>
|
||||
</div>
|
||||
<div class="foldopen" id="foldopen00165" data-start="{" data-end="}">
|
||||
<div class="line"><a id="l00165" name="l00165"></a><span class="lineno"><a class="line" href="../../d0/dbc/namespacestrings_1_1boyer__moore.html#a15703b553faed0d28202c10808cf9738"> 165</a></span>std::vector<size_t> <a class="code hl_namespace" href="../../d9/dca/namespacesearch.html">search</a>(<span class="keyword">const</span> std::string& str, <span class="keyword">const</span> <a class="code hl_struct" href="../../dd/d5a/structstrings_1_1boyer__moore_1_1pattern.html">pattern</a>& arg) {</div>
|
||||
<div class="line"><a id="l00166" name="l00166"></a><span class="lineno"> 166</span> <span class="keywordtype">size_t</span> index_position = arg.pat.size() - 1;</div>
|
||||
<div class="line"><a id="l00167" name="l00167"></a><span class="lineno"> 167</span> std::vector<size_t> index_storage;</div>
|
||||
<div class="line"><a id="l00168" name="l00168"></a><span class="lineno"> 168</span> </div>
|
||||
<div class="line"><a id="l00169" name="l00169"></a><span class="lineno"> 169</span> <span class="keywordflow">while</span> (index_position < str.length()) {</div>
|
||||
<div class="line"><a id="l00170" name="l00170"></a><span class="lineno"> 170</span> <span class="keywordtype">size_t</span> index_string = index_position;</div>
|
||||
<div class="line"><a id="l00171" name="l00171"></a><span class="lineno"> 171</span> <span class="keywordtype">int</span> index_pattern = <span class="keyword">static_cast<</span><span class="keywordtype">int</span><span class="keyword">></span>(arg.pat.size()) - 1;</div>
|
||||
<div class="line"><a id="l00172" name="l00172"></a><span class="lineno"> 172</span> </div>
|
||||
<div class="line"><a id="l00173" name="l00173"></a><span class="lineno"> 173</span> <span class="keywordflow">while</span> (index_pattern >= 0 &&</div>
|
||||
<div class="line"><a id="l00174" name="l00174"></a><span class="lineno"> 174</span> str[index_string] == arg.pat[index_pattern]) {</div>
|
||||
<div class="line"><a id="l00175" name="l00175"></a><span class="lineno"> 175</span> --index_pattern;</div>
|
||||
<div class="line"><a id="l00176" name="l00176"></a><span class="lineno"> 176</span> --index_string;</div>
|
||||
<div class="line"><a id="l00177" name="l00177"></a><span class="lineno"> 177</span> }</div>
|
||||
<div class="line"><a id="l00178" name="l00178"></a><span class="lineno"> 178</span> </div>
|
||||
<div class="line"><a id="l00179" name="l00179"></a><span class="lineno"> 179</span> <span class="keywordflow">if</span> (index_pattern < 0) {</div>
|
||||
<div class="line"><a id="l00180" name="l00180"></a><span class="lineno"> 180</span> index_storage.push_back(index_position - arg.pat.length() + 1);</div>
|
||||
<div class="line"><a id="l00181" name="l00181"></a><span class="lineno"> 181</span> index_position += arg.<a class="code hl_variable" href="../../dd/d5a/structstrings_1_1boyer__moore_1_1pattern.html#a3d62f615a0171a5d77e7018f704f3a7e">good_suffix</a>[0];</div>
|
||||
<div class="line"><a id="l00182" name="l00182"></a><span class="lineno"> 182</span> } <span class="keywordflow">else</span> {</div>
|
||||
<div class="line"><a id="l00183" name="l00183"></a><span class="lineno"> 183</span> index_position += std::max(arg.<a class="code hl_variable" href="../../dd/d5a/structstrings_1_1boyer__moore_1_1pattern.html#ae5ca7abf15e939eddc80542131de3645">bad_char</a>[str[index_string]],</div>
|
||||
<div class="line"><a id="l00184" name="l00184"></a><span class="lineno"> 184</span> arg.<a class="code hl_variable" href="../../dd/d5a/structstrings_1_1boyer__moore_1_1pattern.html#a3d62f615a0171a5d77e7018f704f3a7e">good_suffix</a>[index_pattern + 1]);</div>
|
||||
<div class="line"><a id="l00185" name="l00185"></a><span class="lineno"> 185</span> }</div>
|
||||
<div class="line"><a id="l00186" name="l00186"></a><span class="lineno"> 186</span> }</div>
|
||||
<div class="line"><a id="l00187" name="l00187"></a><span class="lineno"> 187</span> </div>
|
||||
<div class="line"><a id="l00188" name="l00188"></a><span class="lineno"> 188</span> <span class="keywordflow">return</span> index_storage;</div>
|
||||
<div class="line"><a id="l00189" name="l00189"></a><span class="lineno"> 189</span>}</div>
|
||||
</div>
|
||||
<div class="line"><a id="l00190" name="l00190"></a><span class="lineno"> 190</span> </div>
|
||||
<div class="foldopen" id="foldopen00200" data-start="{" data-end="}">
|
||||
<div class="line"><a id="l00200" name="l00200"></a><span class="lineno"><a class="line" href="../../d0/dbc/namespacestrings_1_1boyer__moore.html#a056122c8fe8fb0f5fca6428d3f7b5c3a"> 200</a></span><span class="keywordtype">bool</span> <a class="code hl_function" href="../../d0/dbc/namespacestrings_1_1boyer__moore.html#a056122c8fe8fb0f5fca6428d3f7b5c3a">is_prefix</a>(<span class="keyword">const</span> <span class="keywordtype">char</span>* str, <span class="keyword">const</span> <span class="keywordtype">char</span>* pat, <span class="keywordtype">size_t</span> len) {</div>
|
||||
<div class="line"><a id="l00201" name="l00201"></a><span class="lineno"> 201</span> <span class="keywordflow">if</span> (strlen(str) < len) {</div>
|
||||
<div class="line"><a id="l00202" name="l00202"></a><span class="lineno"> 202</span> <span class="keywordflow">return</span> <span class="keyword">false</span>;</div>
|
||||
<div class="line"><a id="l00203" name="l00203"></a><span class="lineno"> 203</span> }</div>
|
||||
<div class="line"><a id="l00204" name="l00204"></a><span class="lineno"> 204</span> </div>
|
||||
<div class="line"><a id="l00205" name="l00205"></a><span class="lineno"> 205</span> <span class="keywordflow">for</span> (<span class="keywordtype">size_t</span> i = 0; i < len; i++) {</div>
|
||||
<div class="line"><a id="l00206" name="l00206"></a><span class="lineno"> 206</span> <span class="keywordflow">if</span> (str[i] != pat[i]) {</div>
|
||||
<div class="line"><a id="l00207" name="l00207"></a><span class="lineno"> 207</span> <span class="keywordflow">return</span> <span class="keyword">false</span>;</div>
|
||||
<div class="line"><a id="l00208" name="l00208"></a><span class="lineno"> 208</span> }</div>
|
||||
<div class="line"><a id="l00209" name="l00209"></a><span class="lineno"> 209</span> }</div>
|
||||
<div class="line"><a id="l00210" name="l00210"></a><span class="lineno"> 210</span> </div>
|
||||
<div class="line"><a id="l00211" name="l00211"></a><span class="lineno"> 211</span> <span class="keywordflow">return</span> <span class="keyword">true</span>;</div>
|
||||
<div class="line"><a id="l00212" name="l00212"></a><span class="lineno"> 212</span>}</div>
|
||||
</div>
|
||||
<div class="line"><a id="l00213" name="l00213"></a><span class="lineno"> 213</span>} <span class="comment">// namespace boyer_moore</span></div>
|
||||
</div>
|
||||
<div class="line"><a id="l00214" name="l00214"></a><span class="lineno"> 214</span>} <span class="comment">// namespace strings</span></div>
|
||||
</div>
|
||||
<div class="foldopen" id="foldopen00220" data-start="{" data-end="}">
|
||||
<div class="line"><a id="l00220" name="l00220"></a><span class="lineno"><a class="line" href="../../d3/db2/boyer__moore_8cpp.html#acb8f69e7901ee7459d98bd4b9dda79d9"> 220</a></span><span class="keywordtype">void</span> <a class="code hl_function" href="../../d3/db2/boyer__moore_8cpp.html#acb8f69e7901ee7459d98bd4b9dda79d9">and_test</a>(<span class="keyword">const</span> <span class="keywordtype">char</span>* text) {</div>
|
||||
<div class="line"><a id="l00221" name="l00221"></a><span class="lineno"> 221</span> <a class="code hl_struct" href="../../dd/d5a/structstrings_1_1boyer__moore_1_1pattern.html">strings::boyer_moore::pattern</a> ands;</div>
|
||||
<div class="line"><a id="l00222" name="l00222"></a><span class="lineno"> 222</span> <a class="code hl_function" href="../../d0/dbc/namespacestrings_1_1boyer__moore.html#a0b165af1dc341289fd705be4c67728f8">strings::boyer_moore::init_pattern</a>(<span class="stringliteral">"and"</span>, ands);</div>
|
||||
<div class="line"><a id="l00223" name="l00223"></a><span class="lineno"> 223</span> std::vector<size_t> indexes = <a class="code hl_function" href="../../d0/dbc/namespacestrings_1_1boyer__moore.html#a15703b553faed0d28202c10808cf9738">strings::boyer_moore::search</a>(text, ands);</div>
|
||||
<div class="line"><a id="l00224" name="l00224"></a><span class="lineno"> 224</span> </div>
|
||||
<div class="line"><a id="l00225" name="l00225"></a><span class="lineno"> 225</span> assert(indexes.size() == 2);</div>
|
||||
<div class="line"><a id="l00226" name="l00226"></a><span class="lineno"> 226</span> assert(<a class="code hl_function" href="../../d0/dbc/namespacestrings_1_1boyer__moore.html#a056122c8fe8fb0f5fca6428d3f7b5c3a">strings::boyer_moore::is_prefix</a>(text + indexes[0], <span class="stringliteral">"and"</span>, 3));</div>
|
||||
<div class="line"><a id="l00227" name="l00227"></a><span class="lineno"> 227</span> assert(<a class="code hl_function" href="../../d0/dbc/namespacestrings_1_1boyer__moore.html#a056122c8fe8fb0f5fca6428d3f7b5c3a">strings::boyer_moore::is_prefix</a>(text + indexes[1], <span class="stringliteral">"and"</span>, 3));</div>
|
||||
<div class="line"><a id="l00228" name="l00228"></a><span class="lineno"> 228</span>}</div>
|
||||
</div>
|
||||
<div class="line"><a id="l00229" name="l00229"></a><span class="lineno"> 229</span> </div>
|
||||
<div class="foldopen" id="foldopen00235" data-start="{" data-end="}">
|
||||
<div class="line"><a id="l00235" name="l00235"></a><span class="lineno"><a class="line" href="../../d3/db2/boyer__moore_8cpp.html#ac8fac0dd4b19973da103a434143a16d2"> 235</a></span><span class="keywordtype">void</span> <a class="code hl_function" href="../../d3/db2/boyer__moore_8cpp.html#ac8fac0dd4b19973da103a434143a16d2">pat_test</a>(<span class="keyword">const</span> <span class="keywordtype">char</span>* text) {</div>
|
||||
<div class="line"><a id="l00236" name="l00236"></a><span class="lineno"> 236</span> <a class="code hl_struct" href="../../dd/d5a/structstrings_1_1boyer__moore_1_1pattern.html">strings::boyer_moore::pattern</a> pat;</div>
|
||||
<div class="line"><a id="l00237" name="l00237"></a><span class="lineno"> 237</span> <a class="code hl_function" href="../../d0/dbc/namespacestrings_1_1boyer__moore.html#a0b165af1dc341289fd705be4c67728f8">strings::boyer_moore::init_pattern</a>(<span class="stringliteral">"pat"</span>, pat);</div>
|
||||
<div class="line"><a id="l00238" name="l00238"></a><span class="lineno"> 238</span> std::vector<size_t> indexes = <a class="code hl_function" href="../../d0/dbc/namespacestrings_1_1boyer__moore.html#a15703b553faed0d28202c10808cf9738">strings::boyer_moore::search</a>(text, pat);</div>
|
||||
<div class="line"><a id="l00239" name="l00239"></a><span class="lineno"> 239</span> </div>
|
||||
<div class="line"><a id="l00240" name="l00240"></a><span class="lineno"> 240</span> assert(indexes.size() == 6);</div>
|
||||
<div class="line"><a id="l00241" name="l00241"></a><span class="lineno"> 241</span> </div>
|
||||
<div class="line"><a id="l00242" name="l00242"></a><span class="lineno"> 242</span> <span class="keywordflow">for</span> (<span class="keyword">const</span> <span class="keyword">auto</span>& currentIndex : indexes) {</div>
|
||||
<div class="line"><a id="l00243" name="l00243"></a><span class="lineno"> 243</span> assert(<a class="code hl_function" href="../../d0/dbc/namespacestrings_1_1boyer__moore.html#a056122c8fe8fb0f5fca6428d3f7b5c3a">strings::boyer_moore::is_prefix</a>(text + currentIndex, <span class="stringliteral">"pat"</span>, 3));</div>
|
||||
<div class="line"><a id="l00244" name="l00244"></a><span class="lineno"> 244</span> }</div>
|
||||
<div class="line"><a id="l00245" name="l00245"></a><span class="lineno"> 245</span>}</div>
|
||||
</div>
|
||||
<div class="foldopen" id="foldopen00250" data-start="{" data-end="}">
|
||||
<div class="line"><a id="l00250" name="l00250"></a><span class="lineno"><a class="line" href="../../d3/db2/boyer__moore_8cpp.html#a483bb8ccf42aaf7375a83e91490eda1e"> 250</a></span><span class="keyword">static</span> <span class="keywordtype">void</span> <a class="code hl_function" href="../../d3/db2/boyer__moore_8cpp.html#a483bb8ccf42aaf7375a83e91490eda1e">tests</a>() {</div>
|
||||
<div class="line"><a id="l00251" name="l00251"></a><span class="lineno"> 251</span> <span class="keyword">const</span> <span class="keywordtype">char</span>* text =</div>
|
||||
<div class="line"><a id="l00252" name="l00252"></a><span class="lineno"> 252</span> <span class="stringliteral">"When pat Mr. and Mrs. pat Dursley woke up on the dull, gray \</span></div>
|
||||
<div class="line"><a id="l00253" name="l00253"></a><span class="lineno"> 253</span><span class="stringliteral"> Tuesday our story starts, \</span></div>
|
||||
<div class="line"><a id="l00254" name="l00254"></a><span class="lineno"> 254</span><span class="stringliteral"> there was nothing about pat the cloudy sky outside to pat suggest that\</span></div>
|
||||
<div class="line"><a id="l00255" name="l00255"></a><span class="lineno"> 255</span><span class="stringliteral"> strange and \</span></div>
|
||||
<div class="line"><a id="l00256" name="l00256"></a><span class="lineno"> 256</span><span class="stringliteral"> mysterious things would pat soon be happening all pat over the \</span></div>
|
||||
<div class="line"><a id="l00257" name="l00257"></a><span class="lineno"> 257</span><span class="stringliteral"> country."</span>;</div>
|
||||
<div class="line"><a id="l00258" name="l00258"></a><span class="lineno"> 258</span> </div>
|
||||
<div class="line"><a id="l00259" name="l00259"></a><span class="lineno"> 259</span> <a class="code hl_function" href="../../d3/db2/boyer__moore_8cpp.html#acb8f69e7901ee7459d98bd4b9dda79d9">and_test</a>(text);</div>
|
||||
<div class="line"><a id="l00260" name="l00260"></a><span class="lineno"> 260</span> <a class="code hl_function" href="../../d3/db2/boyer__moore_8cpp.html#ac8fac0dd4b19973da103a434143a16d2">pat_test</a>(text);</div>
|
||||
<div class="line"><a id="l00261" name="l00261"></a><span class="lineno"> 261</span> </div>
|
||||
<div class="line"><a id="l00262" name="l00262"></a><span class="lineno"> 262</span> std::cout << <span class="stringliteral">"All tests have successfully passed!\n"</span>;</div>
|
||||
<div class="line"><a id="l00263" name="l00263"></a><span class="lineno"> 263</span>}</div>
|
||||
</div>
|
||||
<div class="line"><a id="l00264" name="l00264"></a><span class="lineno"> 264</span> </div>
|
||||
<div class="foldopen" id="foldopen00269" data-start="{" data-end="}">
|
||||
<div class="line"><a id="l00269" name="l00269"></a><span class="lineno"><a class="line" href="../../d3/db2/boyer__moore_8cpp.html#ae66f6b31b5ad750f1fe042a706a4e3d4"> 269</a></span><span class="keywordtype">int</span> <a class="code hl_function" href="../../d3/db2/boyer__moore_8cpp.html#ae66f6b31b5ad750f1fe042a706a4e3d4">main</a>() {</div>
|
||||
<div class="line"><a id="l00270" name="l00270"></a><span class="lineno"> 270</span> <a class="code hl_function" href="../../d3/db2/boyer__moore_8cpp.html#a483bb8ccf42aaf7375a83e91490eda1e">tests</a>(); <span class="comment">// run self-test implementations</span></div>
|
||||
<div class="line"><a id="l00271" name="l00271"></a><span class="lineno"> 271</span> <span class="keywordflow">return</span> 0;</div>
|
||||
<div class="line"><a id="l00272" name="l00272"></a><span class="lineno"> 272</span>}</div>
|
||||
</div>
|
||||
<div class="ttc" id="aboyer__moore_8cpp_html_a483bb8ccf42aaf7375a83e91490eda1e"><div class="ttname"><a href="../../d3/db2/boyer__moore_8cpp.html#a483bb8ccf42aaf7375a83e91490eda1e">tests</a></div><div class="ttdeci">static void tests()</div><div class="ttdoc">Self-test implementations.</div><div class="ttdef"><b>Definition</b> <a href="#l00250">boyer_moore.cpp:250</a></div></div>
|
||||
<div class="ttc" id="aboyer__moore_8cpp_html_a77c872c08612d7b8861ba13bc9881cbd"><div class="ttname"><a href="../../d3/db2/boyer__moore_8cpp.html#a77c872c08612d7b8861ba13bc9881cbd">APLHABET_SIZE</a></div><div class="ttdeci">#define APLHABET_SIZE</div><div class="ttdoc">number of symbols in the alphabet we use</div><div class="ttdef"><b>Definition</b> <a href="#l00052">boyer_moore.cpp:52</a></div></div>
|
||||
<div class="ttc" id="aboyer__moore_8cpp_html_ac8fac0dd4b19973da103a434143a16d2"><div class="ttname"><a href="../../d3/db2/boyer__moore_8cpp.html#ac8fac0dd4b19973da103a434143a16d2">pat_test</a></div><div class="ttdeci">void pat_test(const char *text)</div><div class="ttdoc">A test case in which we search for every appearance of the word 'pat'.</div><div class="ttdef"><b>Definition</b> <a href="#l00235">boyer_moore.cpp:235</a></div></div>
|
||||
<div class="ttc" id="aboyer__moore_8cpp_html_acb8f69e7901ee7459d98bd4b9dda79d9"><div class="ttname"><a href="../../d3/db2/boyer__moore_8cpp.html#acb8f69e7901ee7459d98bd4b9dda79d9">and_test</a></div><div class="ttdeci">void and_test(const char *text)</div><div class="ttdoc">A test case in which we search for every appearance of the word 'and'.</div><div class="ttdef"><b>Definition</b> <a href="#l00220">boyer_moore.cpp:220</a></div></div>
|
||||
<div class="ttc" id="aboyer__moore_8cpp_html_ae66f6b31b5ad750f1fe042a706a4e3d4"><div class="ttname"><a href="../../d3/db2/boyer__moore_8cpp.html#ae66f6b31b5ad750f1fe042a706a4e3d4">main</a></div><div class="ttdeci">int main()</div><div class="ttdoc">Main function.</div><div class="ttdef"><b>Definition</b> <a href="#l00269">boyer_moore.cpp:269</a></div></div>
|
||||
<div class="ttc" id="anamespacesearch_html"><div class="ttname"><a href="../../d9/dca/namespacesearch.html">search</a></div><div class="ttdoc">for std::assert</div><div class="ttdef"><b>Definition</b> <a href="../../df/dd5/binary__search_8cpp_source.html#l00047">binary_search.cpp:47</a></div></div>
|
||||
<div class="ttc" id="anamespacestrings_1_1boyer__moore_html_a056122c8fe8fb0f5fca6428d3f7b5c3a"><div class="ttname"><a href="../../d0/dbc/namespacestrings_1_1boyer__moore.html#a056122c8fe8fb0f5fca6428d3f7b5c3a">strings::boyer_moore::is_prefix</a></div><div class="ttdeci">bool is_prefix(const char *str, const char *pat, size_t len)</div><div class="ttdoc">Check if pat is prefix of str.</div><div class="ttdef"><b>Definition</b> <a href="#l00200">boyer_moore.cpp:200</a></div></div>
|
||||
<div class="ttc" id="anamespacestrings_1_1boyer__moore_html_a0b165af1dc341289fd705be4c67728f8"><div class="ttname"><a href="../../d0/dbc/namespacestrings_1_1boyer__moore.html#a0b165af1dc341289fd705be4c67728f8">strings::boyer_moore::init_pattern</a></div><div class="ttdeci">void init_pattern(const std::string &str, pattern &arg)</div><div class="ttdoc">A function that initializes pattern.</div><div class="ttdef"><b>Definition</b> <a href="#l00153">boyer_moore.cpp:153</a></div></div>
|
||||
<div class="ttc" id="anamespacestrings_1_1boyer__moore_html_a15703b553faed0d28202c10808cf9738"><div class="ttname"><a href="../../d0/dbc/namespacestrings_1_1boyer__moore.html#a15703b553faed0d28202c10808cf9738">strings::boyer_moore::search</a></div><div class="ttdeci">std::vector< size_t > search(const std::string &str, const pattern &arg)</div><div class="ttdoc">A function that implements Boyer-Moore's algorithm.</div><div class="ttdef"><b>Definition</b> <a href="#l00165">boyer_moore.cpp:165</a></div></div>
|
||||
<div class="ttc" id="anamespacestrings_1_1boyer__moore_html_a2f6688c9bb3e692297a3aa09cebc1c00"><div class="ttname"><a href="../../d0/dbc/namespacestrings_1_1boyer__moore.html#a2f6688c9bb3e692297a3aa09cebc1c00">strings::boyer_moore::init_bad_char</a></div><div class="ttdeci">void init_bad_char(const std::string &str, std::vector< size_t > &arg)</div><div class="ttdoc">A function that preprocess the bad char table.</div><div class="ttdef"><b>Definition</b> <a href="#l00138">boyer_moore.cpp:138</a></div></div>
|
||||
<div class="ttc" id="anamespacestrings_1_1boyer__moore_html_aa709cf7fca02b7d3e1888423d5f739a1"><div class="ttname"><a href="../../d0/dbc/namespacestrings_1_1boyer__moore.html#aa709cf7fca02b7d3e1888423d5f739a1">strings::boyer_moore::init_good_suffix</a></div><div class="ttdeci">void init_good_suffix(const std::string &str, std::vector< size_t > &arg)</div><div class="ttdoc">A function that preprocess the good suffix thable.</div><div class="ttdef"><b>Definition</b> <a href="#l00089">boyer_moore.cpp:89</a></div></div>
|
||||
<div class="ttc" id="anamespacestrings_html"><div class="ttname"><a href="../../df/dcb/namespacestrings.html">strings</a></div><div class="ttdoc">String algorithms.</div><div class="ttdef"><b>Definition</b> <a href="#l00058">boyer_moore.cpp:58</a></div></div>
|
||||
<div class="ttc" id="astructstrings_1_1boyer__moore_1_1pattern_html"><div class="ttname"><a href="../../dd/d5a/structstrings_1_1boyer__moore_1_1pattern.html">strings::boyer_moore::pattern</a></div><div class="ttdoc">A structure representing all the data we need to search the preprocessed pattern in text.</div><div class="ttdef"><b>Definition</b> <a href="#l00070">boyer_moore.cpp:70</a></div></div>
|
||||
<div class="ttc" id="astructstrings_1_1boyer__moore_1_1pattern_html_a3d62f615a0171a5d77e7018f704f3a7e"><div class="ttname"><a href="../../dd/d5a/structstrings_1_1boyer__moore_1_1pattern.html#a3d62f615a0171a5d77e7018f704f3a7e">strings::boyer_moore::pattern::good_suffix</a></div><div class="ttdeci">std::vector< size_t > good_suffix</div><div class="ttdef"><b>Definition</b> <a href="#l00078">boyer_moore.cpp:78</a></div></div>
|
||||
<div class="ttc" id="astructstrings_1_1boyer__moore_1_1pattern_html_ae5ca7abf15e939eddc80542131de3645"><div class="ttname"><a href="../../dd/d5a/structstrings_1_1boyer__moore_1_1pattern.html#ae5ca7abf15e939eddc80542131de3645">strings::boyer_moore::pattern::bad_char</a></div><div class="ttdeci">std::vector< size_t > bad_char</div><div class="ttdef"><b>Definition</b> <a href="#l00074">boyer_moore.cpp:74</a></div></div>
|
||||
</div><!-- fragment --></div><!-- contents -->
|
||||
</div><!-- doc-content -->
|
||||
<!-- start footer part -->
|
||||
<div id="nav-path" class="navpath"><!-- id is needed for treeview function! -->
|
||||
<ul>
|
||||
<li class="navelem"><a class="el" href="../../dir_73a3cc5065b223eb41b02873c0e19f0e.html">strings</a></li><li class="navelem"><a class="el" href="../../d3/db2/boyer__moore_8cpp.html">boyer_moore.cpp</a></li>
|
||||
<li class="footer">Generated by <a href="https://www.doxygen.org/index.html"><img class="footer" src="../../doxygen.svg" width="104" height="31" alt="doxygen"/></a> 1.12.0 </li>
|
||||
</ul>
|
||||
</div>
|
||||
</body>
|
||||
</html>
|
||||