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++: dynamic_programming/longest_common_string.cpp File Reference</title>
|
||||
<title>TheAlgorithms/C++: dynamic_programming/longest_common_string.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>
|
||||
@@ -123,7 +140,9 @@ Include dependency graph for longest_common_string.cpp:</div>
|
||||
<div class="dyncontent">
|
||||
<div class="center"><iframe scrolling="no" frameborder="0" src="../../d2/d68/longest__common__string_8cpp__incl.svg" width="407" height="126"><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="../../da/d0d/longest__common__string_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="../../da/d86/struct_test_case.html">TestCase</a></td></tr>
|
||||
@@ -132,10 +151,10 @@ Classes</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:aa38b6b17bc5d46ed88acdd8414e18fa5" id="r_aa38b6b17bc5d46ed88acdd8414e18fa5"><td class="memItemLeft" align="right" valign="top"><a class="elRef" target="_blank" href="http://en.cppreference.com/w/cpp/types/size_t.html">std::size_t</a> </td><td class="memItemRight" valign="bottom"><a class="el" href="#aa38b6b17bc5d46ed88acdd8414e18fa5">longest_common_string_length</a> (const <a class="elRef" target="_blank" href="http://en.cppreference.com/w/cpp/string/basic_string.html">std::string</a> &string_a, const <a class="elRef" target="_blank" href="http://en.cppreference.com/w/cpp/string/basic_string.html">std::string</a> &string_b)</td></tr>
|
||||
<tr class="memitem:aa38b6b17bc5d46ed88acdd8414e18fa5" id="r_aa38b6b17bc5d46ed88acdd8414e18fa5"><td class="memItemLeft" align="right" valign="top">std::size_t </td><td class="memItemRight" valign="bottom"><a class="el" href="#aa38b6b17bc5d46ed88acdd8414e18fa5">longest_common_string_length</a> (const std::string &string_a, const std::string &string_b)</td></tr>
|
||||
<tr class="memdesc:aa38b6b17bc5d46ed88acdd8414e18fa5"><td class="mdescLeft"> </td><td class="mdescRight">computes the length of the longest common string created from input strings <br /></td></tr>
|
||||
<tr class="separator:aa38b6b17bc5d46ed88acdd8414e18fa5"><td class="memSeparator" colspan="2"> </td></tr>
|
||||
<tr class="memitem:a967854a526bc15403d783a033155fc5c" id="r_a967854a526bc15403d783a033155fc5c"><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>< <a class="el" href="../../da/d86/struct_test_case.html">TestCase</a> > </td><td class="memItemRight" valign="bottom"><a class="el" href="#a967854a526bc15403d783a033155fc5c">get_test_cases</a> ()</td></tr>
|
||||
<tr class="memitem:a967854a526bc15403d783a033155fc5c" id="r_a967854a526bc15403d783a033155fc5c"><td class="memItemLeft" align="right" valign="top">std::vector< <a class="el" href="../../da/d86/struct_test_case.html">TestCase</a> > </td><td class="memItemRight" valign="bottom"><a class="el" href="#a967854a526bc15403d783a033155fc5c">get_test_cases</a> ()</td></tr>
|
||||
<tr class="separator:a967854a526bc15403d783a033155fc5c"><td class="memSeparator" colspan="2"> </td></tr>
|
||||
<tr class="memitem:a9b229daad982a186a4d8d90aa8f38561" id="r_a9b229daad982a186a4d8d90aa8f38561"><td class="memTemplParams" colspan="2">template<typename <a class="el" href="../../d5/d58/class_test_cases.html">TestCases</a> > </td></tr>
|
||||
<tr class="memitem:a9b229daad982a186a4d8d90aa8f38561"><td class="memTemplItemLeft" align="right" valign="top">static void </td><td class="memTemplItemRight" valign="bottom"><a class="el" href="#a9b229daad982a186a4d8d90aa8f38561">test_longest_common_string_length</a> (const <a class="el" href="../../d5/d58/class_test_cases.html">TestCases</a> &test_cases)</td></tr>
|
||||
@@ -145,7 +164,7 @@ Functions</h2></td></tr>
|
||||
<tr class="memitem:ad1e613c1b85cc04ed931b6c745fec155"><td class="memTemplItemLeft" align="right" valign="top">static void </td><td class="memTemplItemRight" valign="bottom"><a class="el" href="#ad1e613c1b85cc04ed931b6c745fec155">test_longest_common_string_length_is_symmetric</a> (const <a class="el" href="../../d5/d58/class_test_cases.html">TestCases</a> &test_cases)</td></tr>
|
||||
<tr class="memdesc:ad1e613c1b85cc04ed931b6c745fec155"><td class="mdescLeft"> </td><td class="mdescRight">checks if the function <a class="el" href="#aa38b6b17bc5d46ed88acdd8414e18fa5" title="computes the length of the longest common string created from input strings">longest_common_string_length</a> returns the same result when its argument are flipped <br /></td></tr>
|
||||
<tr class="separator:ad1e613c1b85cc04ed931b6c745fec155"><td class="memSeparator" colspan="2"> </td></tr>
|
||||
<tr class="memitem:acb03dbbcee6d607db471021168be8541" id="r_acb03dbbcee6d607db471021168be8541"><td class="memItemLeft" align="right" valign="top"><a class="elRef" target="_blank" href="http://en.cppreference.com/w/cpp/string/basic_string.html">std::string</a> </td><td class="memItemRight" valign="bottom"><a class="el" href="#acb03dbbcee6d607db471021168be8541">reverse_str</a> (const <a class="elRef" target="_blank" href="http://en.cppreference.com/w/cpp/string/basic_string.html">std::string</a> &in_str)</td></tr>
|
||||
<tr class="memitem:acb03dbbcee6d607db471021168be8541" id="r_acb03dbbcee6d607db471021168be8541"><td class="memItemLeft" align="right" valign="top">std::string </td><td class="memItemRight" valign="bottom"><a class="el" href="#acb03dbbcee6d607db471021168be8541">reverse_str</a> (const std::string &in_str)</td></tr>
|
||||
<tr class="memdesc:acb03dbbcee6d607db471021168be8541"><td class="mdescLeft"> </td><td class="mdescRight">reverses a given string <br /></td></tr>
|
||||
<tr class="separator:acb03dbbcee6d607db471021168be8541"><td class="memSeparator" colspan="2"> </td></tr>
|
||||
<tr class="memitem:a23ab67b0d9600697695fc8679462d8fe" id="r_a23ab67b0d9600697695fc8679462d8fe"><td class="memTemplParams" colspan="2">template<typename <a class="el" href="../../d5/d58/class_test_cases.html">TestCases</a> > </td></tr>
|
||||
@@ -165,6 +184,8 @@ Functions</h2></td></tr>
|
||||
<dl class="section author"><dt>Author</dt><dd><a href="https://github.com/nikhilarora068" target="_blank">Nikhil Arora</a> </dd>
|
||||
<dd>
|
||||
<a href="https://github.com/vil02" target="_blank">Piotr Idzik</a> </dd></dl>
|
||||
|
||||
<p class="definition">Definition in file <a class="el" href="../../da/d0d/longest__common__string_8cpp_source.html">longest_common_string.cpp</a>.</p>
|
||||
</div><h2 class="groupheader">Function Documentation</h2>
|
||||
<a id="a967854a526bc15403d783a033155fc5c" name="a967854a526bc15403d783a033155fc5c"></a>
|
||||
<h2 class="memtitle"><span class="permalink"><a href="#a967854a526bc15403d783a033155fc5c">◆ </a></span>get_test_cases()</h2>
|
||||
@@ -173,7 +194,7 @@ Functions</h2></td></tr>
|
||||
<div class="memproto">
|
||||
<table class="memname">
|
||||
<tr>
|
||||
<td class="memname"><a class="elRef" target="_blank" href="http://en.cppreference.com/w/cpp/container/vector.html">std::vector</a>< <a class="el" href="../../da/d86/struct_test_case.html">TestCase</a> > get_test_cases </td>
|
||||
<td class="memname">std::vector< <a class="el" href="../../da/d86/struct_test_case.html">TestCase</a> > get_test_cases </td>
|
||||
<td>(</td>
|
||||
<td class="paramname"><span class="paramname"><em></em></span></td><td>)</td>
|
||||
<td></td>
|
||||
@@ -181,6 +202,8 @@ Functions</h2></td></tr>
|
||||
</table>
|
||||
</div><div class="memdoc">
|
||||
<dl class="section return"><dt>Returns</dt><dd>example data used in the tests of <a class="el" href="#aa38b6b17bc5d46ed88acdd8414e18fa5" title="computes the length of the longest common string created from input strings">longest_common_string_length</a> </dd></dl>
|
||||
|
||||
<p class="definition">Definition at line <a class="el" href="../../da/d0d/longest__common__string_8cpp_source.html#l00069">69</a> of file <a class="el" href="../../da/d0d/longest__common__string_8cpp_source.html">longest_common_string.cpp</a>.</p>
|
||||
<div class="fragment"><div class="line"><span class="lineno"> 69</span> {</div>
|
||||
<div class="line"><span class="lineno"> 70</span> <span class="keywordflow">return</span> {<a class="code hl_struct" href="../../da/d86/struct_test_case.html">TestCase</a>(<span class="stringliteral">""</span>, <span class="stringliteral">""</span>, 0),</div>
|
||||
<div class="line"><span class="lineno"> 71</span> <a class="code hl_struct" href="../../da/d86/struct_test_case.html">TestCase</a>(<span class="stringliteral">"ab"</span>, <span class="stringliteral">"ab"</span>, 2),</div>
|
||||
@@ -196,7 +219,7 @@ Functions</h2></td></tr>
|
||||
<div class="line"><span class="lineno"> 81</span> <a class="code hl_struct" href="../../da/d86/struct_test_case.html">TestCase</a>(<span class="stringliteral">"x1x2x3x"</span>, <span class="stringliteral">"123"</span>, 3),</div>
|
||||
<div class="line"><span class="lineno"> 82</span> <a class="code hl_struct" href="../../da/d86/struct_test_case.html">TestCase</a>(<span class="stringliteral">"x12x3x"</span>, <span class="stringliteral">"123"</span>, 3)};</div>
|
||||
<div class="line"><span class="lineno"> 83</span>}</div>
|
||||
<div class="ttc" id="astruct_test_case_html"><div class="ttname"><a href="../../da/d86/struct_test_case.html">TestCase</a></div><div class="ttdoc">represents single example inputs and expected output of the function longest_common_string_length</div><div class="ttdef"><b>Definition</b> longest_common_string.cpp:54</div></div>
|
||||
<div class="ttc" id="astruct_test_case_html"><div class="ttname"><a href="../../da/d86/struct_test_case.html">TestCase</a></div><div class="ttdoc">represents single example inputs and expected output of the function longest_common_string_length</div><div class="ttdef"><b>Definition</b> <a href="../../da/d0d/longest__common__string_8cpp_source.html#l00054">longest_common_string.cpp:54</a></div></div>
|
||||
</div><!-- fragment -->
|
||||
</div>
|
||||
</div>
|
||||
@@ -207,20 +230,20 @@ Functions</h2></td></tr>
|
||||
<div class="memproto">
|
||||
<table class="memname">
|
||||
<tr>
|
||||
<td class="memname"><a class="elRef" target="_blank" href="http://en.cppreference.com/w/cpp/types/size_t.html">std::size_t</a> longest_common_string_length </td>
|
||||
<td class="memname">std::size_t longest_common_string_length </td>
|
||||
<td>(</td>
|
||||
<td class="paramtype">const <a class="elRef" target="_blank" href="http://en.cppreference.com/w/cpp/string/basic_string.html">std::string</a> &</td> <td class="paramname"><span class="paramname"><em>string_a</em></span>, </td>
|
||||
<td class="paramtype">const std::string &</td> <td class="paramname"><span class="paramname"><em>string_a</em></span>, </td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="paramkey"></td>
|
||||
<td></td>
|
||||
<td class="paramtype">const <a class="elRef" target="_blank" href="http://en.cppreference.com/w/cpp/string/basic_string.html">std::string</a> &</td> <td class="paramname"><span class="paramname"><em>string_b</em></span> )</td>
|
||||
<td class="paramtype">const std::string &</td> <td class="paramname"><span class="paramname"><em>string_b</em></span> )</td>
|
||||
</tr>
|
||||
</table>
|
||||
</div><div class="memdoc">
|
||||
|
||||
<p>computes the length of the longest common string created from input strings </p>
|
||||
<p>for assert for <a class="elRef" target="_blank" href="http://en.cppreference.com/w/cpp/io/basic_ostream.html">std::cout</a> 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/utility/move.html">std::move</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 std::cout for std::string for std::move for std::vector</p>
|
||||
<p>has O(str_a.size()*str_b.size()) time and memory complexity </p><dl class="params"><dt>Parameters</dt><dd>
|
||||
<table class="params">
|
||||
<tr><td class="paramname">string_a</td><td>first input string </td></tr>
|
||||
@@ -229,19 +252,21 @@ Functions</h2></td></tr>
|
||||
</dd>
|
||||
</dl>
|
||||
<dl class="section return"><dt>Returns</dt><dd>the length of the longest common string which can be strated from str_a and str_b </dd></dl>
|
||||
|
||||
<p class="definition">Definition at line <a class="el" href="../../da/d0d/longest__common__string_8cpp_source.html#l00028">28</a> of file <a class="el" href="../../da/d0d/longest__common__string_8cpp_source.html">longest_common_string.cpp</a>.</p>
|
||||
<div class="fragment"><div class="line"><span class="lineno"> 29</span> {</div>
|
||||
<div class="line"><span class="lineno"> 30</span> <span class="keyword">const</span> <span class="keyword">auto</span> size_a = string_a.<a class="code hl_functionRef" target="_blank" href="http://en.cppreference.com/w/cpp/string/basic_string/size.html">size</a>();</div>
|
||||
<div class="line"><span class="lineno"> 31</span> <span class="keyword">const</span> <span class="keyword">auto</span> size_b = string_b.<a class="code hl_functionRef" target="_blank" href="http://en.cppreference.com/w/cpp/string/basic_string/size.html">size</a>();</div>
|
||||
<div class="line"><span class="lineno"> 32</span> <a class="code hl_classRef" target="_blank" href="http://en.cppreference.com/w/cpp/container/vector.html">std::vector<std::vector<std::size_t></a>> sub_sols(</div>
|
||||
<div class="line"><span class="lineno"> 33</span> size_a + 1, <a class="code hl_classRef" target="_blank" href="http://en.cppreference.com/w/cpp/container/vector.html">std::vector<std::size_t></a>(size_b + 1, 0));</div>
|
||||
<div class="line"><span class="lineno"> 30</span> <span class="keyword">const</span> <span class="keyword">auto</span> size_a = string_a.size();</div>
|
||||
<div class="line"><span class="lineno"> 31</span> <span class="keyword">const</span> <span class="keyword">auto</span> size_b = string_b.size();</div>
|
||||
<div class="line"><span class="lineno"> 32</span> std::vector<std::vector<std::size_t>> sub_sols(</div>
|
||||
<div class="line"><span class="lineno"> 33</span> size_a + 1, std::vector<std::size_t>(size_b + 1, 0));</div>
|
||||
<div class="line"><span class="lineno"> 34</span> </div>
|
||||
<div class="line"><span class="lineno"> 35</span> <span class="keyword">const</span> <span class="keyword">auto</span> limit = <span class="keyword">static_cast<</span><a class="code hl_classRef" target="_blank" href="http://en.cppreference.com/w/cpp/types/size_t.html">std::size_t</a><span class="keyword">></span>(-1);</div>
|
||||
<div class="line"><span class="lineno"> 36</span> <span class="keywordflow">for</span> (<a class="code hl_classRef" target="_blank" href="http://en.cppreference.com/w/cpp/types/size_t.html">std::size_t</a> pos_a = size_a - 1; pos_a != limit; --pos_a) {</div>
|
||||
<div class="line"><span class="lineno"> 37</span> <span class="keywordflow">for</span> (<a class="code hl_classRef" target="_blank" href="http://en.cppreference.com/w/cpp/types/size_t.html">std::size_t</a> pos_b = size_b - 1; pos_b != limit; --pos_b) {</div>
|
||||
<div class="line"><span class="lineno"> 35</span> <span class="keyword">const</span> <span class="keyword">auto</span> limit = <span class="keyword">static_cast<</span>std::size_t<span class="keyword">></span>(-1);</div>
|
||||
<div class="line"><span class="lineno"> 36</span> <span class="keywordflow">for</span> (std::size_t pos_a = size_a - 1; pos_a != limit; --pos_a) {</div>
|
||||
<div class="line"><span class="lineno"> 37</span> <span class="keywordflow">for</span> (std::size_t pos_b = size_b - 1; pos_b != limit; --pos_b) {</div>
|
||||
<div class="line"><span class="lineno"> 38</span> <span class="keywordflow">if</span> (string_a[pos_a] == string_b[pos_b]) {</div>
|
||||
<div class="line"><span class="lineno"> 39</span> sub_sols[pos_a][pos_b] = 1 + sub_sols[pos_a + 1][pos_b + 1];</div>
|
||||
<div class="line"><span class="lineno"> 40</span> } <span class="keywordflow">else</span> {</div>
|
||||
<div class="line"><span class="lineno"> 41</span> sub_sols[pos_a][pos_b] = <a class="code hl_functionRef" target="_blank" href="http://en.cppreference.com/w/cpp/algorithm/max.html">std::max</a>(sub_sols[pos_a + 1][pos_b],</div>
|
||||
<div class="line"><span class="lineno"> 41</span> sub_sols[pos_a][pos_b] = std::max(sub_sols[pos_a + 1][pos_b],</div>
|
||||
<div class="line"><span class="lineno"> 42</span> sub_sols[pos_a][pos_b + 1]);</div>
|
||||
<div class="line"><span class="lineno"> 43</span> }</div>
|
||||
<div class="line"><span class="lineno"> 44</span> }</div>
|
||||
@@ -249,16 +274,7 @@ Functions</h2></td></tr>
|
||||
<div class="line"><span class="lineno"> 46</span> </div>
|
||||
<div class="line"><span class="lineno"> 47</span> <span class="keywordflow">return</span> sub_sols[0][0];</div>
|
||||
<div class="line"><span class="lineno"> 48</span>}</div>
|
||||
<div class="ttc" id="amax_html"><div class="ttname"><a href="http://en.cppreference.com/w/cpp/algorithm/max.html">std::max</a></div><div class="ttdeci">T max(T... args)</div></div>
|
||||
<div class="ttc" id="asize_html"><div class="ttname"><a href="http://en.cppreference.com/w/cpp/string/basic_string/size.html">std::string::size</a></div><div class="ttdeci">T size(T... args)</div></div>
|
||||
<div class="ttc" id="asize_t_html"><div class="ttname"><a href="http://en.cppreference.com/w/cpp/types/size_t.html">std::size_t</a></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="../../da/d0d/longest__common__string_8cpp_aa38b6b17bc5d46ed88acdd8414e18fa5_cgraph.svg" width="330" height="86"><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="ae66f6b31b5ad750f1fe042a706a4e3d4" name="ae66f6b31b5ad750f1fe042a706a4e3d4"></a>
|
||||
@@ -278,17 +294,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="../../da/d0d/longest__common__string_8cpp_source.html#l00156">156</a> of file <a class="el" href="../../da/d0d/longest__common__string_8cpp_source.html">longest_common_string.cpp</a>.</p>
|
||||
<div class="fragment"><div class="line"><span class="lineno"> 156</span> {</div>
|
||||
<div class="line"><span class="lineno"> 157</span> <a class="code hl_function" href="#a483bb8ccf42aaf7375a83e91490eda1e">tests</a>();</div>
|
||||
<div class="line"><span class="lineno"> 158</span> <span class="keywordflow">return</span> 0;</div>
|
||||
<div class="line"><span class="lineno"> 159</span>}</div>
|
||||
<div class="ttc" id="alongest__common__string_8cpp_html_a483bb8ccf42aaf7375a83e91490eda1e"><div class="ttname"><a href="#a483bb8ccf42aaf7375a83e91490eda1e">tests</a></div><div class="ttdeci">static void tests()</div><div class="ttdoc">runs all tests for longest_common_string_length funcion</div><div class="ttdef"><b>Definition</b> longest_common_string.cpp:142</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="../../da/d0d/longest__common__string_8cpp_ae66f6b31b5ad750f1fe042a706a4e3d4_cgraph.svg" width="100%" height="505"><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="alongest__common__string_8cpp_html_a483bb8ccf42aaf7375a83e91490eda1e"><div class="ttname"><a href="#a483bb8ccf42aaf7375a83e91490eda1e">tests</a></div><div class="ttdeci">static void tests()</div><div class="ttdoc">runs all tests for longest_common_string_length funcion</div><div class="ttdef"><b>Definition</b> <a href="../../da/d0d/longest__common__string_8cpp_source.html#l00142">longest_common_string.cpp:142</a></div></div>
|
||||
</div><!-- fragment -->
|
||||
</div>
|
||||
</div>
|
||||
<a id="acb03dbbcee6d607db471021168be8541" name="acb03dbbcee6d607db471021168be8541"></a>
|
||||
@@ -298,9 +311,9 @@ Here is the call graph for this function:</div>
|
||||
<div class="memproto">
|
||||
<table class="memname">
|
||||
<tr>
|
||||
<td class="memname"><a class="elRef" target="_blank" href="http://en.cppreference.com/w/cpp/string/basic_string.html">std::string</a> reverse_str </td>
|
||||
<td class="memname">std::string reverse_str </td>
|
||||
<td>(</td>
|
||||
<td class="paramtype">const <a class="elRef" target="_blank" href="http://en.cppreference.com/w/cpp/string/basic_string.html">std::string</a> &</td> <td class="paramname"><span class="paramname"><em>in_str</em></span></td><td>)</td>
|
||||
<td class="paramtype">const std::string &</td> <td class="paramname"><span class="paramname"><em>in_str</em></span></td><td>)</td>
|
||||
<td></td>
|
||||
</tr>
|
||||
</table>
|
||||
@@ -314,17 +327,12 @@ Here is the call graph for this function:</div>
|
||||
</dd>
|
||||
</dl>
|
||||
<dl class="section return"><dt>Returns</dt><dd>the string in which the characters appear in the reversed order as in in_str </dd></dl>
|
||||
<div class="fragment"><div class="line"><span class="lineno"> 119</span> {</div>
|
||||
<div class="line"><span class="lineno"> 120</span> <span class="keywordflow">return</span> {in_str.<a class="code hl_functionRef" target="_blank" href="http://en.cppreference.com/w/cpp/string/basic_string/rbegin.html">rbegin</a>(), in_str.<a class="code hl_functionRef" target="_blank" href="http://en.cppreference.com/w/cpp/string/basic_string/rend.html">rend</a>()};</div>
|
||||
<div class="line"><span class="lineno"> 121</span>}</div>
|
||||
<div class="ttc" id="arbegin_html"><div class="ttname"><a href="http://en.cppreference.com/w/cpp/string/basic_string/rbegin.html">std::string::rbegin</a></div><div class="ttdeci">T rbegin(T... args)</div></div>
|
||||
<div class="ttc" id="arend_html"><div class="ttname"><a href="http://en.cppreference.com/w/cpp/string/basic_string/rend.html">std::string::rend</a></div><div class="ttdeci">T rend(T... args)</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="../../da/d0d/longest__common__string_8cpp_acb03dbbcee6d607db471021168be8541_cgraph.svg" width="268" height="86"><p><b>This browser is not able to show SVG: try Firefox, Chrome, Safari, or Opera instead.</b></p></iframe></div>
|
||||
</div>
|
||||
|
||||
<p class="definition">Definition at line <a class="el" href="../../da/d0d/longest__common__string_8cpp_source.html#l00119">119</a> of file <a class="el" href="../../da/d0d/longest__common__string_8cpp_source.html">longest_common_string.cpp</a>.</p>
|
||||
<div class="fragment"><div class="line"><span class="lineno"> 119</span> {</div>
|
||||
<div class="line"><span class="lineno"> 120</span> <span class="keywordflow">return</span> {in_str.rbegin(), in_str.rend()};</div>
|
||||
<div class="line"><span class="lineno"> 121</span>}</div>
|
||||
</div><!-- fragment -->
|
||||
</div>
|
||||
</div>
|
||||
<a id="a9b229daad982a186a4d8d90aa8f38561" name="a9b229daad982a186a4d8d90aa8f38561"></a>
|
||||
@@ -365,19 +373,16 @@ template<typename <a class="el" href="../../d5/d58/class_test_cases.html">Tes
|
||||
</table>
|
||||
</dd>
|
||||
</dl>
|
||||
|
||||
<p class="definition">Definition at line <a class="el" href="../../da/d0d/longest__common__string_8cpp_source.html#l00091">91</a> of file <a class="el" href="../../da/d0d/longest__common__string_8cpp_source.html">longest_common_string.cpp</a>.</p>
|
||||
<div class="fragment"><div class="line"><span class="lineno"> 91</span> {</div>
|
||||
<div class="line"><span class="lineno"> 92</span> <span class="keywordflow">for</span> (<span class="keyword">const</span> <span class="keyword">auto</span>& cur_tc : test_cases) {</div>
|
||||
<div class="line"><span class="lineno"> 93</span> assert(<a class="code hl_function" href="#aa38b6b17bc5d46ed88acdd8414e18fa5">longest_common_string_length</a>(cur_tc.string_a, cur_tc.string_b) ==</div>
|
||||
<div class="line"><span class="lineno"> 94</span> cur_tc.common_string_len);</div>
|
||||
<div class="line"><span class="lineno"> 95</span> }</div>
|
||||
<div class="line"><span class="lineno"> 96</span>}</div>
|
||||
<div class="ttc" id="alongest__common__string_8cpp_html_aa38b6b17bc5d46ed88acdd8414e18fa5"><div class="ttname"><a href="#aa38b6b17bc5d46ed88acdd8414e18fa5">longest_common_string_length</a></div><div class="ttdeci">std::size_t longest_common_string_length(const std::string &string_a, const std::string &string_b)</div><div class="ttdoc">computes the length of the longest common string created from input strings</div><div class="ttdef"><b>Definition</b> longest_common_string.cpp:28</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="../../da/d0d/longest__common__string_8cpp_a9b229daad982a186a4d8d90aa8f38561_cgraph.svg" width="527" height="86"><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="alongest__common__string_8cpp_html_aa38b6b17bc5d46ed88acdd8414e18fa5"><div class="ttname"><a href="#aa38b6b17bc5d46ed88acdd8414e18fa5">longest_common_string_length</a></div><div class="ttdeci">std::size_t longest_common_string_length(const std::string &string_a, const std::string &string_b)</div><div class="ttdoc">computes the length of the longest common string created from input strings</div><div class="ttdef"><b>Definition</b> <a href="../../da/d0d/longest__common__string_8cpp_source.html#l00028">longest_common_string.cpp:28</a></div></div>
|
||||
</div><!-- fragment -->
|
||||
</div>
|
||||
</div>
|
||||
<a id="a23ab67b0d9600697695fc8679462d8fe" name="a23ab67b0d9600697695fc8679462d8fe"></a>
|
||||
@@ -418,6 +423,8 @@ template<typename <a class="el" href="../../d5/d58/class_test_cases.html">Tes
|
||||
</table>
|
||||
</dd>
|
||||
</dl>
|
||||
|
||||
<p class="definition">Definition at line <a class="el" href="../../da/d0d/longest__common__string_8cpp_source.html#l00130">130</a> of file <a class="el" href="../../da/d0d/longest__common__string_8cpp_source.html">longest_common_string.cpp</a>.</p>
|
||||
<div class="fragment"><div class="line"><span class="lineno"> 131</span> {</div>
|
||||
<div class="line"><span class="lineno"> 132</span> <span class="keywordflow">for</span> (<span class="keyword">const</span> <span class="keyword">auto</span>& cur_tc : test_cases) {</div>
|
||||
<div class="line"><span class="lineno"> 133</span> assert(<a class="code hl_function" href="#aa38b6b17bc5d46ed88acdd8414e18fa5">longest_common_string_length</a>(<a class="code hl_function" href="#acb03dbbcee6d607db471021168be8541">reverse_str</a>(cur_tc.string_a),</div>
|
||||
@@ -425,13 +432,8 @@ template<typename <a class="el" href="../../d5/d58/class_test_cases.html">Tes
|
||||
<div class="line"><span class="lineno"> 135</span> cur_tc.common_string_len);</div>
|
||||
<div class="line"><span class="lineno"> 136</span> }</div>
|
||||
<div class="line"><span class="lineno"> 137</span>}</div>
|
||||
<div class="ttc" id="alongest__common__string_8cpp_html_acb03dbbcee6d607db471021168be8541"><div class="ttname"><a href="#acb03dbbcee6d607db471021168be8541">reverse_str</a></div><div class="ttdeci">std::string reverse_str(const std::string &in_str)</div><div class="ttdoc">reverses a given string</div><div class="ttdef"><b>Definition</b> longest_common_string.cpp:119</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="../../da/d0d/longest__common__string_8cpp_a23ab67b0d9600697695fc8679462d8fe_cgraph.svg" width="570" height="188"><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="alongest__common__string_8cpp_html_acb03dbbcee6d607db471021168be8541"><div class="ttname"><a href="#acb03dbbcee6d607db471021168be8541">reverse_str</a></div><div class="ttdeci">std::string reverse_str(const std::string &in_str)</div><div class="ttdoc">reverses a given string</div><div class="ttdef"><b>Definition</b> <a href="../../da/d0d/longest__common__string_8cpp_source.html#l00119">longest_common_string.cpp:119</a></div></div>
|
||||
</div><!-- fragment -->
|
||||
</div>
|
||||
</div>
|
||||
<a id="ad1e613c1b85cc04ed931b6c745fec155" name="ad1e613c1b85cc04ed931b6c745fec155"></a>
|
||||
@@ -472,18 +474,15 @@ template<typename <a class="el" href="../../d5/d58/class_test_cases.html">Tes
|
||||
</table>
|
||||
</dd>
|
||||
</dl>
|
||||
|
||||
<p class="definition">Definition at line <a class="el" href="../../da/d0d/longest__common__string_8cpp_source.html#l00105">105</a> of file <a class="el" href="../../da/d0d/longest__common__string_8cpp_source.html">longest_common_string.cpp</a>.</p>
|
||||
<div class="fragment"><div class="line"><span class="lineno"> 106</span> {</div>
|
||||
<div class="line"><span class="lineno"> 107</span> <span class="keywordflow">for</span> (<span class="keyword">const</span> <span class="keyword">auto</span>& cur_tc : test_cases) {</div>
|
||||
<div class="line"><span class="lineno"> 108</span> assert(<a class="code hl_function" href="#aa38b6b17bc5d46ed88acdd8414e18fa5">longest_common_string_length</a>(cur_tc.string_b, cur_tc.string_a) ==</div>
|
||||
<div class="line"><span class="lineno"> 109</span> cur_tc.common_string_len);</div>
|
||||
<div class="line"><span class="lineno"> 110</span> }</div>
|
||||
<div class="line"><span class="lineno"> 111</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="../../da/d0d/longest__common__string_8cpp_ad1e613c1b85cc04ed931b6c745fec155_cgraph.svg" width="566" height="86"><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>
|
||||
@@ -510,6 +509,8 @@ Here is the call graph for this function:</div>
|
||||
</div><div class="memdoc">
|
||||
|
||||
<p>runs all tests for <a class="el" href="#aa38b6b17bc5d46ed88acdd8414e18fa5" title="computes the length of the longest common string created from input strings">longest_common_string_length</a> funcion </p>
|
||||
|
||||
<p class="definition">Definition at line <a class="el" href="../../da/d0d/longest__common__string_8cpp_source.html#l00142">142</a> of file <a class="el" href="../../da/d0d/longest__common__string_8cpp_source.html">longest_common_string.cpp</a>.</p>
|
||||
<div class="fragment"><div class="line"><span class="lineno"> 142</span> {</div>
|
||||
<div class="line"><span class="lineno"> 143</span> <span class="keyword">const</span> <span class="keyword">auto</span> test_cases = <a class="code hl_function" href="#a967854a526bc15403d783a033155fc5c">get_test_cases</a>();</div>
|
||||
<div class="line"><span class="lineno"> 144</span> assert(test_cases.size() > 0);</div>
|
||||
@@ -517,19 +518,13 @@ Here is the call graph for this function:</div>
|
||||
<div class="line"><span class="lineno"> 146</span> <a class="code hl_function" href="#ad1e613c1b85cc04ed931b6c745fec155">test_longest_common_string_length_is_symmetric</a>(test_cases);</div>
|
||||
<div class="line"><span class="lineno"> 147</span> <a class="code hl_function" href="#a23ab67b0d9600697695fc8679462d8fe">test_longest_common_string_length_for_reversed_inputs</a>(test_cases);</div>
|
||||
<div class="line"><span class="lineno"> 148</span> </div>
|
||||
<div class="line"><span class="lineno"> 149</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"> 149</span> std::cout << <span class="stringliteral">"All tests have successfully passed!\n"</span>;</div>
|
||||
<div class="line"><span class="lineno"> 150</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="alongest__common__string_8cpp_html_a23ab67b0d9600697695fc8679462d8fe"><div class="ttname"><a href="#a23ab67b0d9600697695fc8679462d8fe">test_longest_common_string_length_for_reversed_inputs</a></div><div class="ttdeci">static void test_longest_common_string_length_for_reversed_inputs(const TestCases &test_cases)</div><div class="ttdoc">checks if the function longest_common_string_length returns the same result when its inputs are rever...</div><div class="ttdef"><b>Definition</b> longest_common_string.cpp:130</div></div>
|
||||
<div class="ttc" id="alongest__common__string_8cpp_html_a967854a526bc15403d783a033155fc5c"><div class="ttname"><a href="#a967854a526bc15403d783a033155fc5c">get_test_cases</a></div><div class="ttdeci">std::vector< TestCase > get_test_cases()</div><div class="ttdef"><b>Definition</b> longest_common_string.cpp:69</div></div>
|
||||
<div class="ttc" id="alongest__common__string_8cpp_html_a9b229daad982a186a4d8d90aa8f38561"><div class="ttname"><a href="#a9b229daad982a186a4d8d90aa8f38561">test_longest_common_string_length</a></div><div class="ttdeci">static void test_longest_common_string_length(const TestCases &test_cases)</div><div class="ttdoc">checks the function longest_common_string_length agains example data</div><div class="ttdef"><b>Definition</b> longest_common_string.cpp:91</div></div>
|
||||
<div class="ttc" id="alongest__common__string_8cpp_html_ad1e613c1b85cc04ed931b6c745fec155"><div class="ttname"><a href="#ad1e613c1b85cc04ed931b6c745fec155">test_longest_common_string_length_is_symmetric</a></div><div class="ttdeci">static void test_longest_common_string_length_is_symmetric(const TestCases &test_cases)</div><div class="ttdoc">checks if the function longest_common_string_length returns the same result when its argument are fli...</div><div class="ttdef"><b>Definition</b> longest_common_string.cpp:105</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="../../da/d0d/longest__common__string_8cpp_a483bb8ccf42aaf7375a83e91490eda1e_cgraph.svg" width="100%" height="505"><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="alongest__common__string_8cpp_html_a23ab67b0d9600697695fc8679462d8fe"><div class="ttname"><a href="#a23ab67b0d9600697695fc8679462d8fe">test_longest_common_string_length_for_reversed_inputs</a></div><div class="ttdeci">static void test_longest_common_string_length_for_reversed_inputs(const TestCases &test_cases)</div><div class="ttdoc">checks if the function longest_common_string_length returns the same result when its inputs are rever...</div><div class="ttdef"><b>Definition</b> <a href="../../da/d0d/longest__common__string_8cpp_source.html#l00130">longest_common_string.cpp:130</a></div></div>
|
||||
<div class="ttc" id="alongest__common__string_8cpp_html_a967854a526bc15403d783a033155fc5c"><div class="ttname"><a href="#a967854a526bc15403d783a033155fc5c">get_test_cases</a></div><div class="ttdeci">std::vector< TestCase > get_test_cases()</div><div class="ttdef"><b>Definition</b> <a href="../../da/d0d/longest__common__string_8cpp_source.html#l00069">longest_common_string.cpp:69</a></div></div>
|
||||
<div class="ttc" id="alongest__common__string_8cpp_html_a9b229daad982a186a4d8d90aa8f38561"><div class="ttname"><a href="#a9b229daad982a186a4d8d90aa8f38561">test_longest_common_string_length</a></div><div class="ttdeci">static void test_longest_common_string_length(const TestCases &test_cases)</div><div class="ttdoc">checks the function longest_common_string_length agains example data</div><div class="ttdef"><b>Definition</b> <a href="../../da/d0d/longest__common__string_8cpp_source.html#l00091">longest_common_string.cpp:91</a></div></div>
|
||||
<div class="ttc" id="alongest__common__string_8cpp_html_ad1e613c1b85cc04ed931b6c745fec155"><div class="ttname"><a href="#ad1e613c1b85cc04ed931b6c745fec155">test_longest_common_string_length_is_symmetric</a></div><div class="ttdeci">static void test_longest_common_string_length_is_symmetric(const TestCases &test_cases)</div><div class="ttdoc">checks if the function longest_common_string_length returns the same result when its argument are fli...</div><div class="ttdef"><b>Definition</b> <a href="../../da/d0d/longest__common__string_8cpp_source.html#l00105">longest_common_string.cpp:105</a></div></div>
|
||||
</div><!-- fragment -->
|
||||
</div>
|
||||
</div>
|
||||
</div><!-- contents -->
|
||||
|
||||
@@ -1,15 +0,0 @@
|
||||
<map id="test_longest_common_string_length_for_reversed_inputs" name="test_longest_common_string_length_for_reversed_inputs">
|
||||
<area shape="rect" id="Node000001" title="checks if the function longest_common_string_length returns the same result when its inputs are rever..." alt="" coords="5,68,187,123"/>
|
||||
<area shape="rect" id="Node000002" href="$da/d0d/longest__common__string_8cpp.html#aa38b6b17bc5d46ed88acdd8414e18fa5" title="computes the length of the longest common string created from input strings" alt="" coords="235,46,394,86"/>
|
||||
<area shape="poly" id="edge1_Node000001_Node000002" title=" " alt="" coords="187,81,219,76,219,82,187,86"/>
|
||||
<area shape="rect" id="Node000005" href="$da/d0d/longest__common__string_8cpp.html#acb03dbbcee6d607db471021168be8541" title="reverses a given string" alt="" coords="271,111,358,136"/>
|
||||
<area shape="poly" id="edge4_Node000001_Node000005" title=" " alt="" coords="187,104,257,113,256,119,187,110"/>
|
||||
<area shape="rect" id="Node000003" href="/Users/runner/work/C-Plus-Plus/C-Plus-Plus/doc/cppreference-doxygen-web.tag.xml$cpp/algorithm/max.html#" title=" " alt="" coords="467,5,539,31"/>
|
||||
<area shape="poly" id="edge2_Node000002_Node000003" title=" " alt="" coords="394,43,451,28,453,34,395,48"/>
|
||||
<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="448,55,559,80"/>
|
||||
<area shape="poly" id="edge3_Node000002_Node000004" title=" " alt="" coords="395,64,432,64,432,70,395,69"/>
|
||||
<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/rbegin.html#" title=" " alt="" coords="442,108,564,134"/>
|
||||
<area shape="poly" id="edge5_Node000005_Node000006" title=" " alt="" coords="358,120,426,119,426,125,358,126"/>
|
||||
<area shape="rect" id="Node000007" href="/Users/runner/work/C-Plus-Plus/C-Plus-Plus/doc/cppreference-doxygen-web.tag.xml$cpp/string/basic_string/rend.html#" title=" " alt="" coords="447,157,559,183"/>
|
||||
<area shape="poly" id="edge6_Node000005_Node000007" title=" " alt="" coords="359,132,434,150,433,156,357,137"/>
|
||||
</map>
|
||||
@@ -1 +0,0 @@
|
||||
316158dbc79b6fd882f0a06cff88034a
|
||||
@@ -1,158 +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: test_longest_common_string_length_for_reversed_inputs Pages: 1 -->
|
||||
<svg width="427pt" height="141pt"
|
||||
viewBox="0.00 0.00 427.25 141.25" 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 137.25)">
|
||||
<title>test_longest_common_string_length_for_reversed_inputs</title>
|
||||
<!-- Node1 -->
|
||||
<g id="Node000001" class="node">
|
||||
<title>Node1</title>
|
||||
<g id="a_Node000001"><a xlink:title="checks if the function longest_common_string_length returns the same result when its inputs are rever...">
|
||||
<polygon fill="#999999" stroke="#666666" points="136,-86.5 0,-86.5 0,-44.75 136,-44.75 136,-86.5"/>
|
||||
<text text-anchor="start" x="8" y="-73" font-family="Helvetica,sans-Serif" font-size="10.00">test_longest_common</text>
|
||||
<text text-anchor="start" x="8" y="-61.75" font-family="Helvetica,sans-Serif" font-size="10.00">_string_length_for_reversed</text>
|
||||
<text text-anchor="middle" x="68" y="-50.5" font-family="Helvetica,sans-Serif" font-size="10.00">_inputs</text>
|
||||
</a>
|
||||
</g>
|
||||
</g>
|
||||
<!-- Node2 -->
|
||||
<g id="Node000002" class="node">
|
||||
<title>Node2</title>
|
||||
<g id="a_Node000002"><a xlink:href="../../da/d0d/longest__common__string_8cpp.html#aa38b6b17bc5d46ed88acdd8414e18fa5" target="_top" xlink:title="computes the length of the longest common string created from input strings">
|
||||
<polygon fill="white" stroke="#666666" points="291.5,-102.88 172,-102.88 172,-72.38 291.5,-72.38 291.5,-102.88"/>
|
||||
<text text-anchor="start" x="180" y="-89.38" font-family="Helvetica,sans-Serif" font-size="10.00">longest_common_string</text>
|
||||
<text text-anchor="middle" x="231.75" y="-78.12" font-family="Helvetica,sans-Serif" font-size="10.00">_length</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="M136.19,-74.76C144.16,-75.85 152.3,-76.96 160.31,-78.04"/>
|
||||
<polygon fill="#63b8ff" stroke="#63b8ff" points="159.63,-81.48 170.01,-79.36 160.57,-74.55 159.63,-81.48"/>
|
||||
</a>
|
||||
</g>
|
||||
</g>
|
||||
<!-- Node5 -->
|
||||
<g id="Node000005" class="node">
|
||||
<title>Node5</title>
|
||||
<g id="a_Node000005"><a xlink:href="../../da/d0d/longest__common__string_8cpp.html#acb03dbbcee6d607db471021168be8541" target="_top" xlink:title="reverses a given string">
|
||||
<polygon fill="white" stroke="#666666" points="264.12,-54.25 199.38,-54.25 199.38,-35 264.12,-35 264.12,-54.25"/>
|
||||
<text text-anchor="middle" x="231.75" y="-40.75" font-family="Helvetica,sans-Serif" font-size="10.00">reverse_str</text>
|
||||
</a>
|
||||
</g>
|
||||
</g>
|
||||
<!-- Node1->Node5 -->
|
||||
<g id="edge4_Node000001_Node000005" class="edge">
|
||||
<title>Node1->Node5</title>
|
||||
<g id="a_edge4_Node000001_Node000005"><a xlink:title=" ">
|
||||
<path fill="none" stroke="#63b8ff" d="M136.19,-56.9C153.79,-54.62 172.28,-52.22 188.2,-50.15"/>
|
||||
<polygon fill="#63b8ff" stroke="#63b8ff" points="188.32,-53.66 197.78,-48.91 187.42,-46.72 188.32,-53.66"/>
|
||||
</a>
|
||||
</g>
|
||||
</g>
|
||||
<!-- Node3 -->
|
||||
<g id="Node000003" class="node">
|
||||
<title>Node3</title>
|
||||
<g id="a_Node000003"><a target="_blank" xlink:href="http://en.cppreference.com/w/cpp/algorithm/max.html#" xlink:title=" ">
|
||||
<polygon fill="white" stroke="#666666" points="400.5,-133.25 346.25,-133.25 346.25,-114 400.5,-114 400.5,-133.25"/>
|
||||
<text text-anchor="middle" x="373.38" y="-119.75" font-family="Helvetica,sans-Serif" font-size="10.00">std::max</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="M291.96,-102.89C306.57,-106.66 321.8,-110.59 335.03,-114"/>
|
||||
<polygon fill="#63b8ff" stroke="#63b8ff" points="334.06,-117.36 344.61,-116.47 335.8,-110.58 334.06,-117.36"/>
|
||||
</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="415.12,-96.25 331.62,-96.25 331.62,-77 415.12,-77 415.12,-96.25"/>
|
||||
<text text-anchor="middle" x="373.38" y="-82.75" font-family="Helvetica,sans-Serif" font-size="10.00">std::string::size</text>
|
||||
</a>
|
||||
</g>
|
||||
</g>
|
||||
<!-- Node2->Node4 -->
|
||||
<g id="edge3_Node000002_Node000004" class="edge">
|
||||
<title>Node2->Node4</title>
|
||||
<g id="a_edge3_Node000002_Node000004"><a xlink:title=" ">
|
||||
<path fill="none" stroke="#63b8ff" d="M291.96,-87.2C301.27,-87.13 310.83,-87.07 319.96,-87"/>
|
||||
<polygon fill="#63b8ff" stroke="#63b8ff" points="319.76,-90.5 329.74,-86.93 319.71,-83.5 319.76,-90.5"/>
|
||||
</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/rbegin.html#" xlink:title=" ">
|
||||
<polygon fill="white" stroke="#666666" points="419.25,-56.25 327.5,-56.25 327.5,-37 419.25,-37 419.25,-56.25"/>
|
||||
<text text-anchor="middle" x="373.38" y="-42.75" font-family="Helvetica,sans-Serif" font-size="10.00">std::string::rbegin</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="M264.43,-45.08C279.61,-45.3 298.26,-45.56 315.76,-45.81"/>
|
||||
<polygon fill="#63b8ff" stroke="#63b8ff" points="315.49,-49.31 325.54,-45.95 315.59,-42.31 315.49,-49.31"/>
|
||||
</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/string/basic_string/rend.html#" xlink:title=" ">
|
||||
<polygon fill="white" stroke="#666666" points="415.5,-19.25 331.25,-19.25 331.25,0 415.5,0 415.5,-19.25"/>
|
||||
<text text-anchor="middle" x="373.38" y="-5.75" font-family="Helvetica,sans-Serif" font-size="10.00">std::string::rend</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="M264.43,-36.68C281.18,-32.48 302.15,-27.23 321.14,-22.47"/>
|
||||
<polygon fill="#63b8ff" stroke="#63b8ff" points="321.73,-25.93 330.58,-20.1 320.03,-19.14 321.73,-25.93"/>
|
||||
</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: 7.2 KiB |
@@ -1,132 +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: test_longest_common_string_length_for_reversed_inputs Pages: 1 -->
|
||||
<svg width="427pt" height="141pt"
|
||||
viewBox="0.00 0.00 427.25 141.25" 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 137.25)">
|
||||
<title>test_longest_common_string_length_for_reversed_inputs</title>
|
||||
<!-- Node1 -->
|
||||
<g id="Node000001" class="node">
|
||||
<title>Node1</title>
|
||||
<g id="a_Node000001"><a xlink:title="checks if the function longest_common_string_length returns the same result when its inputs are rever...">
|
||||
<polygon fill="#999999" stroke="#666666" points="136,-86.5 0,-86.5 0,-44.75 136,-44.75 136,-86.5"/>
|
||||
<text text-anchor="start" x="8" y="-73" font-family="Helvetica,sans-Serif" font-size="10.00">test_longest_common</text>
|
||||
<text text-anchor="start" x="8" y="-61.75" font-family="Helvetica,sans-Serif" font-size="10.00">_string_length_for_reversed</text>
|
||||
<text text-anchor="middle" x="68" y="-50.5" font-family="Helvetica,sans-Serif" font-size="10.00">_inputs</text>
|
||||
</a>
|
||||
</g>
|
||||
</g>
|
||||
<!-- Node2 -->
|
||||
<g id="Node000002" class="node">
|
||||
<title>Node2</title>
|
||||
<g id="a_Node000002"><a xlink:href="../../da/d0d/longest__common__string_8cpp.html#aa38b6b17bc5d46ed88acdd8414e18fa5" target="_top" xlink:title="computes the length of the longest common string created from input strings">
|
||||
<polygon fill="white" stroke="#666666" points="291.5,-102.88 172,-102.88 172,-72.38 291.5,-72.38 291.5,-102.88"/>
|
||||
<text text-anchor="start" x="180" y="-89.38" font-family="Helvetica,sans-Serif" font-size="10.00">longest_common_string</text>
|
||||
<text text-anchor="middle" x="231.75" y="-78.12" font-family="Helvetica,sans-Serif" font-size="10.00">_length</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="M136.19,-74.76C144.16,-75.85 152.3,-76.96 160.31,-78.04"/>
|
||||
<polygon fill="#63b8ff" stroke="#63b8ff" points="159.63,-81.48 170.01,-79.36 160.57,-74.55 159.63,-81.48"/>
|
||||
</a>
|
||||
</g>
|
||||
</g>
|
||||
<!-- Node5 -->
|
||||
<g id="Node000005" class="node">
|
||||
<title>Node5</title>
|
||||
<g id="a_Node000005"><a xlink:href="../../da/d0d/longest__common__string_8cpp.html#acb03dbbcee6d607db471021168be8541" target="_top" xlink:title="reverses a given string">
|
||||
<polygon fill="white" stroke="#666666" points="264.12,-54.25 199.38,-54.25 199.38,-35 264.12,-35 264.12,-54.25"/>
|
||||
<text text-anchor="middle" x="231.75" y="-40.75" font-family="Helvetica,sans-Serif" font-size="10.00">reverse_str</text>
|
||||
</a>
|
||||
</g>
|
||||
</g>
|
||||
<!-- Node1->Node5 -->
|
||||
<g id="edge4_Node000001_Node000005" class="edge">
|
||||
<title>Node1->Node5</title>
|
||||
<g id="a_edge4_Node000001_Node000005"><a xlink:title=" ">
|
||||
<path fill="none" stroke="#63b8ff" d="M136.19,-56.9C153.79,-54.62 172.28,-52.22 188.2,-50.15"/>
|
||||
<polygon fill="#63b8ff" stroke="#63b8ff" points="188.32,-53.66 197.78,-48.91 187.42,-46.72 188.32,-53.66"/>
|
||||
</a>
|
||||
</g>
|
||||
</g>
|
||||
<!-- Node3 -->
|
||||
<g id="Node000003" class="node">
|
||||
<title>Node3</title>
|
||||
<g id="a_Node000003"><a target="_blank" xlink:href="http://en.cppreference.com/w/cpp/algorithm/max.html#" xlink:title=" ">
|
||||
<polygon fill="white" stroke="#666666" points="400.5,-133.25 346.25,-133.25 346.25,-114 400.5,-114 400.5,-133.25"/>
|
||||
<text text-anchor="middle" x="373.38" y="-119.75" font-family="Helvetica,sans-Serif" font-size="10.00">std::max</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="M291.96,-102.89C306.57,-106.66 321.8,-110.59 335.03,-114"/>
|
||||
<polygon fill="#63b8ff" stroke="#63b8ff" points="334.06,-117.36 344.61,-116.47 335.8,-110.58 334.06,-117.36"/>
|
||||
</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="415.12,-96.25 331.62,-96.25 331.62,-77 415.12,-77 415.12,-96.25"/>
|
||||
<text text-anchor="middle" x="373.38" y="-82.75" font-family="Helvetica,sans-Serif" font-size="10.00">std::string::size</text>
|
||||
</a>
|
||||
</g>
|
||||
</g>
|
||||
<!-- Node2->Node4 -->
|
||||
<g id="edge3_Node000002_Node000004" class="edge">
|
||||
<title>Node2->Node4</title>
|
||||
<g id="a_edge3_Node000002_Node000004"><a xlink:title=" ">
|
||||
<path fill="none" stroke="#63b8ff" d="M291.96,-87.2C301.27,-87.13 310.83,-87.07 319.96,-87"/>
|
||||
<polygon fill="#63b8ff" stroke="#63b8ff" points="319.76,-90.5 329.74,-86.93 319.71,-83.5 319.76,-90.5"/>
|
||||
</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/rbegin.html#" xlink:title=" ">
|
||||
<polygon fill="white" stroke="#666666" points="419.25,-56.25 327.5,-56.25 327.5,-37 419.25,-37 419.25,-56.25"/>
|
||||
<text text-anchor="middle" x="373.38" y="-42.75" font-family="Helvetica,sans-Serif" font-size="10.00">std::string::rbegin</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="M264.43,-45.08C279.61,-45.3 298.26,-45.56 315.76,-45.81"/>
|
||||
<polygon fill="#63b8ff" stroke="#63b8ff" points="315.49,-49.31 325.54,-45.95 315.59,-42.31 315.49,-49.31"/>
|
||||
</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/string/basic_string/rend.html#" xlink:title=" ">
|
||||
<polygon fill="white" stroke="#666666" points="415.5,-19.25 331.25,-19.25 331.25,0 415.5,0 415.5,-19.25"/>
|
||||
<text text-anchor="middle" x="373.38" y="-5.75" font-family="Helvetica,sans-Serif" font-size="10.00">std::string::rend</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="M264.43,-36.68C281.18,-32.48 302.15,-27.23 321.14,-22.47"/>
|
||||
<polygon fill="#63b8ff" stroke="#63b8ff" points="321.73,-25.93 330.58,-20.1 320.03,-19.14 321.73,-25.93"/>
|
||||
</a>
|
||||
</g>
|
||||
</g>
|
||||
</g>
|
||||
</svg>
|
||||
|
Before Width: | Height: | Size: 6.5 KiB |
@@ -1,25 +0,0 @@
|
||||
<map id="tests" name="tests">
|
||||
<area shape="rect" id="Node000001" title="runs all tests for longest_common_string_length funcion" alt="" coords="5,96,56,122"/>
|
||||
<area shape="rect" id="Node000002" href="$da/d0d/longest__common__string_8cpp.html#a967854a526bc15403d783a033155fc5c" title=" " alt="" coords="142,5,252,31"/>
|
||||
<area shape="poly" id="edge1_Node000001_Node000002" title=" " alt="" coords="41,94,67,67,102,41,126,31,128,36,105,46,70,71,45,98"/>
|
||||
<area shape="rect" id="Node000003" href="$da/d0d/longest__common__string_8cpp.html#a9b229daad982a186a4d8d90aa8f38561" title="checks the function longest_common_string_length agains example data" alt="" coords="123,55,272,96"/>
|
||||
<area shape="poly" id="edge2_Node000001_Node000003" title=" " alt="" coords="56,101,107,91,108,96,57,107"/>
|
||||
<area shape="rect" id="Node000007" href="$da/d0d/longest__common__string_8cpp.html#a23ab67b0d9600697695fc8679462d8fe" title="checks if the function longest_common_string_length returns the same result when its inputs are rever..." alt="" coords="107,185,288,241"/>
|
||||
<area shape="poly" id="edge6_Node000001_Node000007" title=" " alt="" coords="46,120,72,145,105,171,113,175,110,180,102,175,69,149,42,124"/>
|
||||
<area shape="rect" id="Node000011" href="$da/d0d/longest__common__string_8cpp.html#ad1e613c1b85cc04ed931b6c745fec155" title="checks if the function longest_common_string_length returns the same result when its argument are fli..." alt="" coords="104,120,291,161"/>
|
||||
<area shape="poly" id="edge11_Node000001_Node000011" title=" " alt="" coords="57,111,89,117,88,122,56,116"/>
|
||||
<area shape="rect" id="Node000004" href="$da/d0d/longest__common__string_8cpp.html#aa38b6b17bc5d46ed88acdd8414e18fa5" title="computes the length of the longest common string created from input strings" alt="" coords="339,120,498,161"/>
|
||||
<area shape="poly" id="edge3_Node000003_Node000004" title=" " alt="" coords="269,94,333,113,332,118,268,99"/>
|
||||
<area shape="rect" id="Node000005" href="/Users/runner/work/C-Plus-Plus/C-Plus-Plus/doc/cppreference-doxygen-web.tag.xml$cpp/algorithm/max.html#" title=" " alt="" coords="571,84,644,110"/>
|
||||
<area shape="poly" id="edge4_Node000004_Node000005" title=" " alt="" coords="498,120,556,106,557,111,500,125"/>
|
||||
<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="552,133,663,159"/>
|
||||
<area shape="poly" id="edge5_Node000004_Node000006" title=" " alt="" coords="499,140,536,141,536,147,499,146"/>
|
||||
<area shape="poly" id="edge7_Node000007_Node000004" title=" " alt="" coords="284,182,339,164,340,169,286,187"/>
|
||||
<area shape="rect" id="Node000008" href="$da/d0d/longest__common__string_8cpp.html#acb03dbbcee6d607db471021168be8541" title="reverses a given string" alt="" coords="376,200,462,226"/>
|
||||
<area shape="poly" id="edge8_Node000007_Node000008" title=" " alt="" coords="288,210,360,210,360,216,288,216"/>
|
||||
<area shape="rect" id="Node000009" href="/Users/runner/work/C-Plus-Plus/C-Plus-Plus/doc/cppreference-doxygen-web.tag.xml$cpp/string/basic_string/rbegin.html#" title=" " alt="" coords="546,193,669,219"/>
|
||||
<area shape="poly" id="edge9_Node000008_Node000009" title=" " alt="" coords="462,209,531,206,531,212,462,214"/>
|
||||
<area shape="rect" id="Node000010" href="/Users/runner/work/C-Plus-Plus/C-Plus-Plus/doc/cppreference-doxygen-web.tag.xml$cpp/string/basic_string/rend.html#" title=" " alt="" coords="551,243,664,268"/>
|
||||
<area shape="poly" id="edge10_Node000008_Node000010" title=" " alt="" coords="463,220,537,237,536,242,462,225"/>
|
||||
<area shape="poly" id="edge12_Node000011_Node000004" title=" " alt="" coords="291,138,323,138,323,144,291,144"/>
|
||||
</map>
|
||||
@@ -1 +0,0 @@
|
||||
ad88c3fa0cc0641fbc18f2e1421bf422
|
||||
@@ -1,307 +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 205 -->
|
||||
|
||||
<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 = 506;
|
||||
var viewHeight = 205;
|
||||
var sectionId = 'dynsection-7';
|
||||
</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="runs all tests for longest_common_string_length funcion">
|
||||
<polygon fill="#999999" stroke="#666666" points="37.75,-129.25 0,-129.25 0,-110 37.75,-110 37.75,-129.25"/>
|
||||
<text text-anchor="middle" x="18.88" y="-115.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="../../da/d0d/longest__common__string_8cpp.html#a967854a526bc15403d783a033155fc5c" target="_top" xlink:title=" ">
|
||||
<polygon fill="white" stroke="#666666" points="185.38,-197.25 102.62,-197.25 102.62,-178 185.38,-178 185.38,-197.25"/>
|
||||
<text text-anchor="middle" x="144" y="-183.75" font-family="Helvetica,sans-Serif" font-size="10.00">get_test_cases</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="M28,-129.39C37.75,-140.48 55.14,-158.39 73.75,-168.62 79.21,-171.63 85.18,-174.18 91.25,-176.35"/>
|
||||
<polygon fill="#63b8ff" stroke="#63b8ff" points="90.17,-179.68 100.76,-179.39 92.3,-173.01 90.17,-179.68"/>
|
||||
</a>
|
||||
</g>
|
||||
</g>
|
||||
<!-- Node3 -->
|
||||
<g id="Node000003" class="node">
|
||||
<title>Node3</title>
|
||||
<g id="a_Node000003"><a xlink:href="../../da/d0d/longest__common__string_8cpp.html#a9b229daad982a186a4d8d90aa8f38561" target="_top" xlink:title="checks the function longest_common_string_length agains example data">
|
||||
<polygon fill="white" stroke="#666666" points="200,-159.88 88,-159.88 88,-129.38 200,-129.38 200,-159.88"/>
|
||||
<text text-anchor="start" x="96" y="-146.38" font-family="Helvetica,sans-Serif" font-size="10.00">test_longest_common</text>
|
||||
<text text-anchor="middle" x="144" y="-135.12" font-family="Helvetica,sans-Serif" font-size="10.00">_string_length</text>
|
||||
</a>
|
||||
</g>
|
||||
</g>
|
||||
<!-- Node1->Node3 -->
|
||||
<g id="edge2_Node000001_Node000003" class="edge">
|
||||
<title>Node1->Node3</title>
|
||||
<g id="a_edge2_Node000001_Node000003"><a xlink:title=" ">
|
||||
<path fill="none" stroke="#63b8ff" d="M38.04,-123.31C48.54,-125.45 62.47,-128.27 76.74,-131.17"/>
|
||||
<polygon fill="#63b8ff" stroke="#63b8ff" points="75.68,-134.53 86.18,-133.09 77.08,-127.67 75.68,-134.53"/>
|
||||
</a>
|
||||
</g>
|
||||
</g>
|
||||
<!-- Node7 -->
|
||||
<g id="Node000007" class="node">
|
||||
<title>Node7</title>
|
||||
<g id="a_Node000007"><a xlink:href="../../da/d0d/longest__common__string_8cpp.html#a23ab67b0d9600697695fc8679462d8fe" target="_top" xlink:title="checks if the function longest_common_string_length returns the same result when its inputs are rever...">
|
||||
<polygon fill="white" stroke="#666666" points="212,-62.5 76,-62.5 76,-20.75 212,-20.75 212,-62.5"/>
|
||||
<text text-anchor="start" x="84" y="-49" font-family="Helvetica,sans-Serif" font-size="10.00">test_longest_common</text>
|
||||
<text text-anchor="start" x="84" y="-37.75" font-family="Helvetica,sans-Serif" font-size="10.00">_string_length_for_reversed</text>
|
||||
<text text-anchor="middle" x="144" y="-26.5" font-family="Helvetica,sans-Serif" font-size="10.00">_inputs</text>
|
||||
</a>
|
||||
</g>
|
||||
</g>
|
||||
<!-- Node1->Node7 -->
|
||||
<g id="edge6_Node000001_Node000007" class="edge">
|
||||
<title>Node1->Node7</title>
|
||||
<g id="a_edge6_Node000001_Node000007"><a xlink:title=" ">
|
||||
<path fill="none" stroke="#63b8ff" d="M29.04,-109.77C39.19,-99.27 56.43,-82.68 73.75,-71.62 75.57,-70.46 77.45,-69.32 79.36,-68.21"/>
|
||||
<polygon fill="#63b8ff" stroke="#63b8ff" points="80.73,-71.45 87.85,-63.61 77.39,-65.3 80.73,-71.45"/>
|
||||
</a>
|
||||
</g>
|
||||
</g>
|
||||
<!-- Node11 -->
|
||||
<g id="Node000011" class="node">
|
||||
<title>Node11</title>
|
||||
<g id="a_Node000011"><a xlink:href="../../da/d0d/longest__common__string_8cpp.html#ad1e613c1b85cc04ed931b6c745fec155" target="_top" xlink:title="checks if the function longest_common_string_length returns the same result when its argument are fli...">
|
||||
<polygon fill="white" stroke="#666666" points="214.25,-110.88 73.75,-110.88 73.75,-80.38 214.25,-80.38 214.25,-110.88"/>
|
||||
<text text-anchor="start" x="81.75" y="-97.38" font-family="Helvetica,sans-Serif" font-size="10.00">test_longest_common</text>
|
||||
<text text-anchor="middle" x="144" y="-86.12" font-family="Helvetica,sans-Serif" font-size="10.00">_string_length_is_symmetric</text>
|
||||
</a>
|
||||
</g>
|
||||
</g>
|
||||
<!-- Node1->Node11 -->
|
||||
<g id="edge11_Node000001_Node000011" class="edge">
|
||||
<title>Node1->Node11</title>
|
||||
<g id="a_edge11_Node000001_Node000011"><a xlink:title=" ">
|
||||
<path fill="none" stroke="#63b8ff" d="M38.04,-116.08C44.94,-114.74 53.31,-113.11 62.29,-111.36"/>
|
||||
<polygon fill="#63b8ff" stroke="#63b8ff" points="62.85,-114.81 71.99,-109.47 61.51,-107.94 62.85,-114.81"/>
|
||||
</a>
|
||||
</g>
|
||||
</g>
|
||||
<!-- Node4 -->
|
||||
<g id="Node000004" class="node">
|
||||
<title>Node4</title>
|
||||
<g id="a_Node000004"><a xlink:href="../../da/d0d/longest__common__string_8cpp.html#aa38b6b17bc5d46ed88acdd8414e18fa5" target="_top" xlink:title="computes the length of the longest common string created from input strings">
|
||||
<polygon fill="white" stroke="#666666" points="369.75,-110.88 250.25,-110.88 250.25,-80.38 369.75,-80.38 369.75,-110.88"/>
|
||||
<text text-anchor="start" x="258.25" y="-97.38" font-family="Helvetica,sans-Serif" font-size="10.00">longest_common_string</text>
|
||||
<text text-anchor="middle" x="310" y="-86.12" font-family="Helvetica,sans-Serif" font-size="10.00">_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="M197.34,-128.99C212.65,-124.41 229.55,-119.36 245.48,-114.6"/>
|
||||
<polygon fill="#63b8ff" stroke="#63b8ff" points="246.28,-118.02 254.86,-111.8 244.28,-111.31 246.28,-118.02"/>
|
||||
</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/algorithm/max.html#" xlink:title=" ">
|
||||
<polygon fill="white" stroke="#666666" points="478.75,-138.25 424.5,-138.25 424.5,-119 478.75,-119 478.75,-138.25"/>
|
||||
<text text-anchor="middle" x="451.62" y="-124.75" font-family="Helvetica,sans-Serif" font-size="10.00">std::max</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="M370.21,-109.62C384.82,-113.07 400.05,-116.67 413.28,-119.8"/>
|
||||
<polygon fill="#63b8ff" stroke="#63b8ff" points="412.32,-123.17 422.86,-122.06 413.93,-116.36 412.32,-123.17"/>
|
||||
</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="493.38,-101.25 409.88,-101.25 409.88,-82 493.38,-82 493.38,-101.25"/>
|
||||
<text text-anchor="middle" x="451.62" y="-87.75" font-family="Helvetica,sans-Serif" font-size="10.00">std::string::size</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="M370.21,-93.93C379.52,-93.66 389.08,-93.39 398.21,-93.13"/>
|
||||
<polygon fill="#63b8ff" stroke="#63b8ff" points="398.09,-96.63 407.99,-92.85 397.89,-89.63 398.09,-96.63"/>
|
||||
</a>
|
||||
</g>
|
||||
</g>
|
||||
<!-- Node7->Node4 -->
|
||||
<g id="edge7_Node000007_Node000004" class="edge">
|
||||
<title>Node7->Node4</title>
|
||||
<g id="a_edge7_Node000007_Node000004"><a xlink:title=" ">
|
||||
<path fill="none" stroke="#63b8ff" d="M209.82,-62.97C223.25,-67.39 237.32,-72.02 250.51,-76.37"/>
|
||||
<polygon fill="#63b8ff" stroke="#63b8ff" points="249.31,-79.66 259.91,-79.46 251.5,-73.01 249.31,-79.66"/>
|
||||
</a>
|
||||
</g>
|
||||
</g>
|
||||
<!-- Node8 -->
|
||||
<g id="Node000008" class="node">
|
||||
<title>Node8</title>
|
||||
<g id="a_Node000008"><a xlink:href="../../da/d0d/longest__common__string_8cpp.html#acb03dbbcee6d607db471021168be8541" target="_top" xlink:title="reverses a given string">
|
||||
<polygon fill="white" stroke="#666666" points="342.38,-51.25 277.62,-51.25 277.62,-32 342.38,-32 342.38,-51.25"/>
|
||||
<text text-anchor="middle" x="310" y="-37.75" font-family="Helvetica,sans-Serif" font-size="10.00">reverse_str</text>
|
||||
</a>
|
||||
</g>
|
||||
</g>
|
||||
<!-- Node7->Node8 -->
|
||||
<g id="edge8_Node000007_Node000008" class="edge">
|
||||
<title>Node7->Node8</title>
|
||||
<g id="a_edge8_Node000007_Node000008"><a xlink:title=" ">
|
||||
<path fill="none" stroke="#63b8ff" d="M212.18,-41.62C230.26,-41.62 249.33,-41.62 265.73,-41.62"/>
|
||||
<polygon fill="#63b8ff" stroke="#63b8ff" points="265.62,-45.13 275.62,-41.63 265.62,-38.13 265.62,-45.13"/>
|
||||
</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/string/basic_string/rbegin.html#" xlink:title=" ">
|
||||
<polygon fill="white" stroke="#666666" points="497.5,-56.25 405.75,-56.25 405.75,-37 497.5,-37 497.5,-56.25"/>
|
||||
<text text-anchor="middle" x="451.62" y="-42.75" font-family="Helvetica,sans-Serif" font-size="10.00">std::string::rbegin</text>
|
||||
</a>
|
||||
</g>
|
||||
</g>
|
||||
<!-- Node8->Node9 -->
|
||||
<g id="edge9_Node000008_Node000009" class="edge">
|
||||
<title>Node8->Node9</title>
|
||||
<g id="a_edge9_Node000008_Node000009"><a xlink:title=" ">
|
||||
<path fill="none" stroke="#63b8ff" d="M342.68,-42.76C357.86,-43.3 376.51,-43.97 394.01,-44.6"/>
|
||||
<polygon fill="#63b8ff" stroke="#63b8ff" points="393.67,-48.09 403.79,-44.95 393.92,-41.09 393.67,-48.09"/>
|
||||
</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/string/basic_string/rend.html#" xlink:title=" ">
|
||||
<polygon fill="white" stroke="#666666" points="493.75,-19.25 409.5,-19.25 409.5,0 493.75,0 493.75,-19.25"/>
|
||||
<text text-anchor="middle" x="451.62" y="-5.75" font-family="Helvetica,sans-Serif" font-size="10.00">std::string::rend</text>
|
||||
</a>
|
||||
</g>
|
||||
</g>
|
||||
<!-- Node8->Node10 -->
|
||||
<g id="edge10_Node000008_Node000010" class="edge">
|
||||
<title>Node8->Node10</title>
|
||||
<g id="a_edge10_Node000008_Node000010"><a xlink:title=" ">
|
||||
<path fill="none" stroke="#63b8ff" d="M342.68,-34.36C359.08,-30.6 379.54,-25.92 398.21,-21.64"/>
|
||||
<polygon fill="#63b8ff" stroke="#63b8ff" points="398.82,-25.09 407.78,-19.44 397.26,-18.27 398.82,-25.09"/>
|
||||
</a>
|
||||
</g>
|
||||
</g>
|
||||
<!-- Node11->Node4 -->
|
||||
<g id="edge12_Node000011_Node000004" class="edge">
|
||||
<title>Node11->Node4</title>
|
||||
<g id="a_edge12_Node000011_Node000004"><a xlink:title=" ">
|
||||
<path fill="none" stroke="#63b8ff" d="M214.55,-95.62C222.47,-95.62 230.55,-95.62 238.48,-95.62"/>
|
||||
<polygon fill="#63b8ff" stroke="#63b8ff" points="238.44,-99.13 248.44,-95.63 238.44,-92.13 238.44,-99.13"/>
|
||||
</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="longest__common__string_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: 15 KiB |
@@ -1,224 +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="506pt" height="205pt"
|
||||
viewBox="0.00 0.00 505.50 205.25" 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 201.25)">
|
||||
<title>tests</title>
|
||||
<!-- Node1 -->
|
||||
<g id="Node000001" class="node">
|
||||
<title>Node1</title>
|
||||
<g id="a_Node000001"><a xlink:title="runs all tests for longest_common_string_length funcion">
|
||||
<polygon fill="#999999" stroke="#666666" points="37.75,-129.25 0,-129.25 0,-110 37.75,-110 37.75,-129.25"/>
|
||||
<text text-anchor="middle" x="18.88" y="-115.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="../../da/d0d/longest__common__string_8cpp.html#a967854a526bc15403d783a033155fc5c" target="_top" xlink:title=" ">
|
||||
<polygon fill="white" stroke="#666666" points="185.38,-197.25 102.62,-197.25 102.62,-178 185.38,-178 185.38,-197.25"/>
|
||||
<text text-anchor="middle" x="144" y="-183.75" font-family="Helvetica,sans-Serif" font-size="10.00">get_test_cases</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="M28,-129.39C37.75,-140.48 55.14,-158.39 73.75,-168.62 79.21,-171.63 85.18,-174.18 91.25,-176.35"/>
|
||||
<polygon fill="#63b8ff" stroke="#63b8ff" points="90.17,-179.68 100.76,-179.39 92.3,-173.01 90.17,-179.68"/>
|
||||
</a>
|
||||
</g>
|
||||
</g>
|
||||
<!-- Node3 -->
|
||||
<g id="Node000003" class="node">
|
||||
<title>Node3</title>
|
||||
<g id="a_Node000003"><a xlink:href="../../da/d0d/longest__common__string_8cpp.html#a9b229daad982a186a4d8d90aa8f38561" target="_top" xlink:title="checks the function longest_common_string_length agains example data">
|
||||
<polygon fill="white" stroke="#666666" points="200,-159.88 88,-159.88 88,-129.38 200,-129.38 200,-159.88"/>
|
||||
<text text-anchor="start" x="96" y="-146.38" font-family="Helvetica,sans-Serif" font-size="10.00">test_longest_common</text>
|
||||
<text text-anchor="middle" x="144" y="-135.12" font-family="Helvetica,sans-Serif" font-size="10.00">_string_length</text>
|
||||
</a>
|
||||
</g>
|
||||
</g>
|
||||
<!-- Node1->Node3 -->
|
||||
<g id="edge2_Node000001_Node000003" class="edge">
|
||||
<title>Node1->Node3</title>
|
||||
<g id="a_edge2_Node000001_Node000003"><a xlink:title=" ">
|
||||
<path fill="none" stroke="#63b8ff" d="M38.04,-123.31C48.54,-125.45 62.47,-128.27 76.74,-131.17"/>
|
||||
<polygon fill="#63b8ff" stroke="#63b8ff" points="75.68,-134.53 86.18,-133.09 77.08,-127.67 75.68,-134.53"/>
|
||||
</a>
|
||||
</g>
|
||||
</g>
|
||||
<!-- Node7 -->
|
||||
<g id="Node000007" class="node">
|
||||
<title>Node7</title>
|
||||
<g id="a_Node000007"><a xlink:href="../../da/d0d/longest__common__string_8cpp.html#a23ab67b0d9600697695fc8679462d8fe" target="_top" xlink:title="checks if the function longest_common_string_length returns the same result when its inputs are rever...">
|
||||
<polygon fill="white" stroke="#666666" points="212,-62.5 76,-62.5 76,-20.75 212,-20.75 212,-62.5"/>
|
||||
<text text-anchor="start" x="84" y="-49" font-family="Helvetica,sans-Serif" font-size="10.00">test_longest_common</text>
|
||||
<text text-anchor="start" x="84" y="-37.75" font-family="Helvetica,sans-Serif" font-size="10.00">_string_length_for_reversed</text>
|
||||
<text text-anchor="middle" x="144" y="-26.5" font-family="Helvetica,sans-Serif" font-size="10.00">_inputs</text>
|
||||
</a>
|
||||
</g>
|
||||
</g>
|
||||
<!-- Node1->Node7 -->
|
||||
<g id="edge6_Node000001_Node000007" class="edge">
|
||||
<title>Node1->Node7</title>
|
||||
<g id="a_edge6_Node000001_Node000007"><a xlink:title=" ">
|
||||
<path fill="none" stroke="#63b8ff" d="M29.04,-109.77C39.19,-99.27 56.43,-82.68 73.75,-71.62 75.57,-70.46 77.45,-69.32 79.36,-68.21"/>
|
||||
<polygon fill="#63b8ff" stroke="#63b8ff" points="80.73,-71.45 87.85,-63.61 77.39,-65.3 80.73,-71.45"/>
|
||||
</a>
|
||||
</g>
|
||||
</g>
|
||||
<!-- Node11 -->
|
||||
<g id="Node000011" class="node">
|
||||
<title>Node11</title>
|
||||
<g id="a_Node000011"><a xlink:href="../../da/d0d/longest__common__string_8cpp.html#ad1e613c1b85cc04ed931b6c745fec155" target="_top" xlink:title="checks if the function longest_common_string_length returns the same result when its argument are fli...">
|
||||
<polygon fill="white" stroke="#666666" points="214.25,-110.88 73.75,-110.88 73.75,-80.38 214.25,-80.38 214.25,-110.88"/>
|
||||
<text text-anchor="start" x="81.75" y="-97.38" font-family="Helvetica,sans-Serif" font-size="10.00">test_longest_common</text>
|
||||
<text text-anchor="middle" x="144" y="-86.12" font-family="Helvetica,sans-Serif" font-size="10.00">_string_length_is_symmetric</text>
|
||||
</a>
|
||||
</g>
|
||||
</g>
|
||||
<!-- Node1->Node11 -->
|
||||
<g id="edge11_Node000001_Node000011" class="edge">
|
||||
<title>Node1->Node11</title>
|
||||
<g id="a_edge11_Node000001_Node000011"><a xlink:title=" ">
|
||||
<path fill="none" stroke="#63b8ff" d="M38.04,-116.08C44.94,-114.74 53.31,-113.11 62.29,-111.36"/>
|
||||
<polygon fill="#63b8ff" stroke="#63b8ff" points="62.85,-114.81 71.99,-109.47 61.51,-107.94 62.85,-114.81"/>
|
||||
</a>
|
||||
</g>
|
||||
</g>
|
||||
<!-- Node4 -->
|
||||
<g id="Node000004" class="node">
|
||||
<title>Node4</title>
|
||||
<g id="a_Node000004"><a xlink:href="../../da/d0d/longest__common__string_8cpp.html#aa38b6b17bc5d46ed88acdd8414e18fa5" target="_top" xlink:title="computes the length of the longest common string created from input strings">
|
||||
<polygon fill="white" stroke="#666666" points="369.75,-110.88 250.25,-110.88 250.25,-80.38 369.75,-80.38 369.75,-110.88"/>
|
||||
<text text-anchor="start" x="258.25" y="-97.38" font-family="Helvetica,sans-Serif" font-size="10.00">longest_common_string</text>
|
||||
<text text-anchor="middle" x="310" y="-86.12" font-family="Helvetica,sans-Serif" font-size="10.00">_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="M197.34,-128.99C212.65,-124.41 229.55,-119.36 245.48,-114.6"/>
|
||||
<polygon fill="#63b8ff" stroke="#63b8ff" points="246.28,-118.02 254.86,-111.8 244.28,-111.31 246.28,-118.02"/>
|
||||
</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/algorithm/max.html#" xlink:title=" ">
|
||||
<polygon fill="white" stroke="#666666" points="478.75,-138.25 424.5,-138.25 424.5,-119 478.75,-119 478.75,-138.25"/>
|
||||
<text text-anchor="middle" x="451.62" y="-124.75" font-family="Helvetica,sans-Serif" font-size="10.00">std::max</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="M370.21,-109.62C384.82,-113.07 400.05,-116.67 413.28,-119.8"/>
|
||||
<polygon fill="#63b8ff" stroke="#63b8ff" points="412.32,-123.17 422.86,-122.06 413.93,-116.36 412.32,-123.17"/>
|
||||
</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="493.38,-101.25 409.88,-101.25 409.88,-82 493.38,-82 493.38,-101.25"/>
|
||||
<text text-anchor="middle" x="451.62" y="-87.75" font-family="Helvetica,sans-Serif" font-size="10.00">std::string::size</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="M370.21,-93.93C379.52,-93.66 389.08,-93.39 398.21,-93.13"/>
|
||||
<polygon fill="#63b8ff" stroke="#63b8ff" points="398.09,-96.63 407.99,-92.85 397.89,-89.63 398.09,-96.63"/>
|
||||
</a>
|
||||
</g>
|
||||
</g>
|
||||
<!-- Node7->Node4 -->
|
||||
<g id="edge7_Node000007_Node000004" class="edge">
|
||||
<title>Node7->Node4</title>
|
||||
<g id="a_edge7_Node000007_Node000004"><a xlink:title=" ">
|
||||
<path fill="none" stroke="#63b8ff" d="M209.82,-62.97C223.25,-67.39 237.32,-72.02 250.51,-76.37"/>
|
||||
<polygon fill="#63b8ff" stroke="#63b8ff" points="249.31,-79.66 259.91,-79.46 251.5,-73.01 249.31,-79.66"/>
|
||||
</a>
|
||||
</g>
|
||||
</g>
|
||||
<!-- Node8 -->
|
||||
<g id="Node000008" class="node">
|
||||
<title>Node8</title>
|
||||
<g id="a_Node000008"><a xlink:href="../../da/d0d/longest__common__string_8cpp.html#acb03dbbcee6d607db471021168be8541" target="_top" xlink:title="reverses a given string">
|
||||
<polygon fill="white" stroke="#666666" points="342.38,-51.25 277.62,-51.25 277.62,-32 342.38,-32 342.38,-51.25"/>
|
||||
<text text-anchor="middle" x="310" y="-37.75" font-family="Helvetica,sans-Serif" font-size="10.00">reverse_str</text>
|
||||
</a>
|
||||
</g>
|
||||
</g>
|
||||
<!-- Node7->Node8 -->
|
||||
<g id="edge8_Node000007_Node000008" class="edge">
|
||||
<title>Node7->Node8</title>
|
||||
<g id="a_edge8_Node000007_Node000008"><a xlink:title=" ">
|
||||
<path fill="none" stroke="#63b8ff" d="M212.18,-41.62C230.26,-41.62 249.33,-41.62 265.73,-41.62"/>
|
||||
<polygon fill="#63b8ff" stroke="#63b8ff" points="265.62,-45.13 275.62,-41.63 265.62,-38.13 265.62,-45.13"/>
|
||||
</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/string/basic_string/rbegin.html#" xlink:title=" ">
|
||||
<polygon fill="white" stroke="#666666" points="497.5,-56.25 405.75,-56.25 405.75,-37 497.5,-37 497.5,-56.25"/>
|
||||
<text text-anchor="middle" x="451.62" y="-42.75" font-family="Helvetica,sans-Serif" font-size="10.00">std::string::rbegin</text>
|
||||
</a>
|
||||
</g>
|
||||
</g>
|
||||
<!-- Node8->Node9 -->
|
||||
<g id="edge9_Node000008_Node000009" class="edge">
|
||||
<title>Node8->Node9</title>
|
||||
<g id="a_edge9_Node000008_Node000009"><a xlink:title=" ">
|
||||
<path fill="none" stroke="#63b8ff" d="M342.68,-42.76C357.86,-43.3 376.51,-43.97 394.01,-44.6"/>
|
||||
<polygon fill="#63b8ff" stroke="#63b8ff" points="393.67,-48.09 403.79,-44.95 393.92,-41.09 393.67,-48.09"/>
|
||||
</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/string/basic_string/rend.html#" xlink:title=" ">
|
||||
<polygon fill="white" stroke="#666666" points="493.75,-19.25 409.5,-19.25 409.5,0 493.75,0 493.75,-19.25"/>
|
||||
<text text-anchor="middle" x="451.62" y="-5.75" font-family="Helvetica,sans-Serif" font-size="10.00">std::string::rend</text>
|
||||
</a>
|
||||
</g>
|
||||
</g>
|
||||
<!-- Node8->Node10 -->
|
||||
<g id="edge10_Node000008_Node000010" class="edge">
|
||||
<title>Node8->Node10</title>
|
||||
<g id="a_edge10_Node000008_Node000010"><a xlink:title=" ">
|
||||
<path fill="none" stroke="#63b8ff" d="M342.68,-34.36C359.08,-30.6 379.54,-25.92 398.21,-21.64"/>
|
||||
<polygon fill="#63b8ff" stroke="#63b8ff" points="398.82,-25.09 407.78,-19.44 397.26,-18.27 398.82,-25.09"/>
|
||||
</a>
|
||||
</g>
|
||||
</g>
|
||||
<!-- Node11->Node4 -->
|
||||
<g id="edge12_Node000011_Node000004" class="edge">
|
||||
<title>Node11->Node4</title>
|
||||
<g id="a_edge12_Node000011_Node000004"><a xlink:title=" ">
|
||||
<path fill="none" stroke="#63b8ff" d="M214.55,-95.62C222.47,-95.62 230.55,-95.62 238.48,-95.62"/>
|
||||
<polygon fill="#63b8ff" stroke="#63b8ff" points="238.44,-99.13 248.44,-95.63 238.44,-92.13 238.44,-99.13"/>
|
||||
</a>
|
||||
</g>
|
||||
</g>
|
||||
</g>
|
||||
</svg>
|
||||
|
Before Width: | Height: | Size: 11 KiB |
@@ -1,9 +0,0 @@
|
||||
<map id="test_longest_common_string_length" name="test_longest_common_string_length">
|
||||
<area shape="rect" id="Node000001" title="checks the function longest_common_string_length agains example data" alt="" coords="5,23,155,64"/>
|
||||
<area shape="rect" id="Node000002" href="$da/d0d/longest__common__string_8cpp.html#aa38b6b17bc5d46ed88acdd8414e18fa5" title="computes the length of the longest common string created from input strings" alt="" coords="203,23,362,64"/>
|
||||
<area shape="poly" id="edge1_Node000001_Node000002" title=" " alt="" coords="155,41,187,41,187,46,155,46"/>
|
||||
<area shape="rect" id="Node000003" href="/Users/runner/work/C-Plus-Plus/C-Plus-Plus/doc/cppreference-doxygen-web.tag.xml$cpp/algorithm/max.html#" title=" " alt="" coords="430,5,502,31"/>
|
||||
<area shape="poly" id="edge2_Node000002_Node000003" title=" " alt="" coords="362,30,413,23,414,28,363,35"/>
|
||||
<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="410,55,521,80"/>
|
||||
<area shape="poly" id="edge3_Node000002_Node000004" title=" " alt="" coords="363,51,395,56,394,61,362,57"/>
|
||||
</map>
|
||||
@@ -1 +0,0 @@
|
||||
7f4356d3190259fe9e0fd366dfe76683
|
||||
@@ -1,103 +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: test_longest_common_string_length Pages: 1 -->
|
||||
<svg width="395pt" height="64pt"
|
||||
viewBox="0.00 0.00 395.00 64.25" 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 60.25)">
|
||||
<title>test_longest_common_string_length</title>
|
||||
<!-- Node1 -->
|
||||
<g id="Node000001" class="node">
|
||||
<title>Node1</title>
|
||||
<g id="a_Node000001"><a xlink:title="checks the function longest_common_string_length agains example data">
|
||||
<polygon fill="#999999" stroke="#666666" points="112,-42.88 0,-42.88 0,-12.37 112,-12.37 112,-42.88"/>
|
||||
<text text-anchor="start" x="8" y="-29.38" font-family="Helvetica,sans-Serif" font-size="10.00">test_longest_common</text>
|
||||
<text text-anchor="middle" x="56" y="-18.12" font-family="Helvetica,sans-Serif" font-size="10.00">_string_length</text>
|
||||
</a>
|
||||
</g>
|
||||
</g>
|
||||
<!-- Node2 -->
|
||||
<g id="Node000002" class="node">
|
||||
<title>Node2</title>
|
||||
<g id="a_Node000002"><a xlink:href="../../da/d0d/longest__common__string_8cpp.html#aa38b6b17bc5d46ed88acdd8414e18fa5" target="_top" xlink:title="computes the length of the longest common string created from input strings">
|
||||
<polygon fill="white" stroke="#666666" points="267.5,-42.88 148,-42.88 148,-12.37 267.5,-12.37 267.5,-42.88"/>
|
||||
<text text-anchor="start" x="156" y="-29.38" font-family="Helvetica,sans-Serif" font-size="10.00">longest_common_string</text>
|
||||
<text text-anchor="middle" x="207.75" y="-18.12" font-family="Helvetica,sans-Serif" font-size="10.00">_length</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="M112.34,-27.62C120.15,-27.62 128.27,-27.62 136.32,-27.62"/>
|
||||
<polygon fill="#63b8ff" stroke="#63b8ff" points="136.11,-31.13 146.11,-27.63 136.11,-24.13 136.11,-31.13"/>
|
||||
</a>
|
||||
</g>
|
||||
</g>
|
||||
<!-- Node3 -->
|
||||
<g id="Node000003" class="node">
|
||||
<title>Node3</title>
|
||||
<g id="a_Node000003"><a target="_blank" xlink:href="http://en.cppreference.com/w/cpp/algorithm/max.html#" xlink:title=" ">
|
||||
<polygon fill="white" stroke="#666666" points="372.38,-56.25 318.12,-56.25 318.12,-37 372.38,-37 372.38,-56.25"/>
|
||||
<text text-anchor="middle" x="345.25" y="-42.75" font-family="Helvetica,sans-Serif" font-size="10.00">std::max</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="M267.79,-35.9C280.84,-37.73 294.33,-39.62 306.28,-41.3"/>
|
||||
<polygon fill="#63b8ff" stroke="#63b8ff" points="305.75,-44.76 316.14,-42.68 306.72,-37.83 305.75,-44.76"/>
|
||||
</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="387,-19.25 303.5,-19.25 303.5,0 387,0 387,-19.25"/>
|
||||
<text text-anchor="middle" x="345.25" y="-5.75" font-family="Helvetica,sans-Serif" font-size="10.00">std::string::size</text>
|
||||
</a>
|
||||
</g>
|
||||
</g>
|
||||
<!-- Node2->Node4 -->
|
||||
<g id="edge3_Node000002_Node000004" class="edge">
|
||||
<title>Node2->Node4</title>
|
||||
<g id="a_edge3_Node000002_Node000004"><a xlink:title=" ">
|
||||
<path fill="none" stroke="#63b8ff" d="M267.79,-19.78C275.84,-18.71 284.05,-17.62 291.97,-16.57"/>
|
||||
<polygon fill="#63b8ff" stroke="#63b8ff" points="292.36,-20.05 301.81,-15.26 291.43,-13.11 292.36,-20.05"/>
|
||||
</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: 4.5 KiB |
@@ -1,77 +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: test_longest_common_string_length Pages: 1 -->
|
||||
<svg width="395pt" height="64pt"
|
||||
viewBox="0.00 0.00 395.00 64.25" 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 60.25)">
|
||||
<title>test_longest_common_string_length</title>
|
||||
<!-- Node1 -->
|
||||
<g id="Node000001" class="node">
|
||||
<title>Node1</title>
|
||||
<g id="a_Node000001"><a xlink:title="checks the function longest_common_string_length agains example data">
|
||||
<polygon fill="#999999" stroke="#666666" points="112,-42.88 0,-42.88 0,-12.37 112,-12.37 112,-42.88"/>
|
||||
<text text-anchor="start" x="8" y="-29.38" font-family="Helvetica,sans-Serif" font-size="10.00">test_longest_common</text>
|
||||
<text text-anchor="middle" x="56" y="-18.12" font-family="Helvetica,sans-Serif" font-size="10.00">_string_length</text>
|
||||
</a>
|
||||
</g>
|
||||
</g>
|
||||
<!-- Node2 -->
|
||||
<g id="Node000002" class="node">
|
||||
<title>Node2</title>
|
||||
<g id="a_Node000002"><a xlink:href="../../da/d0d/longest__common__string_8cpp.html#aa38b6b17bc5d46ed88acdd8414e18fa5" target="_top" xlink:title="computes the length of the longest common string created from input strings">
|
||||
<polygon fill="white" stroke="#666666" points="267.5,-42.88 148,-42.88 148,-12.37 267.5,-12.37 267.5,-42.88"/>
|
||||
<text text-anchor="start" x="156" y="-29.38" font-family="Helvetica,sans-Serif" font-size="10.00">longest_common_string</text>
|
||||
<text text-anchor="middle" x="207.75" y="-18.12" font-family="Helvetica,sans-Serif" font-size="10.00">_length</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="M112.34,-27.62C120.15,-27.62 128.27,-27.62 136.32,-27.62"/>
|
||||
<polygon fill="#63b8ff" stroke="#63b8ff" points="136.11,-31.13 146.11,-27.63 136.11,-24.13 136.11,-31.13"/>
|
||||
</a>
|
||||
</g>
|
||||
</g>
|
||||
<!-- Node3 -->
|
||||
<g id="Node000003" class="node">
|
||||
<title>Node3</title>
|
||||
<g id="a_Node000003"><a target="_blank" xlink:href="http://en.cppreference.com/w/cpp/algorithm/max.html#" xlink:title=" ">
|
||||
<polygon fill="white" stroke="#666666" points="372.38,-56.25 318.12,-56.25 318.12,-37 372.38,-37 372.38,-56.25"/>
|
||||
<text text-anchor="middle" x="345.25" y="-42.75" font-family="Helvetica,sans-Serif" font-size="10.00">std::max</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="M267.79,-35.9C280.84,-37.73 294.33,-39.62 306.28,-41.3"/>
|
||||
<polygon fill="#63b8ff" stroke="#63b8ff" points="305.75,-44.76 316.14,-42.68 306.72,-37.83 305.75,-44.76"/>
|
||||
</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="387,-19.25 303.5,-19.25 303.5,0 387,0 387,-19.25"/>
|
||||
<text text-anchor="middle" x="345.25" y="-5.75" font-family="Helvetica,sans-Serif" font-size="10.00">std::string::size</text>
|
||||
</a>
|
||||
</g>
|
||||
</g>
|
||||
<!-- Node2->Node4 -->
|
||||
<g id="edge3_Node000002_Node000004" class="edge">
|
||||
<title>Node2->Node4</title>
|
||||
<g id="a_edge3_Node000002_Node000004"><a xlink:title=" ">
|
||||
<path fill="none" stroke="#63b8ff" d="M267.79,-19.78C275.84,-18.71 284.05,-17.62 291.97,-16.57"/>
|
||||
<polygon fill="#63b8ff" stroke="#63b8ff" points="292.36,-20.05 301.81,-15.26 291.43,-13.11 292.36,-20.05"/>
|
||||
</a>
|
||||
</g>
|
||||
</g>
|
||||
</g>
|
||||
</svg>
|
||||
|
Before Width: | Height: | Size: 3.7 KiB |
@@ -1,7 +0,0 @@
|
||||
<map id="longest_common_string_length" name="longest_common_string_length">
|
||||
<area shape="rect" id="Node000001" title="computes the length of the longest common string created from input strings" alt="" coords="5,23,165,64"/>
|
||||
<area shape="rect" id="Node000002" href="/Users/runner/work/C-Plus-Plus/C-Plus-Plus/doc/cppreference-doxygen-web.tag.xml$cpp/algorithm/max.html#" title=" " alt="" coords="232,5,304,31"/>
|
||||
<area shape="poly" id="edge1_Node000001_Node000002" title=" " alt="" coords="165,30,216,23,217,28,165,35"/>
|
||||
<area shape="rect" id="Node000003" 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="213,55,324,80"/>
|
||||
<area shape="poly" id="edge2_Node000001_Node000003" title=" " alt="" coords="165,51,198,56,197,61,165,57"/>
|
||||
</map>
|
||||
@@ -1 +0,0 @@
|
||||
3b0ce34bb9fe0c659936838ea1287939
|
||||
@@ -1,84 +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: longest_common_string_length Pages: 1 -->
|
||||
<svg width="247pt" height="64pt"
|
||||
viewBox="0.00 0.00 247.00 64.25" 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 60.25)">
|
||||
<title>longest_common_string_length</title>
|
||||
<!-- Node1 -->
|
||||
<g id="Node000001" class="node">
|
||||
<title>Node1</title>
|
||||
<g id="a_Node000001"><a xlink:title="computes the length of the longest common string created from input strings">
|
||||
<polygon fill="#999999" stroke="#666666" points="119.5,-42.88 0,-42.88 0,-12.37 119.5,-12.37 119.5,-42.88"/>
|
||||
<text text-anchor="start" x="8" y="-29.38" font-family="Helvetica,sans-Serif" font-size="10.00">longest_common_string</text>
|
||||
<text text-anchor="middle" x="59.75" y="-18.12" font-family="Helvetica,sans-Serif" font-size="10.00">_length</text>
|
||||
</a>
|
||||
</g>
|
||||
</g>
|
||||
<!-- Node2 -->
|
||||
<g id="Node000002" class="node">
|
||||
<title>Node2</title>
|
||||
<g id="a_Node000002"><a target="_blank" xlink:href="http://en.cppreference.com/w/cpp/algorithm/max.html#" xlink:title=" ">
|
||||
<polygon fill="white" stroke="#666666" points="224.38,-56.25 170.12,-56.25 170.12,-37 224.38,-37 224.38,-56.25"/>
|
||||
<text text-anchor="middle" x="197.25" y="-42.75" font-family="Helvetica,sans-Serif" font-size="10.00">std::max</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="M119.79,-35.9C132.84,-37.73 146.33,-39.62 158.28,-41.3"/>
|
||||
<polygon fill="#63b8ff" stroke="#63b8ff" points="157.75,-44.76 168.14,-42.68 158.72,-37.83 157.75,-44.76"/>
|
||||
</a>
|
||||
</g>
|
||||
</g>
|
||||
<!-- Node3 -->
|
||||
<g id="Node000003" class="node">
|
||||
<title>Node3</title>
|
||||
<g id="a_Node000003"><a target="_blank" xlink:href="http://en.cppreference.com/w/cpp/string/basic_string/size.html#" xlink:title=" ">
|
||||
<polygon fill="white" stroke="#666666" points="239,-19.25 155.5,-19.25 155.5,0 239,0 239,-19.25"/>
|
||||
<text text-anchor="middle" x="197.25" y="-5.75" font-family="Helvetica,sans-Serif" font-size="10.00">std::string::size</text>
|
||||
</a>
|
||||
</g>
|
||||
</g>
|
||||
<!-- Node1->Node3 -->
|
||||
<g id="edge2_Node000001_Node000003" class="edge">
|
||||
<title>Node1->Node3</title>
|
||||
<g id="a_edge2_Node000001_Node000003"><a xlink:title=" ">
|
||||
<path fill="none" stroke="#63b8ff" d="M119.79,-19.78C127.84,-18.71 136.05,-17.62 143.97,-16.57"/>
|
||||
<polygon fill="#63b8ff" stroke="#63b8ff" points="144.36,-20.05 153.81,-15.26 143.43,-13.11 144.36,-20.05"/>
|
||||
</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: 3.5 KiB |
@@ -1,58 +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: longest_common_string_length Pages: 1 -->
|
||||
<svg width="247pt" height="64pt"
|
||||
viewBox="0.00 0.00 247.00 64.25" 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 60.25)">
|
||||
<title>longest_common_string_length</title>
|
||||
<!-- Node1 -->
|
||||
<g id="Node000001" class="node">
|
||||
<title>Node1</title>
|
||||
<g id="a_Node000001"><a xlink:title="computes the length of the longest common string created from input strings">
|
||||
<polygon fill="#999999" stroke="#666666" points="119.5,-42.88 0,-42.88 0,-12.37 119.5,-12.37 119.5,-42.88"/>
|
||||
<text text-anchor="start" x="8" y="-29.38" font-family="Helvetica,sans-Serif" font-size="10.00">longest_common_string</text>
|
||||
<text text-anchor="middle" x="59.75" y="-18.12" font-family="Helvetica,sans-Serif" font-size="10.00">_length</text>
|
||||
</a>
|
||||
</g>
|
||||
</g>
|
||||
<!-- Node2 -->
|
||||
<g id="Node000002" class="node">
|
||||
<title>Node2</title>
|
||||
<g id="a_Node000002"><a target="_blank" xlink:href="http://en.cppreference.com/w/cpp/algorithm/max.html#" xlink:title=" ">
|
||||
<polygon fill="white" stroke="#666666" points="224.38,-56.25 170.12,-56.25 170.12,-37 224.38,-37 224.38,-56.25"/>
|
||||
<text text-anchor="middle" x="197.25" y="-42.75" font-family="Helvetica,sans-Serif" font-size="10.00">std::max</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="M119.79,-35.9C132.84,-37.73 146.33,-39.62 158.28,-41.3"/>
|
||||
<polygon fill="#63b8ff" stroke="#63b8ff" points="157.75,-44.76 168.14,-42.68 158.72,-37.83 157.75,-44.76"/>
|
||||
</a>
|
||||
</g>
|
||||
</g>
|
||||
<!-- Node3 -->
|
||||
<g id="Node000003" class="node">
|
||||
<title>Node3</title>
|
||||
<g id="a_Node000003"><a target="_blank" xlink:href="http://en.cppreference.com/w/cpp/string/basic_string/size.html#" xlink:title=" ">
|
||||
<polygon fill="white" stroke="#666666" points="239,-19.25 155.5,-19.25 155.5,0 239,0 239,-19.25"/>
|
||||
<text text-anchor="middle" x="197.25" y="-5.75" font-family="Helvetica,sans-Serif" font-size="10.00">std::string::size</text>
|
||||
</a>
|
||||
</g>
|
||||
</g>
|
||||
<!-- Node1->Node3 -->
|
||||
<g id="edge2_Node000001_Node000003" class="edge">
|
||||
<title>Node1->Node3</title>
|
||||
<g id="a_edge2_Node000001_Node000003"><a xlink:title=" ">
|
||||
<path fill="none" stroke="#63b8ff" d="M119.79,-19.78C127.84,-18.71 136.05,-17.62 143.97,-16.57"/>
|
||||
<polygon fill="#63b8ff" stroke="#63b8ff" points="144.36,-20.05 153.81,-15.26 143.43,-13.11 144.36,-20.05"/>
|
||||
</a>
|
||||
</g>
|
||||
</g>
|
||||
</g>
|
||||
</svg>
|
||||
|
Before Width: | Height: | Size: 2.7 KiB |
@@ -1,7 +0,0 @@
|
||||
<map id="reverse_str" name="reverse_str">
|
||||
<area shape="rect" id="Node000001" title="reverses a given string" alt="" coords="5,31,92,56"/>
|
||||
<area shape="rect" id="Node000002" href="/Users/runner/work/C-Plus-Plus/C-Plus-Plus/doc/cppreference-doxygen-web.tag.xml$cpp/string/basic_string/rbegin.html#" title=" " alt="" coords="140,5,262,31"/>
|
||||
<area shape="poly" id="edge1_Node000001_Node000002" title=" " alt="" coords="92,34,124,28,125,34,93,39"/>
|
||||
<area shape="rect" id="Node000003" href="/Users/runner/work/C-Plus-Plus/C-Plus-Plus/doc/cppreference-doxygen-web.tag.xml$cpp/string/basic_string/rend.html#" title=" " alt="" coords="145,55,257,80"/>
|
||||
<area shape="poly" id="edge2_Node000001_Node000003" title=" " alt="" coords="93,48,129,54,129,59,92,53"/>
|
||||
</map>
|
||||
@@ -1 +0,0 @@
|
||||
62bba1e3ba4c0f13c529cdd88132faa3
|
||||
@@ -1,83 +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: reverse_str Pages: 1 -->
|
||||
<svg width="201pt" height="64pt"
|
||||
viewBox="0.00 0.00 200.50 64.25" 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 60.25)">
|
||||
<title>reverse_str</title>
|
||||
<!-- Node1 -->
|
||||
<g id="Node000001" class="node">
|
||||
<title>Node1</title>
|
||||
<g id="a_Node000001"><a xlink:title="reverses a given string">
|
||||
<polygon fill="#999999" stroke="#666666" points="64.75,-37.25 0,-37.25 0,-18 64.75,-18 64.75,-37.25"/>
|
||||
<text text-anchor="middle" x="32.38" y="-23.75" font-family="Helvetica,sans-Serif" font-size="10.00">reverse_str</text>
|
||||
</a>
|
||||
</g>
|
||||
</g>
|
||||
<!-- Node2 -->
|
||||
<g id="Node000002" class="node">
|
||||
<title>Node2</title>
|
||||
<g id="a_Node000002"><a target="_blank" xlink:href="http://en.cppreference.com/w/cpp/string/basic_string/rbegin.html#" xlink:title=" ">
|
||||
<polygon fill="white" stroke="#666666" points="192.5,-56.25 100.75,-56.25 100.75,-37 192.5,-37 192.5,-56.25"/>
|
||||
<text text-anchor="middle" x="146.62" y="-42.75" font-family="Helvetica,sans-Serif" font-size="10.00">std::string::rbegin</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="M65.24,-33.02C72.73,-34.29 80.93,-35.67 89.14,-37.06"/>
|
||||
<polygon fill="#63b8ff" stroke="#63b8ff" points="88.34,-40.48 98.78,-38.7 89.5,-33.58 88.34,-40.48"/>
|
||||
</a>
|
||||
</g>
|
||||
</g>
|
||||
<!-- Node3 -->
|
||||
<g id="Node000003" class="node">
|
||||
<title>Node3</title>
|
||||
<g id="a_Node000003"><a target="_blank" xlink:href="http://en.cppreference.com/w/cpp/string/basic_string/rend.html#" xlink:title=" ">
|
||||
<polygon fill="white" stroke="#666666" points="188.75,-19.25 104.5,-19.25 104.5,0 188.75,0 188.75,-19.25"/>
|
||||
<text text-anchor="middle" x="146.62" y="-5.75" font-family="Helvetica,sans-Serif" font-size="10.00">std::string::rend</text>
|
||||
</a>
|
||||
</g>
|
||||
</g>
|
||||
<!-- Node1->Node3 -->
|
||||
<g id="edge2_Node000001_Node000003" class="edge">
|
||||
<title>Node1->Node3</title>
|
||||
<g id="a_edge2_Node000001_Node000003"><a xlink:title=" ">
|
||||
<path fill="none" stroke="#63b8ff" d="M65.24,-22.52C73.81,-21.14 83.32,-19.62 92.7,-18.11"/>
|
||||
<polygon fill="#63b8ff" stroke="#63b8ff" points="93.21,-21.58 102.53,-16.54 92.1,-14.66 93.21,-21.58"/>
|
||||
</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: 3.3 KiB |
@@ -1,57 +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: reverse_str Pages: 1 -->
|
||||
<svg width="201pt" height="64pt"
|
||||
viewBox="0.00 0.00 200.50 64.25" 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 60.25)">
|
||||
<title>reverse_str</title>
|
||||
<!-- Node1 -->
|
||||
<g id="Node000001" class="node">
|
||||
<title>Node1</title>
|
||||
<g id="a_Node000001"><a xlink:title="reverses a given string">
|
||||
<polygon fill="#999999" stroke="#666666" points="64.75,-37.25 0,-37.25 0,-18 64.75,-18 64.75,-37.25"/>
|
||||
<text text-anchor="middle" x="32.38" y="-23.75" font-family="Helvetica,sans-Serif" font-size="10.00">reverse_str</text>
|
||||
</a>
|
||||
</g>
|
||||
</g>
|
||||
<!-- Node2 -->
|
||||
<g id="Node000002" class="node">
|
||||
<title>Node2</title>
|
||||
<g id="a_Node000002"><a target="_blank" xlink:href="http://en.cppreference.com/w/cpp/string/basic_string/rbegin.html#" xlink:title=" ">
|
||||
<polygon fill="white" stroke="#666666" points="192.5,-56.25 100.75,-56.25 100.75,-37 192.5,-37 192.5,-56.25"/>
|
||||
<text text-anchor="middle" x="146.62" y="-42.75" font-family="Helvetica,sans-Serif" font-size="10.00">std::string::rbegin</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="M65.24,-33.02C72.73,-34.29 80.93,-35.67 89.14,-37.06"/>
|
||||
<polygon fill="#63b8ff" stroke="#63b8ff" points="88.34,-40.48 98.78,-38.7 89.5,-33.58 88.34,-40.48"/>
|
||||
</a>
|
||||
</g>
|
||||
</g>
|
||||
<!-- Node3 -->
|
||||
<g id="Node000003" class="node">
|
||||
<title>Node3</title>
|
||||
<g id="a_Node000003"><a target="_blank" xlink:href="http://en.cppreference.com/w/cpp/string/basic_string/rend.html#" xlink:title=" ">
|
||||
<polygon fill="white" stroke="#666666" points="188.75,-19.25 104.5,-19.25 104.5,0 188.75,0 188.75,-19.25"/>
|
||||
<text text-anchor="middle" x="146.62" y="-5.75" font-family="Helvetica,sans-Serif" font-size="10.00">std::string::rend</text>
|
||||
</a>
|
||||
</g>
|
||||
</g>
|
||||
<!-- Node1->Node3 -->
|
||||
<g id="edge2_Node000001_Node000003" class="edge">
|
||||
<title>Node1->Node3</title>
|
||||
<g id="a_edge2_Node000001_Node000003"><a xlink:title=" ">
|
||||
<path fill="none" stroke="#63b8ff" d="M65.24,-22.52C73.81,-21.14 83.32,-19.62 92.7,-18.11"/>
|
||||
<polygon fill="#63b8ff" stroke="#63b8ff" points="93.21,-21.58 102.53,-16.54 92.1,-14.66 93.21,-21.58"/>
|
||||
</a>
|
||||
</g>
|
||||
</g>
|
||||
</g>
|
||||
</svg>
|
||||
|
Before Width: | Height: | Size: 2.5 KiB |
@@ -1,9 +0,0 @@
|
||||
<map id="test_longest_common_string_length_is_symmetric" name="test_longest_common_string_length_is_symmetric">
|
||||
<area shape="rect" id="Node000001" title="checks if the function longest_common_string_length returns the same result when its argument are fli..." alt="" coords="5,23,193,64"/>
|
||||
<area shape="rect" id="Node000002" href="$da/d0d/longest__common__string_8cpp.html#aa38b6b17bc5d46ed88acdd8414e18fa5" title="computes the length of the longest common string created from input strings" alt="" coords="241,23,400,64"/>
|
||||
<area shape="poly" id="edge1_Node000001_Node000002" title=" " alt="" coords="193,41,225,41,225,46,193,46"/>
|
||||
<area shape="rect" id="Node000003" href="/Users/runner/work/C-Plus-Plus/C-Plus-Plus/doc/cppreference-doxygen-web.tag.xml$cpp/algorithm/max.html#" title=" " alt="" coords="468,5,540,31"/>
|
||||
<area shape="poly" id="edge2_Node000002_Node000003" title=" " alt="" coords="400,30,451,23,452,28,401,35"/>
|
||||
<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="448,55,559,80"/>
|
||||
<area shape="poly" id="edge3_Node000002_Node000004" title=" " alt="" coords="401,51,433,56,432,61,400,57"/>
|
||||
</map>
|
||||
@@ -1 +0,0 @@
|
||||
b7f32fb6e59c474b34416734a72f7567
|
||||
@@ -1,103 +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: test_longest_common_string_length_is_symmetric Pages: 1 -->
|
||||
<svg width="424pt" height="64pt"
|
||||
viewBox="0.00 0.00 423.50 64.25" 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 60.25)">
|
||||
<title>test_longest_common_string_length_is_symmetric</title>
|
||||
<!-- Node1 -->
|
||||
<g id="Node000001" class="node">
|
||||
<title>Node1</title>
|
||||
<g id="a_Node000001"><a xlink:title="checks if the function longest_common_string_length returns the same result when its argument are fli...">
|
||||
<polygon fill="#999999" stroke="#666666" points="140.5,-42.88 0,-42.88 0,-12.37 140.5,-12.37 140.5,-42.88"/>
|
||||
<text text-anchor="start" x="8" y="-29.38" font-family="Helvetica,sans-Serif" font-size="10.00">test_longest_common</text>
|
||||
<text text-anchor="middle" x="70.25" y="-18.12" font-family="Helvetica,sans-Serif" font-size="10.00">_string_length_is_symmetric</text>
|
||||
</a>
|
||||
</g>
|
||||
</g>
|
||||
<!-- Node2 -->
|
||||
<g id="Node000002" class="node">
|
||||
<title>Node2</title>
|
||||
<g id="a_Node000002"><a xlink:href="../../da/d0d/longest__common__string_8cpp.html#aa38b6b17bc5d46ed88acdd8414e18fa5" target="_top" xlink:title="computes the length of the longest common string created from input strings">
|
||||
<polygon fill="white" stroke="#666666" points="296,-42.88 176.5,-42.88 176.5,-12.37 296,-12.37 296,-42.88"/>
|
||||
<text text-anchor="start" x="184.5" y="-29.38" font-family="Helvetica,sans-Serif" font-size="10.00">longest_common_string</text>
|
||||
<text text-anchor="middle" x="236.25" y="-18.12" font-family="Helvetica,sans-Serif" font-size="10.00">_length</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="M140.8,-27.62C148.72,-27.62 156.8,-27.62 164.73,-27.62"/>
|
||||
<polygon fill="#63b8ff" stroke="#63b8ff" points="164.69,-31.13 174.69,-27.63 164.69,-24.13 164.69,-31.13"/>
|
||||
</a>
|
||||
</g>
|
||||
</g>
|
||||
<!-- Node3 -->
|
||||
<g id="Node000003" class="node">
|
||||
<title>Node3</title>
|
||||
<g id="a_Node000003"><a target="_blank" xlink:href="http://en.cppreference.com/w/cpp/algorithm/max.html#" xlink:title=" ">
|
||||
<polygon fill="white" stroke="#666666" points="400.88,-56.25 346.62,-56.25 346.62,-37 400.88,-37 400.88,-56.25"/>
|
||||
<text text-anchor="middle" x="373.75" y="-42.75" font-family="Helvetica,sans-Serif" font-size="10.00">std::max</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="M296.29,-35.9C309.34,-37.73 322.83,-39.62 334.78,-41.3"/>
|
||||
<polygon fill="#63b8ff" stroke="#63b8ff" points="334.25,-44.76 344.64,-42.68 335.22,-37.83 334.25,-44.76"/>
|
||||
</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="415.5,-19.25 332,-19.25 332,0 415.5,0 415.5,-19.25"/>
|
||||
<text text-anchor="middle" x="373.75" y="-5.75" font-family="Helvetica,sans-Serif" font-size="10.00">std::string::size</text>
|
||||
</a>
|
||||
</g>
|
||||
</g>
|
||||
<!-- Node2->Node4 -->
|
||||
<g id="edge3_Node000002_Node000004" class="edge">
|
||||
<title>Node2->Node4</title>
|
||||
<g id="a_edge3_Node000002_Node000004"><a xlink:title=" ">
|
||||
<path fill="none" stroke="#63b8ff" d="M296.29,-19.78C304.34,-18.71 312.55,-17.62 320.47,-16.57"/>
|
||||
<polygon fill="#63b8ff" stroke="#63b8ff" points="320.86,-20.05 330.31,-15.26 319.93,-13.11 320.86,-20.05"/>
|
||||
</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: 4.6 KiB |
@@ -1,77 +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: test_longest_common_string_length_is_symmetric Pages: 1 -->
|
||||
<svg width="424pt" height="64pt"
|
||||
viewBox="0.00 0.00 423.50 64.25" 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 60.25)">
|
||||
<title>test_longest_common_string_length_is_symmetric</title>
|
||||
<!-- Node1 -->
|
||||
<g id="Node000001" class="node">
|
||||
<title>Node1</title>
|
||||
<g id="a_Node000001"><a xlink:title="checks if the function longest_common_string_length returns the same result when its argument are fli...">
|
||||
<polygon fill="#999999" stroke="#666666" points="140.5,-42.88 0,-42.88 0,-12.37 140.5,-12.37 140.5,-42.88"/>
|
||||
<text text-anchor="start" x="8" y="-29.38" font-family="Helvetica,sans-Serif" font-size="10.00">test_longest_common</text>
|
||||
<text text-anchor="middle" x="70.25" y="-18.12" font-family="Helvetica,sans-Serif" font-size="10.00">_string_length_is_symmetric</text>
|
||||
</a>
|
||||
</g>
|
||||
</g>
|
||||
<!-- Node2 -->
|
||||
<g id="Node000002" class="node">
|
||||
<title>Node2</title>
|
||||
<g id="a_Node000002"><a xlink:href="../../da/d0d/longest__common__string_8cpp.html#aa38b6b17bc5d46ed88acdd8414e18fa5" target="_top" xlink:title="computes the length of the longest common string created from input strings">
|
||||
<polygon fill="white" stroke="#666666" points="296,-42.88 176.5,-42.88 176.5,-12.37 296,-12.37 296,-42.88"/>
|
||||
<text text-anchor="start" x="184.5" y="-29.38" font-family="Helvetica,sans-Serif" font-size="10.00">longest_common_string</text>
|
||||
<text text-anchor="middle" x="236.25" y="-18.12" font-family="Helvetica,sans-Serif" font-size="10.00">_length</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="M140.8,-27.62C148.72,-27.62 156.8,-27.62 164.73,-27.62"/>
|
||||
<polygon fill="#63b8ff" stroke="#63b8ff" points="164.69,-31.13 174.69,-27.63 164.69,-24.13 164.69,-31.13"/>
|
||||
</a>
|
||||
</g>
|
||||
</g>
|
||||
<!-- Node3 -->
|
||||
<g id="Node000003" class="node">
|
||||
<title>Node3</title>
|
||||
<g id="a_Node000003"><a target="_blank" xlink:href="http://en.cppreference.com/w/cpp/algorithm/max.html#" xlink:title=" ">
|
||||
<polygon fill="white" stroke="#666666" points="400.88,-56.25 346.62,-56.25 346.62,-37 400.88,-37 400.88,-56.25"/>
|
||||
<text text-anchor="middle" x="373.75" y="-42.75" font-family="Helvetica,sans-Serif" font-size="10.00">std::max</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="M296.29,-35.9C309.34,-37.73 322.83,-39.62 334.78,-41.3"/>
|
||||
<polygon fill="#63b8ff" stroke="#63b8ff" points="334.25,-44.76 344.64,-42.68 335.22,-37.83 334.25,-44.76"/>
|
||||
</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="415.5,-19.25 332,-19.25 332,0 415.5,0 415.5,-19.25"/>
|
||||
<text text-anchor="middle" x="373.75" y="-5.75" font-family="Helvetica,sans-Serif" font-size="10.00">std::string::size</text>
|
||||
</a>
|
||||
</g>
|
||||
</g>
|
||||
<!-- Node2->Node4 -->
|
||||
<g id="edge3_Node000002_Node000004" class="edge">
|
||||
<title>Node2->Node4</title>
|
||||
<g id="a_edge3_Node000002_Node000004"><a xlink:title=" ">
|
||||
<path fill="none" stroke="#63b8ff" d="M296.29,-19.78C304.34,-18.71 312.55,-17.62 320.47,-16.57"/>
|
||||
<polygon fill="#63b8ff" stroke="#63b8ff" points="320.86,-20.05 330.31,-15.26 319.93,-13.11 320.86,-20.05"/>
|
||||
</a>
|
||||
</g>
|
||||
</g>
|
||||
</g>
|
||||
</svg>
|
||||
|
Before Width: | Height: | Size: 3.8 KiB |
@@ -1,27 +0,0 @@
|
||||
<map id="main" name="main">
|
||||
<area shape="rect" id="Node000001" title="Main function." alt="" coords="5,96,55,122"/>
|
||||
<area shape="rect" id="Node000002" href="$da/d0d/longest__common__string_8cpp.html#a483bb8ccf42aaf7375a83e91490eda1e" title="runs all tests for longest_common_string_length funcion" alt="" coords="103,96,153,122"/>
|
||||
<area shape="poly" id="edge1_Node000001_Node000002" title=" " alt="" coords="55,106,88,106,88,112,55,112"/>
|
||||
<area shape="rect" id="Node000003" href="$da/d0d/longest__common__string_8cpp.html#a967854a526bc15403d783a033155fc5c" title=" " alt="" coords="240,5,350,31"/>
|
||||
<area shape="poly" id="edge2_Node000002_Node000003" title=" " alt="" coords="138,94,164,67,200,41,223,31,225,36,202,46,168,71,142,98"/>
|
||||
<area shape="rect" id="Node000004" href="$da/d0d/longest__common__string_8cpp.html#a9b229daad982a186a4d8d90aa8f38561" title="checks the function longest_common_string_length agains example data" alt="" coords="220,55,369,96"/>
|
||||
<area shape="poly" id="edge3_Node000002_Node000004" title=" " alt="" coords="153,101,204,91,206,96,154,107"/>
|
||||
<area shape="rect" id="Node000008" href="$da/d0d/longest__common__string_8cpp.html#a23ab67b0d9600697695fc8679462d8fe" title="checks if the function longest_common_string_length returns the same result when its inputs are rever..." alt="" coords="204,185,385,241"/>
|
||||
<area shape="poly" id="edge7_Node000002_Node000008" title=" " alt="" coords="143,120,169,145,203,171,210,175,207,180,199,175,166,149,140,124"/>
|
||||
<area shape="rect" id="Node000012" href="$da/d0d/longest__common__string_8cpp.html#ad1e613c1b85cc04ed931b6c745fec155" title="checks if the function longest_common_string_length returns the same result when its argument are fli..." alt="" coords="201,120,388,161"/>
|
||||
<area shape="poly" id="edge12_Node000002_Node000012" title=" " alt="" coords="154,111,186,117,185,122,153,116"/>
|
||||
<area shape="rect" id="Node000005" href="$da/d0d/longest__common__string_8cpp.html#aa38b6b17bc5d46ed88acdd8414e18fa5" title="computes the length of the longest common string created from input strings" alt="" coords="436,120,596,161"/>
|
||||
<area shape="poly" id="edge4_Node000004_Node000005" title=" " alt="" coords="367,94,431,113,429,118,365,99"/>
|
||||
<area shape="rect" id="Node000006" href="/Users/runner/work/C-Plus-Plus/C-Plus-Plus/doc/cppreference-doxygen-web.tag.xml$cpp/algorithm/max.html#" title=" " alt="" coords="669,84,741,110"/>
|
||||
<area shape="poly" id="edge5_Node000005_Node000006" title=" " alt="" coords="596,120,653,106,654,111,597,125"/>
|
||||
<area shape="rect" id="Node000007" 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="649,133,760,159"/>
|
||||
<area shape="poly" id="edge6_Node000005_Node000007" title=" " alt="" coords="596,140,634,141,634,147,596,146"/>
|
||||
<area shape="poly" id="edge8_Node000008_Node000005" title=" " alt="" coords="382,182,436,164,438,169,383,187"/>
|
||||
<area shape="rect" id="Node000009" href="$da/d0d/longest__common__string_8cpp.html#acb03dbbcee6d607db471021168be8541" title="reverses a given string" alt="" coords="473,200,559,226"/>
|
||||
<area shape="poly" id="edge9_Node000008_Node000009" title=" " alt="" coords="386,210,457,210,457,216,386,216"/>
|
||||
<area shape="rect" id="Node000010" href="/Users/runner/work/C-Plus-Plus/C-Plus-Plus/doc/cppreference-doxygen-web.tag.xml$cpp/string/basic_string/rbegin.html#" title=" " alt="" coords="644,193,766,219"/>
|
||||
<area shape="poly" id="edge10_Node000009_Node000010" title=" " alt="" coords="559,209,628,206,628,212,560,214"/>
|
||||
<area shape="rect" id="Node000011" href="/Users/runner/work/C-Plus-Plus/C-Plus-Plus/doc/cppreference-doxygen-web.tag.xml$cpp/string/basic_string/rend.html#" title=" " alt="" coords="649,243,761,268"/>
|
||||
<area shape="poly" id="edge11_Node000009_Node000011" title=" " alt="" coords="560,220,634,237,633,242,559,225"/>
|
||||
<area shape="poly" id="edge13_Node000012_Node000005" title=" " alt="" coords="389,138,421,138,421,144,389,144"/>
|
||||
</map>
|
||||
@@ -1 +0,0 @@
|
||||
75251397415c32038149e763c090b8e0
|
||||
@@ -1,325 +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 205 -->
|
||||
|
||||
<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 = 579;
|
||||
var viewHeight = 205;
|
||||
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,-129.25 0,-129.25 0,-110 37,-110 37,-129.25"/>
|
||||
<text text-anchor="middle" x="18.5" y="-115.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="../../da/d0d/longest__common__string_8cpp.html#a483bb8ccf42aaf7375a83e91490eda1e" target="_top" xlink:title="runs all tests for longest_common_string_length funcion">
|
||||
<polygon fill="white" stroke="#666666" points="110.75,-129.25 73,-129.25 73,-110 110.75,-110 110.75,-129.25"/>
|
||||
<text text-anchor="middle" x="91.88" y="-115.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,-119.62C44.55,-119.62 53.37,-119.62 61.69,-119.62"/>
|
||||
<polygon fill="#63b8ff" stroke="#63b8ff" points="61.43,-123.13 71.43,-119.63 61.43,-116.13 61.43,-123.13"/>
|
||||
</a>
|
||||
</g>
|
||||
</g>
|
||||
<!-- Node3 -->
|
||||
<g id="Node000003" class="node">
|
||||
<title>Node3</title>
|
||||
<g id="a_Node000003"><a xlink:href="../../da/d0d/longest__common__string_8cpp.html#a967854a526bc15403d783a033155fc5c" target="_top" xlink:title=" ">
|
||||
<polygon fill="white" stroke="#666666" points="258.38,-197.25 175.62,-197.25 175.62,-178 258.38,-178 258.38,-197.25"/>
|
||||
<text text-anchor="middle" x="217" y="-183.75" font-family="Helvetica,sans-Serif" font-size="10.00">get_test_cases</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="M101,-129.39C110.75,-140.48 128.14,-158.39 146.75,-168.62 152.21,-171.63 158.18,-174.18 164.25,-176.35"/>
|
||||
<polygon fill="#63b8ff" stroke="#63b8ff" points="163.17,-179.68 173.76,-179.39 165.3,-173.01 163.17,-179.68"/>
|
||||
</a>
|
||||
</g>
|
||||
</g>
|
||||
<!-- Node4 -->
|
||||
<g id="Node000004" class="node">
|
||||
<title>Node4</title>
|
||||
<g id="a_Node000004"><a xlink:href="../../da/d0d/longest__common__string_8cpp.html#a9b229daad982a186a4d8d90aa8f38561" target="_top" xlink:title="checks the function longest_common_string_length agains example data">
|
||||
<polygon fill="white" stroke="#666666" points="273,-159.88 161,-159.88 161,-129.38 273,-129.38 273,-159.88"/>
|
||||
<text text-anchor="start" x="169" y="-146.38" font-family="Helvetica,sans-Serif" font-size="10.00">test_longest_common</text>
|
||||
<text text-anchor="middle" x="217" y="-135.12" font-family="Helvetica,sans-Serif" font-size="10.00">_string_length</text>
|
||||
</a>
|
||||
</g>
|
||||
</g>
|
||||
<!-- Node2->Node4 -->
|
||||
<g id="edge3_Node000002_Node000004" class="edge">
|
||||
<title>Node2->Node4</title>
|
||||
<g id="a_edge3_Node000002_Node000004"><a xlink:title=" ">
|
||||
<path fill="none" stroke="#63b8ff" d="M111.04,-123.31C121.54,-125.45 135.47,-128.27 149.74,-131.17"/>
|
||||
<polygon fill="#63b8ff" stroke="#63b8ff" points="148.68,-134.53 159.18,-133.09 150.08,-127.67 148.68,-134.53"/>
|
||||
</a>
|
||||
</g>
|
||||
</g>
|
||||
<!-- Node8 -->
|
||||
<g id="Node000008" class="node">
|
||||
<title>Node8</title>
|
||||
<g id="a_Node000008"><a xlink:href="../../da/d0d/longest__common__string_8cpp.html#a23ab67b0d9600697695fc8679462d8fe" target="_top" xlink:title="checks if the function longest_common_string_length returns the same result when its inputs are rever...">
|
||||
<polygon fill="white" stroke="#666666" points="285,-62.5 149,-62.5 149,-20.75 285,-20.75 285,-62.5"/>
|
||||
<text text-anchor="start" x="157" y="-49" font-family="Helvetica,sans-Serif" font-size="10.00">test_longest_common</text>
|
||||
<text text-anchor="start" x="157" y="-37.75" font-family="Helvetica,sans-Serif" font-size="10.00">_string_length_for_reversed</text>
|
||||
<text text-anchor="middle" x="217" y="-26.5" font-family="Helvetica,sans-Serif" font-size="10.00">_inputs</text>
|
||||
</a>
|
||||
</g>
|
||||
</g>
|
||||
<!-- Node2->Node8 -->
|
||||
<g id="edge7_Node000002_Node000008" class="edge">
|
||||
<title>Node2->Node8</title>
|
||||
<g id="a_edge7_Node000002_Node000008"><a xlink:title=" ">
|
||||
<path fill="none" stroke="#63b8ff" d="M102.04,-109.77C112.19,-99.27 129.43,-82.68 146.75,-71.62 148.57,-70.46 150.45,-69.32 152.36,-68.21"/>
|
||||
<polygon fill="#63b8ff" stroke="#63b8ff" points="153.73,-71.45 160.85,-63.61 150.39,-65.3 153.73,-71.45"/>
|
||||
</a>
|
||||
</g>
|
||||
</g>
|
||||
<!-- Node12 -->
|
||||
<g id="Node000012" class="node">
|
||||
<title>Node12</title>
|
||||
<g id="a_Node000012"><a xlink:href="../../da/d0d/longest__common__string_8cpp.html#ad1e613c1b85cc04ed931b6c745fec155" target="_top" xlink:title="checks if the function longest_common_string_length returns the same result when its argument are fli...">
|
||||
<polygon fill="white" stroke="#666666" points="287.25,-110.88 146.75,-110.88 146.75,-80.38 287.25,-80.38 287.25,-110.88"/>
|
||||
<text text-anchor="start" x="154.75" y="-97.38" font-family="Helvetica,sans-Serif" font-size="10.00">test_longest_common</text>
|
||||
<text text-anchor="middle" x="217" y="-86.12" font-family="Helvetica,sans-Serif" font-size="10.00">_string_length_is_symmetric</text>
|
||||
</a>
|
||||
</g>
|
||||
</g>
|
||||
<!-- Node2->Node12 -->
|
||||
<g id="edge12_Node000002_Node000012" class="edge">
|
||||
<title>Node2->Node12</title>
|
||||
<g id="a_edge12_Node000002_Node000012"><a xlink:title=" ">
|
||||
<path fill="none" stroke="#63b8ff" d="M111.04,-116.08C117.94,-114.74 126.31,-113.11 135.29,-111.36"/>
|
||||
<polygon fill="#63b8ff" stroke="#63b8ff" points="135.85,-114.81 144.99,-109.47 134.51,-107.94 135.85,-114.81"/>
|
||||
</a>
|
||||
</g>
|
||||
</g>
|
||||
<!-- Node5 -->
|
||||
<g id="Node000005" class="node">
|
||||
<title>Node5</title>
|
||||
<g id="a_Node000005"><a xlink:href="../../da/d0d/longest__common__string_8cpp.html#aa38b6b17bc5d46ed88acdd8414e18fa5" target="_top" xlink:title="computes the length of the longest common string created from input strings">
|
||||
<polygon fill="white" stroke="#666666" points="442.75,-110.88 323.25,-110.88 323.25,-80.38 442.75,-80.38 442.75,-110.88"/>
|
||||
<text text-anchor="start" x="331.25" y="-97.38" font-family="Helvetica,sans-Serif" font-size="10.00">longest_common_string</text>
|
||||
<text text-anchor="middle" x="383" y="-86.12" font-family="Helvetica,sans-Serif" font-size="10.00">_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="M270.34,-128.99C285.65,-124.41 302.55,-119.36 318.48,-114.6"/>
|
||||
<polygon fill="#63b8ff" stroke="#63b8ff" points="319.28,-118.02 327.86,-111.8 317.28,-111.31 319.28,-118.02"/>
|
||||
</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/algorithm/max.html#" xlink:title=" ">
|
||||
<polygon fill="white" stroke="#666666" points="551.75,-138.25 497.5,-138.25 497.5,-119 551.75,-119 551.75,-138.25"/>
|
||||
<text text-anchor="middle" x="524.62" y="-124.75" font-family="Helvetica,sans-Serif" font-size="10.00">std::max</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="M443.21,-109.62C457.82,-113.07 473.05,-116.67 486.28,-119.8"/>
|
||||
<polygon fill="#63b8ff" stroke="#63b8ff" points="485.32,-123.17 495.86,-122.06 486.93,-116.36 485.32,-123.17"/>
|
||||
</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/string/basic_string/size.html#" xlink:title=" ">
|
||||
<polygon fill="white" stroke="#666666" points="566.38,-101.25 482.88,-101.25 482.88,-82 566.38,-82 566.38,-101.25"/>
|
||||
<text text-anchor="middle" x="524.62" y="-87.75" font-family="Helvetica,sans-Serif" font-size="10.00">std::string::size</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="M443.21,-93.93C452.52,-93.66 462.08,-93.39 471.21,-93.13"/>
|
||||
<polygon fill="#63b8ff" stroke="#63b8ff" points="471.09,-96.63 480.99,-92.85 470.89,-89.63 471.09,-96.63"/>
|
||||
</a>
|
||||
</g>
|
||||
</g>
|
||||
<!-- Node8->Node5 -->
|
||||
<g id="edge8_Node000008_Node000005" class="edge">
|
||||
<title>Node8->Node5</title>
|
||||
<g id="a_edge8_Node000008_Node000005"><a xlink:title=" ">
|
||||
<path fill="none" stroke="#63b8ff" d="M282.82,-62.97C296.25,-67.39 310.32,-72.02 323.51,-76.37"/>
|
||||
<polygon fill="#63b8ff" stroke="#63b8ff" points="322.31,-79.66 332.91,-79.46 324.5,-73.01 322.31,-79.66"/>
|
||||
</a>
|
||||
</g>
|
||||
</g>
|
||||
<!-- Node9 -->
|
||||
<g id="Node000009" class="node">
|
||||
<title>Node9</title>
|
||||
<g id="a_Node000009"><a xlink:href="../../da/d0d/longest__common__string_8cpp.html#acb03dbbcee6d607db471021168be8541" target="_top" xlink:title="reverses a given string">
|
||||
<polygon fill="white" stroke="#666666" points="415.38,-51.25 350.62,-51.25 350.62,-32 415.38,-32 415.38,-51.25"/>
|
||||
<text text-anchor="middle" x="383" y="-37.75" font-family="Helvetica,sans-Serif" font-size="10.00">reverse_str</text>
|
||||
</a>
|
||||
</g>
|
||||
</g>
|
||||
<!-- Node8->Node9 -->
|
||||
<g id="edge9_Node000008_Node000009" class="edge">
|
||||
<title>Node8->Node9</title>
|
||||
<g id="a_edge9_Node000008_Node000009"><a xlink:title=" ">
|
||||
<path fill="none" stroke="#63b8ff" d="M285.18,-41.62C303.26,-41.62 322.33,-41.62 338.73,-41.62"/>
|
||||
<polygon fill="#63b8ff" stroke="#63b8ff" points="338.62,-45.13 348.62,-41.63 338.62,-38.13 338.62,-45.13"/>
|
||||
</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/string/basic_string/rbegin.html#" xlink:title=" ">
|
||||
<polygon fill="white" stroke="#666666" points="570.5,-56.25 478.75,-56.25 478.75,-37 570.5,-37 570.5,-56.25"/>
|
||||
<text text-anchor="middle" x="524.62" y="-42.75" font-family="Helvetica,sans-Serif" font-size="10.00">std::string::rbegin</text>
|
||||
</a>
|
||||
</g>
|
||||
</g>
|
||||
<!-- Node9->Node10 -->
|
||||
<g id="edge10_Node000009_Node000010" class="edge">
|
||||
<title>Node9->Node10</title>
|
||||
<g id="a_edge10_Node000009_Node000010"><a xlink:title=" ">
|
||||
<path fill="none" stroke="#63b8ff" d="M415.68,-42.76C430.86,-43.3 449.51,-43.97 467.01,-44.6"/>
|
||||
<polygon fill="#63b8ff" stroke="#63b8ff" points="466.67,-48.09 476.79,-44.95 466.92,-41.09 466.67,-48.09"/>
|
||||
</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/string/basic_string/rend.html#" xlink:title=" ">
|
||||
<polygon fill="white" stroke="#666666" points="566.75,-19.25 482.5,-19.25 482.5,0 566.75,0 566.75,-19.25"/>
|
||||
<text text-anchor="middle" x="524.62" y="-5.75" font-family="Helvetica,sans-Serif" font-size="10.00">std::string::rend</text>
|
||||
</a>
|
||||
</g>
|
||||
</g>
|
||||
<!-- Node9->Node11 -->
|
||||
<g id="edge11_Node000009_Node000011" class="edge">
|
||||
<title>Node9->Node11</title>
|
||||
<g id="a_edge11_Node000009_Node000011"><a xlink:title=" ">
|
||||
<path fill="none" stroke="#63b8ff" d="M415.68,-34.36C432.08,-30.6 452.54,-25.92 471.21,-21.64"/>
|
||||
<polygon fill="#63b8ff" stroke="#63b8ff" points="471.82,-25.09 480.78,-19.44 470.26,-18.27 471.82,-25.09"/>
|
||||
</a>
|
||||
</g>
|
||||
</g>
|
||||
<!-- Node12->Node5 -->
|
||||
<g id="edge13_Node000012_Node000005" class="edge">
|
||||
<title>Node12->Node5</title>
|
||||
<g id="a_edge13_Node000012_Node000005"><a xlink:title=" ">
|
||||
<path fill="none" stroke="#63b8ff" d="M287.55,-95.62C295.47,-95.62 303.55,-95.62 311.48,-95.62"/>
|
||||
<polygon fill="#63b8ff" stroke="#63b8ff" points="311.44,-99.13 321.44,-95.63 311.44,-92.13 311.44,-99.13"/>
|
||||
</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="longest__common__string_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: 16 KiB |
@@ -1,242 +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="579pt" height="205pt"
|
||||
viewBox="0.00 0.00 578.50 205.25" 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 201.25)">
|
||||
<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,-129.25 0,-129.25 0,-110 37,-110 37,-129.25"/>
|
||||
<text text-anchor="middle" x="18.5" y="-115.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="../../da/d0d/longest__common__string_8cpp.html#a483bb8ccf42aaf7375a83e91490eda1e" target="_top" xlink:title="runs all tests for longest_common_string_length funcion">
|
||||
<polygon fill="white" stroke="#666666" points="110.75,-129.25 73,-129.25 73,-110 110.75,-110 110.75,-129.25"/>
|
||||
<text text-anchor="middle" x="91.88" y="-115.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,-119.62C44.55,-119.62 53.37,-119.62 61.69,-119.62"/>
|
||||
<polygon fill="#63b8ff" stroke="#63b8ff" points="61.43,-123.13 71.43,-119.63 61.43,-116.13 61.43,-123.13"/>
|
||||
</a>
|
||||
</g>
|
||||
</g>
|
||||
<!-- Node3 -->
|
||||
<g id="Node000003" class="node">
|
||||
<title>Node3</title>
|
||||
<g id="a_Node000003"><a xlink:href="../../da/d0d/longest__common__string_8cpp.html#a967854a526bc15403d783a033155fc5c" target="_top" xlink:title=" ">
|
||||
<polygon fill="white" stroke="#666666" points="258.38,-197.25 175.62,-197.25 175.62,-178 258.38,-178 258.38,-197.25"/>
|
||||
<text text-anchor="middle" x="217" y="-183.75" font-family="Helvetica,sans-Serif" font-size="10.00">get_test_cases</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="M101,-129.39C110.75,-140.48 128.14,-158.39 146.75,-168.62 152.21,-171.63 158.18,-174.18 164.25,-176.35"/>
|
||||
<polygon fill="#63b8ff" stroke="#63b8ff" points="163.17,-179.68 173.76,-179.39 165.3,-173.01 163.17,-179.68"/>
|
||||
</a>
|
||||
</g>
|
||||
</g>
|
||||
<!-- Node4 -->
|
||||
<g id="Node000004" class="node">
|
||||
<title>Node4</title>
|
||||
<g id="a_Node000004"><a xlink:href="../../da/d0d/longest__common__string_8cpp.html#a9b229daad982a186a4d8d90aa8f38561" target="_top" xlink:title="checks the function longest_common_string_length agains example data">
|
||||
<polygon fill="white" stroke="#666666" points="273,-159.88 161,-159.88 161,-129.38 273,-129.38 273,-159.88"/>
|
||||
<text text-anchor="start" x="169" y="-146.38" font-family="Helvetica,sans-Serif" font-size="10.00">test_longest_common</text>
|
||||
<text text-anchor="middle" x="217" y="-135.12" font-family="Helvetica,sans-Serif" font-size="10.00">_string_length</text>
|
||||
</a>
|
||||
</g>
|
||||
</g>
|
||||
<!-- Node2->Node4 -->
|
||||
<g id="edge3_Node000002_Node000004" class="edge">
|
||||
<title>Node2->Node4</title>
|
||||
<g id="a_edge3_Node000002_Node000004"><a xlink:title=" ">
|
||||
<path fill="none" stroke="#63b8ff" d="M111.04,-123.31C121.54,-125.45 135.47,-128.27 149.74,-131.17"/>
|
||||
<polygon fill="#63b8ff" stroke="#63b8ff" points="148.68,-134.53 159.18,-133.09 150.08,-127.67 148.68,-134.53"/>
|
||||
</a>
|
||||
</g>
|
||||
</g>
|
||||
<!-- Node8 -->
|
||||
<g id="Node000008" class="node">
|
||||
<title>Node8</title>
|
||||
<g id="a_Node000008"><a xlink:href="../../da/d0d/longest__common__string_8cpp.html#a23ab67b0d9600697695fc8679462d8fe" target="_top" xlink:title="checks if the function longest_common_string_length returns the same result when its inputs are rever...">
|
||||
<polygon fill="white" stroke="#666666" points="285,-62.5 149,-62.5 149,-20.75 285,-20.75 285,-62.5"/>
|
||||
<text text-anchor="start" x="157" y="-49" font-family="Helvetica,sans-Serif" font-size="10.00">test_longest_common</text>
|
||||
<text text-anchor="start" x="157" y="-37.75" font-family="Helvetica,sans-Serif" font-size="10.00">_string_length_for_reversed</text>
|
||||
<text text-anchor="middle" x="217" y="-26.5" font-family="Helvetica,sans-Serif" font-size="10.00">_inputs</text>
|
||||
</a>
|
||||
</g>
|
||||
</g>
|
||||
<!-- Node2->Node8 -->
|
||||
<g id="edge7_Node000002_Node000008" class="edge">
|
||||
<title>Node2->Node8</title>
|
||||
<g id="a_edge7_Node000002_Node000008"><a xlink:title=" ">
|
||||
<path fill="none" stroke="#63b8ff" d="M102.04,-109.77C112.19,-99.27 129.43,-82.68 146.75,-71.62 148.57,-70.46 150.45,-69.32 152.36,-68.21"/>
|
||||
<polygon fill="#63b8ff" stroke="#63b8ff" points="153.73,-71.45 160.85,-63.61 150.39,-65.3 153.73,-71.45"/>
|
||||
</a>
|
||||
</g>
|
||||
</g>
|
||||
<!-- Node12 -->
|
||||
<g id="Node000012" class="node">
|
||||
<title>Node12</title>
|
||||
<g id="a_Node000012"><a xlink:href="../../da/d0d/longest__common__string_8cpp.html#ad1e613c1b85cc04ed931b6c745fec155" target="_top" xlink:title="checks if the function longest_common_string_length returns the same result when its argument are fli...">
|
||||
<polygon fill="white" stroke="#666666" points="287.25,-110.88 146.75,-110.88 146.75,-80.38 287.25,-80.38 287.25,-110.88"/>
|
||||
<text text-anchor="start" x="154.75" y="-97.38" font-family="Helvetica,sans-Serif" font-size="10.00">test_longest_common</text>
|
||||
<text text-anchor="middle" x="217" y="-86.12" font-family="Helvetica,sans-Serif" font-size="10.00">_string_length_is_symmetric</text>
|
||||
</a>
|
||||
</g>
|
||||
</g>
|
||||
<!-- Node2->Node12 -->
|
||||
<g id="edge12_Node000002_Node000012" class="edge">
|
||||
<title>Node2->Node12</title>
|
||||
<g id="a_edge12_Node000002_Node000012"><a xlink:title=" ">
|
||||
<path fill="none" stroke="#63b8ff" d="M111.04,-116.08C117.94,-114.74 126.31,-113.11 135.29,-111.36"/>
|
||||
<polygon fill="#63b8ff" stroke="#63b8ff" points="135.85,-114.81 144.99,-109.47 134.51,-107.94 135.85,-114.81"/>
|
||||
</a>
|
||||
</g>
|
||||
</g>
|
||||
<!-- Node5 -->
|
||||
<g id="Node000005" class="node">
|
||||
<title>Node5</title>
|
||||
<g id="a_Node000005"><a xlink:href="../../da/d0d/longest__common__string_8cpp.html#aa38b6b17bc5d46ed88acdd8414e18fa5" target="_top" xlink:title="computes the length of the longest common string created from input strings">
|
||||
<polygon fill="white" stroke="#666666" points="442.75,-110.88 323.25,-110.88 323.25,-80.38 442.75,-80.38 442.75,-110.88"/>
|
||||
<text text-anchor="start" x="331.25" y="-97.38" font-family="Helvetica,sans-Serif" font-size="10.00">longest_common_string</text>
|
||||
<text text-anchor="middle" x="383" y="-86.12" font-family="Helvetica,sans-Serif" font-size="10.00">_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="M270.34,-128.99C285.65,-124.41 302.55,-119.36 318.48,-114.6"/>
|
||||
<polygon fill="#63b8ff" stroke="#63b8ff" points="319.28,-118.02 327.86,-111.8 317.28,-111.31 319.28,-118.02"/>
|
||||
</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/algorithm/max.html#" xlink:title=" ">
|
||||
<polygon fill="white" stroke="#666666" points="551.75,-138.25 497.5,-138.25 497.5,-119 551.75,-119 551.75,-138.25"/>
|
||||
<text text-anchor="middle" x="524.62" y="-124.75" font-family="Helvetica,sans-Serif" font-size="10.00">std::max</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="M443.21,-109.62C457.82,-113.07 473.05,-116.67 486.28,-119.8"/>
|
||||
<polygon fill="#63b8ff" stroke="#63b8ff" points="485.32,-123.17 495.86,-122.06 486.93,-116.36 485.32,-123.17"/>
|
||||
</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/string/basic_string/size.html#" xlink:title=" ">
|
||||
<polygon fill="white" stroke="#666666" points="566.38,-101.25 482.88,-101.25 482.88,-82 566.38,-82 566.38,-101.25"/>
|
||||
<text text-anchor="middle" x="524.62" y="-87.75" font-family="Helvetica,sans-Serif" font-size="10.00">std::string::size</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="M443.21,-93.93C452.52,-93.66 462.08,-93.39 471.21,-93.13"/>
|
||||
<polygon fill="#63b8ff" stroke="#63b8ff" points="471.09,-96.63 480.99,-92.85 470.89,-89.63 471.09,-96.63"/>
|
||||
</a>
|
||||
</g>
|
||||
</g>
|
||||
<!-- Node8->Node5 -->
|
||||
<g id="edge8_Node000008_Node000005" class="edge">
|
||||
<title>Node8->Node5</title>
|
||||
<g id="a_edge8_Node000008_Node000005"><a xlink:title=" ">
|
||||
<path fill="none" stroke="#63b8ff" d="M282.82,-62.97C296.25,-67.39 310.32,-72.02 323.51,-76.37"/>
|
||||
<polygon fill="#63b8ff" stroke="#63b8ff" points="322.31,-79.66 332.91,-79.46 324.5,-73.01 322.31,-79.66"/>
|
||||
</a>
|
||||
</g>
|
||||
</g>
|
||||
<!-- Node9 -->
|
||||
<g id="Node000009" class="node">
|
||||
<title>Node9</title>
|
||||
<g id="a_Node000009"><a xlink:href="../../da/d0d/longest__common__string_8cpp.html#acb03dbbcee6d607db471021168be8541" target="_top" xlink:title="reverses a given string">
|
||||
<polygon fill="white" stroke="#666666" points="415.38,-51.25 350.62,-51.25 350.62,-32 415.38,-32 415.38,-51.25"/>
|
||||
<text text-anchor="middle" x="383" y="-37.75" font-family="Helvetica,sans-Serif" font-size="10.00">reverse_str</text>
|
||||
</a>
|
||||
</g>
|
||||
</g>
|
||||
<!-- Node8->Node9 -->
|
||||
<g id="edge9_Node000008_Node000009" class="edge">
|
||||
<title>Node8->Node9</title>
|
||||
<g id="a_edge9_Node000008_Node000009"><a xlink:title=" ">
|
||||
<path fill="none" stroke="#63b8ff" d="M285.18,-41.62C303.26,-41.62 322.33,-41.62 338.73,-41.62"/>
|
||||
<polygon fill="#63b8ff" stroke="#63b8ff" points="338.62,-45.13 348.62,-41.63 338.62,-38.13 338.62,-45.13"/>
|
||||
</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/string/basic_string/rbegin.html#" xlink:title=" ">
|
||||
<polygon fill="white" stroke="#666666" points="570.5,-56.25 478.75,-56.25 478.75,-37 570.5,-37 570.5,-56.25"/>
|
||||
<text text-anchor="middle" x="524.62" y="-42.75" font-family="Helvetica,sans-Serif" font-size="10.00">std::string::rbegin</text>
|
||||
</a>
|
||||
</g>
|
||||
</g>
|
||||
<!-- Node9->Node10 -->
|
||||
<g id="edge10_Node000009_Node000010" class="edge">
|
||||
<title>Node9->Node10</title>
|
||||
<g id="a_edge10_Node000009_Node000010"><a xlink:title=" ">
|
||||
<path fill="none" stroke="#63b8ff" d="M415.68,-42.76C430.86,-43.3 449.51,-43.97 467.01,-44.6"/>
|
||||
<polygon fill="#63b8ff" stroke="#63b8ff" points="466.67,-48.09 476.79,-44.95 466.92,-41.09 466.67,-48.09"/>
|
||||
</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/string/basic_string/rend.html#" xlink:title=" ">
|
||||
<polygon fill="white" stroke="#666666" points="566.75,-19.25 482.5,-19.25 482.5,0 566.75,0 566.75,-19.25"/>
|
||||
<text text-anchor="middle" x="524.62" y="-5.75" font-family="Helvetica,sans-Serif" font-size="10.00">std::string::rend</text>
|
||||
</a>
|
||||
</g>
|
||||
</g>
|
||||
<!-- Node9->Node11 -->
|
||||
<g id="edge11_Node000009_Node000011" class="edge">
|
||||
<title>Node9->Node11</title>
|
||||
<g id="a_edge11_Node000009_Node000011"><a xlink:title=" ">
|
||||
<path fill="none" stroke="#63b8ff" d="M415.68,-34.36C432.08,-30.6 452.54,-25.92 471.21,-21.64"/>
|
||||
<polygon fill="#63b8ff" stroke="#63b8ff" points="471.82,-25.09 480.78,-19.44 470.26,-18.27 471.82,-25.09"/>
|
||||
</a>
|
||||
</g>
|
||||
</g>
|
||||
<!-- Node12->Node5 -->
|
||||
<g id="edge13_Node000012_Node000005" class="edge">
|
||||
<title>Node12->Node5</title>
|
||||
<g id="a_edge13_Node000012_Node000005"><a xlink:title=" ">
|
||||
<path fill="none" stroke="#63b8ff" d="M287.55,-95.62C295.47,-95.62 303.55,-95.62 311.48,-95.62"/>
|
||||
<polygon fill="#63b8ff" stroke="#63b8ff" points="311.44,-99.13 321.44,-95.63 311.44,-92.13 311.44,-99.13"/>
|
||||
</a>
|
||||
</g>
|
||||
</g>
|
||||
</g>
|
||||
</svg>
|
||||
|
Before Width: | Height: | Size: 12 KiB |
267
da/d0d/longest__common__string_8cpp_source.html
Normal file
@@ -0,0 +1,267 @@
|
||||
<!-- 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++: dynamic_programming/longest_common_string.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('da/d0d/longest__common__string_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">longest_common_string.cpp</div></div>
|
||||
</div><!--header-->
|
||||
<div class="contents">
|
||||
<a href="../../da/d0d/longest__common__string_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="l00013" name="l00013"></a><span class="lineno"> 13</span><span class="preprocessor">#include <cassert></span> </div>
|
||||
<div class="line"><a id="l00014" name="l00014"></a><span class="lineno"> 14</span><span class="preprocessor">#include <iostream></span> </div>
|
||||
<div class="line"><a id="l00015" name="l00015"></a><span class="lineno"> 15</span><span class="preprocessor">#include <string></span> </div>
|
||||
<div class="line"><a id="l00016" name="l00016"></a><span class="lineno"> 16</span><span class="preprocessor">#include <utility></span> </div>
|
||||
<div class="line"><a id="l00017" name="l00017"></a><span class="lineno"> 17</span><span class="preprocessor">#include <vector></span> </div>
|
||||
<div class="line"><a id="l00018" name="l00018"></a><span class="lineno"> 18</span> </div>
|
||||
<div class="foldopen" id="foldopen00028" data-start="{" data-end="}">
|
||||
<div class="line"><a id="l00028" name="l00028"></a><span class="lineno"><a class="line" href="../../da/d0d/longest__common__string_8cpp.html#aa38b6b17bc5d46ed88acdd8414e18fa5"> 28</a></span>std::size_t <a class="code hl_function" href="../../da/d0d/longest__common__string_8cpp.html#aa38b6b17bc5d46ed88acdd8414e18fa5">longest_common_string_length</a>(<span class="keyword">const</span> std::string& string_a,</div>
|
||||
<div class="line"><a id="l00029" name="l00029"></a><span class="lineno"> 29</span> <span class="keyword">const</span> std::string& string_b) {</div>
|
||||
<div class="line"><a id="l00030" name="l00030"></a><span class="lineno"> 30</span> <span class="keyword">const</span> <span class="keyword">auto</span> size_a = string_a.size();</div>
|
||||
<div class="line"><a id="l00031" name="l00031"></a><span class="lineno"> 31</span> <span class="keyword">const</span> <span class="keyword">auto</span> size_b = string_b.size();</div>
|
||||
<div class="line"><a id="l00032" name="l00032"></a><span class="lineno"> 32</span> std::vector<std::vector<std::size_t>> sub_sols(</div>
|
||||
<div class="line"><a id="l00033" name="l00033"></a><span class="lineno"> 33</span> size_a + 1, std::vector<std::size_t>(size_b + 1, 0));</div>
|
||||
<div class="line"><a id="l00034" name="l00034"></a><span class="lineno"> 34</span> </div>
|
||||
<div class="line"><a id="l00035" name="l00035"></a><span class="lineno"> 35</span> <span class="keyword">const</span> <span class="keyword">auto</span> limit = <span class="keyword">static_cast<</span>std::size_t<span class="keyword">></span>(-1);</div>
|
||||
<div class="line"><a id="l00036" name="l00036"></a><span class="lineno"> 36</span> <span class="keywordflow">for</span> (std::size_t pos_a = size_a - 1; pos_a != limit; --pos_a) {</div>
|
||||
<div class="line"><a id="l00037" name="l00037"></a><span class="lineno"> 37</span> <span class="keywordflow">for</span> (std::size_t pos_b = size_b - 1; pos_b != limit; --pos_b) {</div>
|
||||
<div class="line"><a id="l00038" name="l00038"></a><span class="lineno"> 38</span> <span class="keywordflow">if</span> (string_a[pos_a] == string_b[pos_b]) {</div>
|
||||
<div class="line"><a id="l00039" name="l00039"></a><span class="lineno"> 39</span> sub_sols[pos_a][pos_b] = 1 + sub_sols[pos_a + 1][pos_b + 1];</div>
|
||||
<div class="line"><a id="l00040" name="l00040"></a><span class="lineno"> 40</span> } <span class="keywordflow">else</span> {</div>
|
||||
<div class="line"><a id="l00041" name="l00041"></a><span class="lineno"> 41</span> sub_sols[pos_a][pos_b] = std::max(sub_sols[pos_a + 1][pos_b],</div>
|
||||
<div class="line"><a id="l00042" name="l00042"></a><span class="lineno"> 42</span> sub_sols[pos_a][pos_b + 1]);</div>
|
||||
<div class="line"><a id="l00043" name="l00043"></a><span class="lineno"> 43</span> }</div>
|
||||
<div class="line"><a id="l00044" name="l00044"></a><span class="lineno"> 44</span> }</div>
|
||||
<div class="line"><a id="l00045" name="l00045"></a><span class="lineno"> 45</span> }</div>
|
||||
<div class="line"><a id="l00046" name="l00046"></a><span class="lineno"> 46</span> </div>
|
||||
<div class="line"><a id="l00047" name="l00047"></a><span class="lineno"> 47</span> <span class="keywordflow">return</span> sub_sols[0][0];</div>
|
||||
<div class="line"><a id="l00048" name="l00048"></a><span class="lineno"> 48</span>}</div>
|
||||
</div>
|
||||
<div class="line"><a id="l00049" name="l00049"></a><span class="lineno"> 49</span> </div>
|
||||
<div class="foldopen" id="foldopen00054" data-start="{" data-end="};">
|
||||
<div class="line"><a id="l00054" name="l00054"></a><span class="lineno"><a class="line" href="../../da/d86/struct_test_case.html"> 54</a></span><span class="keyword">struct </span><a class="code hl_struct" href="../../da/d86/struct_test_case.html">TestCase</a> {</div>
|
||||
<div class="line"><a id="l00055" name="l00055"></a><span class="lineno"> 55</span> <span class="keyword">const</span> std::string string_a;</div>
|
||||
<div class="line"><a id="l00056" name="l00056"></a><span class="lineno"> 56</span> <span class="keyword">const</span> std::string string_b;</div>
|
||||
<div class="line"><a id="l00057" name="l00057"></a><span class="lineno"> 57</span> <span class="keyword">const</span> std::size_t common_string_len;</div>
|
||||
<div class="line"><a id="l00058" name="l00058"></a><span class="lineno"> 58</span> </div>
|
||||
<div class="line"><a id="l00059" name="l00059"></a><span class="lineno"> 59</span> <a class="code hl_struct" href="../../da/d86/struct_test_case.html">TestCase</a>(std::string string_a, std::string string_b,</div>
|
||||
<div class="line"><a id="l00060" name="l00060"></a><span class="lineno"> 60</span> <span class="keyword">const</span> std::size_t in_common_string_len)</div>
|
||||
<div class="line"><a id="l00061" name="l00061"></a><span class="lineno"> 61</span> : string_a(std::move(string_a)),</div>
|
||||
<div class="line"><a id="l00062" name="l00062"></a><span class="lineno"> 62</span> string_b(std::move(string_b)),</div>
|
||||
<div class="line"><a id="l00063" name="l00063"></a><span class="lineno"> 63</span> common_string_len(in_common_string_len) {}</div>
|
||||
<div class="line"><a id="l00064" name="l00064"></a><span class="lineno"> 64</span>};</div>
|
||||
</div>
|
||||
<div class="line"><a id="l00065" name="l00065"></a><span class="lineno"> 65</span> </div>
|
||||
<div class="foldopen" id="foldopen00069" data-start="{" data-end="}">
|
||||
<div class="line"><a id="l00069" name="l00069"></a><span class="lineno"><a class="line" href="../../da/d0d/longest__common__string_8cpp.html#a967854a526bc15403d783a033155fc5c"> 69</a></span>std::vector<TestCase> <a class="code hl_function" href="../../da/d0d/longest__common__string_8cpp.html#a967854a526bc15403d783a033155fc5c">get_test_cases</a>() {</div>
|
||||
<div class="line"><a id="l00070" name="l00070"></a><span class="lineno"> 70</span> <span class="keywordflow">return</span> {<a class="code hl_struct" href="../../da/d86/struct_test_case.html">TestCase</a>(<span class="stringliteral">""</span>, <span class="stringliteral">""</span>, 0),</div>
|
||||
<div class="line"><a id="l00071" name="l00071"></a><span class="lineno"> 71</span> <a class="code hl_struct" href="../../da/d86/struct_test_case.html">TestCase</a>(<span class="stringliteral">"ab"</span>, <span class="stringliteral">"ab"</span>, 2),</div>
|
||||
<div class="line"><a id="l00072" name="l00072"></a><span class="lineno"> 72</span> <a class="code hl_struct" href="../../da/d86/struct_test_case.html">TestCase</a>(<span class="stringliteral">"ab"</span>, <span class="stringliteral">"ba"</span>, 1),</div>
|
||||
<div class="line"><a id="l00073" name="l00073"></a><span class="lineno"> 73</span> <a class="code hl_struct" href="../../da/d86/struct_test_case.html">TestCase</a>(<span class="stringliteral">""</span>, <span class="stringliteral">"xyz"</span>, 0),</div>
|
||||
<div class="line"><a id="l00074" name="l00074"></a><span class="lineno"> 74</span> <a class="code hl_struct" href="../../da/d86/struct_test_case.html">TestCase</a>(<span class="stringliteral">"abcde"</span>, <span class="stringliteral">"ace"</span>, 3),</div>
|
||||
<div class="line"><a id="l00075" name="l00075"></a><span class="lineno"> 75</span> <a class="code hl_struct" href="../../da/d86/struct_test_case.html">TestCase</a>(<span class="stringliteral">"BADANA"</span>, <span class="stringliteral">"ANADA"</span>, 3),</div>
|
||||
<div class="line"><a id="l00076" name="l00076"></a><span class="lineno"> 76</span> <a class="code hl_struct" href="../../da/d86/struct_test_case.html">TestCase</a>(<span class="stringliteral">"BADANA"</span>, <span class="stringliteral">"CANADAS"</span>, 3),</div>
|
||||
<div class="line"><a id="l00077" name="l00077"></a><span class="lineno"> 77</span> <a class="code hl_struct" href="../../da/d86/struct_test_case.html">TestCase</a>(<span class="stringliteral">"a1a234a5aaaa6"</span>, <span class="stringliteral">"A1AAAA234AAA56AAAAA"</span>, 6),</div>
|
||||
<div class="line"><a id="l00078" name="l00078"></a><span class="lineno"> 78</span> <a class="code hl_struct" href="../../da/d86/struct_test_case.html">TestCase</a>(<span class="stringliteral">"123x"</span>, <span class="stringliteral">"123"</span>, 3),</div>
|
||||
<div class="line"><a id="l00079" name="l00079"></a><span class="lineno"> 79</span> <a class="code hl_struct" href="../../da/d86/struct_test_case.html">TestCase</a>(<span class="stringliteral">"12x3x"</span>, <span class="stringliteral">"123"</span>, 3),</div>
|
||||
<div class="line"><a id="l00080" name="l00080"></a><span class="lineno"> 80</span> <a class="code hl_struct" href="../../da/d86/struct_test_case.html">TestCase</a>(<span class="stringliteral">"1x2x3x"</span>, <span class="stringliteral">"123"</span>, 3),</div>
|
||||
<div class="line"><a id="l00081" name="l00081"></a><span class="lineno"> 81</span> <a class="code hl_struct" href="../../da/d86/struct_test_case.html">TestCase</a>(<span class="stringliteral">"x1x2x3x"</span>, <span class="stringliteral">"123"</span>, 3),</div>
|
||||
<div class="line"><a id="l00082" name="l00082"></a><span class="lineno"> 82</span> <a class="code hl_struct" href="../../da/d86/struct_test_case.html">TestCase</a>(<span class="stringliteral">"x12x3x"</span>, <span class="stringliteral">"123"</span>, 3)};</div>
|
||||
<div class="line"><a id="l00083" name="l00083"></a><span class="lineno"> 83</span>}</div>
|
||||
</div>
|
||||
<div class="line"><a id="l00084" name="l00084"></a><span class="lineno"> 84</span> </div>
|
||||
<div class="line"><a id="l00090" name="l00090"></a><span class="lineno"> 90</span><span class="keyword">template</span> <<span class="keyword">typename</span> TestCases></div>
|
||||
<div class="foldopen" id="foldopen00091" data-start="{" data-end="}">
|
||||
<div class="line"><a id="l00091" name="l00091"></a><span class="lineno"><a class="line" href="../../da/d0d/longest__common__string_8cpp.html#a9b229daad982a186a4d8d90aa8f38561"> 91</a></span><span class="keyword">static</span> <span class="keywordtype">void</span> <a class="code hl_function" href="../../da/d0d/longest__common__string_8cpp.html#a9b229daad982a186a4d8d90aa8f38561">test_longest_common_string_length</a>(<span class="keyword">const</span> <a class="code hl_class" href="../../d5/d58/class_test_cases.html">TestCases</a>& test_cases) {</div>
|
||||
<div class="line"><a id="l00092" name="l00092"></a><span class="lineno"> 92</span> <span class="keywordflow">for</span> (<span class="keyword">const</span> <span class="keyword">auto</span>& cur_tc : test_cases) {</div>
|
||||
<div class="line"><a id="l00093" name="l00093"></a><span class="lineno"> 93</span> assert(<a class="code hl_function" href="../../da/d0d/longest__common__string_8cpp.html#aa38b6b17bc5d46ed88acdd8414e18fa5">longest_common_string_length</a>(cur_tc.string_a, cur_tc.string_b) ==</div>
|
||||
<div class="line"><a id="l00094" name="l00094"></a><span class="lineno"> 94</span> cur_tc.common_string_len);</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>}</div>
|
||||
</div>
|
||||
<div class="line"><a id="l00097" name="l00097"></a><span class="lineno"> 97</span> </div>
|
||||
<div class="line"><a id="l00104" name="l00104"></a><span class="lineno"> 104</span><span class="keyword">template</span> <<span class="keyword">typename</span> TestCases></div>
|
||||
<div class="foldopen" id="foldopen00105" data-start="{" data-end="}">
|
||||
<div class="line"><a id="l00105" name="l00105"></a><span class="lineno"><a class="line" href="../../da/d0d/longest__common__string_8cpp.html#ad1e613c1b85cc04ed931b6c745fec155"> 105</a></span><span class="keyword">static</span> <span class="keywordtype">void</span> <a class="code hl_function" href="../../da/d0d/longest__common__string_8cpp.html#ad1e613c1b85cc04ed931b6c745fec155">test_longest_common_string_length_is_symmetric</a>(</div>
|
||||
<div class="line"><a id="l00106" name="l00106"></a><span class="lineno"> 106</span> <span class="keyword">const</span> <a class="code hl_class" href="../../d5/d58/class_test_cases.html">TestCases</a>& test_cases) {</div>
|
||||
<div class="line"><a id="l00107" name="l00107"></a><span class="lineno"> 107</span> <span class="keywordflow">for</span> (<span class="keyword">const</span> <span class="keyword">auto</span>& cur_tc : test_cases) {</div>
|
||||
<div class="line"><a id="l00108" name="l00108"></a><span class="lineno"> 108</span> assert(<a class="code hl_function" href="../../da/d0d/longest__common__string_8cpp.html#aa38b6b17bc5d46ed88acdd8414e18fa5">longest_common_string_length</a>(cur_tc.string_b, cur_tc.string_a) ==</div>
|
||||
<div class="line"><a id="l00109" name="l00109"></a><span class="lineno"> 109</span> cur_tc.common_string_len);</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>
|
||||
<div class="line"><a id="l00112" name="l00112"></a><span class="lineno"> 112</span> </div>
|
||||
<div class="foldopen" id="foldopen00119" data-start="{" data-end="}">
|
||||
<div class="line"><a id="l00119" name="l00119"></a><span class="lineno"><a class="line" href="../../da/d0d/longest__common__string_8cpp.html#acb03dbbcee6d607db471021168be8541"> 119</a></span>std::string <a class="code hl_function" href="../../da/d0d/longest__common__string_8cpp.html#acb03dbbcee6d607db471021168be8541">reverse_str</a>(<span class="keyword">const</span> std::string& in_str) {</div>
|
||||
<div class="line"><a id="l00120" name="l00120"></a><span class="lineno"> 120</span> <span class="keywordflow">return</span> {in_str.rbegin(), in_str.rend()};</div>
|
||||
<div class="line"><a id="l00121" name="l00121"></a><span class="lineno"> 121</span>}</div>
|
||||
</div>
|
||||
<div class="line"><a id="l00122" name="l00122"></a><span class="lineno"> 122</span> </div>
|
||||
<div class="line"><a id="l00129" name="l00129"></a><span class="lineno"> 129</span><span class="keyword">template</span> <<span class="keyword">typename</span> TestCases></div>
|
||||
<div class="foldopen" id="foldopen00130" data-start="{" data-end="}">
|
||||
<div class="line"><a id="l00130" name="l00130"></a><span class="lineno"><a class="line" href="../../da/d0d/longest__common__string_8cpp.html#a23ab67b0d9600697695fc8679462d8fe"> 130</a></span><span class="keyword">static</span> <span class="keywordtype">void</span> <a class="code hl_function" href="../../da/d0d/longest__common__string_8cpp.html#a23ab67b0d9600697695fc8679462d8fe">test_longest_common_string_length_for_reversed_inputs</a>(</div>
|
||||
<div class="line"><a id="l00131" name="l00131"></a><span class="lineno"> 131</span> <span class="keyword">const</span> <a class="code hl_class" href="../../d5/d58/class_test_cases.html">TestCases</a>& test_cases) {</div>
|
||||
<div class="line"><a id="l00132" name="l00132"></a><span class="lineno"> 132</span> <span class="keywordflow">for</span> (<span class="keyword">const</span> <span class="keyword">auto</span>& cur_tc : test_cases) {</div>
|
||||
<div class="line"><a id="l00133" name="l00133"></a><span class="lineno"> 133</span> assert(<a class="code hl_function" href="../../da/d0d/longest__common__string_8cpp.html#aa38b6b17bc5d46ed88acdd8414e18fa5">longest_common_string_length</a>(<a class="code hl_function" href="../../da/d0d/longest__common__string_8cpp.html#acb03dbbcee6d607db471021168be8541">reverse_str</a>(cur_tc.string_a),</div>
|
||||
<div class="line"><a id="l00134" name="l00134"></a><span class="lineno"> 134</span> <a class="code hl_function" href="../../da/d0d/longest__common__string_8cpp.html#acb03dbbcee6d607db471021168be8541">reverse_str</a>(cur_tc.string_b)) ==</div>
|
||||
<div class="line"><a id="l00135" name="l00135"></a><span class="lineno"> 135</span> cur_tc.common_string_len);</div>
|
||||
<div class="line"><a id="l00136" name="l00136"></a><span class="lineno"> 136</span> }</div>
|
||||
<div class="line"><a id="l00137" name="l00137"></a><span class="lineno"> 137</span>}</div>
|
||||
</div>
|
||||
<div class="line"><a id="l00138" name="l00138"></a><span class="lineno"> 138</span> </div>
|
||||
<div class="foldopen" id="foldopen00142" data-start="{" data-end="}">
|
||||
<div class="line"><a id="l00142" name="l00142"></a><span class="lineno"><a class="line" href="../../da/d0d/longest__common__string_8cpp.html#a483bb8ccf42aaf7375a83e91490eda1e"> 142</a></span><span class="keyword">static</span> <span class="keywordtype">void</span> <a class="code hl_function" href="../../da/d0d/longest__common__string_8cpp.html#a483bb8ccf42aaf7375a83e91490eda1e">tests</a>() {</div>
|
||||
<div class="line"><a id="l00143" name="l00143"></a><span class="lineno"> 143</span> <span class="keyword">const</span> <span class="keyword">auto</span> test_cases = <a class="code hl_function" href="../../da/d0d/longest__common__string_8cpp.html#a967854a526bc15403d783a033155fc5c">get_test_cases</a>();</div>
|
||||
<div class="line"><a id="l00144" name="l00144"></a><span class="lineno"> 144</span> assert(test_cases.size() > 0);</div>
|
||||
<div class="line"><a id="l00145" name="l00145"></a><span class="lineno"> 145</span> <a class="code hl_function" href="../../da/d0d/longest__common__string_8cpp.html#a9b229daad982a186a4d8d90aa8f38561">test_longest_common_string_length</a>(test_cases);</div>
|
||||
<div class="line"><a id="l00146" name="l00146"></a><span class="lineno"> 146</span> <a class="code hl_function" href="../../da/d0d/longest__common__string_8cpp.html#ad1e613c1b85cc04ed931b6c745fec155">test_longest_common_string_length_is_symmetric</a>(test_cases);</div>
|
||||
<div class="line"><a id="l00147" name="l00147"></a><span class="lineno"> 147</span> <a class="code hl_function" href="../../da/d0d/longest__common__string_8cpp.html#a23ab67b0d9600697695fc8679462d8fe">test_longest_common_string_length_for_reversed_inputs</a>(test_cases);</div>
|
||||
<div class="line"><a id="l00148" name="l00148"></a><span class="lineno"> 148</span> </div>
|
||||
<div class="line"><a id="l00149" name="l00149"></a><span class="lineno"> 149</span> std::cout << <span class="stringliteral">"All tests have successfully passed!\n"</span>;</div>
|
||||
<div class="line"><a id="l00150" name="l00150"></a><span class="lineno"> 150</span>}</div>
|
||||
</div>
|
||||
<div class="line"><a id="l00151" name="l00151"></a><span class="lineno"> 151</span> </div>
|
||||
<div class="foldopen" id="foldopen00156" data-start="{" data-end="}">
|
||||
<div class="line"><a id="l00156" name="l00156"></a><span class="lineno"><a class="line" href="../../da/d0d/longest__common__string_8cpp.html#ae66f6b31b5ad750f1fe042a706a4e3d4"> 156</a></span><span class="keywordtype">int</span> <a class="code hl_function" href="../../da/d0d/longest__common__string_8cpp.html#ae66f6b31b5ad750f1fe042a706a4e3d4">main</a>() {</div>
|
||||
<div class="line"><a id="l00157" name="l00157"></a><span class="lineno"> 157</span> <a class="code hl_function" href="../../da/d0d/longest__common__string_8cpp.html#a483bb8ccf42aaf7375a83e91490eda1e">tests</a>();</div>
|
||||
<div class="line"><a id="l00158" name="l00158"></a><span class="lineno"> 158</span> <span class="keywordflow">return</span> 0;</div>
|
||||
<div class="line"><a id="l00159" name="l00159"></a><span class="lineno"> 159</span>}</div>
|
||||
</div>
|
||||
<div class="ttc" id="aclass_test_cases_html"><div class="ttname"><a href="../../d5/d58/class_test_cases.html">TestCases</a></div><div class="ttdoc">class encapsulating the necessary test cases</div><div class="ttdef"><b>Definition</b> <a href="../../d4/d32/inorder__successor__of__bst_8cpp_source.html#l00225">inorder_successor_of_bst.cpp:225</a></div></div>
|
||||
<div class="ttc" id="alongest__common__string_8cpp_html_a23ab67b0d9600697695fc8679462d8fe"><div class="ttname"><a href="../../da/d0d/longest__common__string_8cpp.html#a23ab67b0d9600697695fc8679462d8fe">test_longest_common_string_length_for_reversed_inputs</a></div><div class="ttdeci">static void test_longest_common_string_length_for_reversed_inputs(const TestCases &test_cases)</div><div class="ttdoc">checks if the function longest_common_string_length returns the same result when its inputs are rever...</div><div class="ttdef"><b>Definition</b> <a href="#l00130">longest_common_string.cpp:130</a></div></div>
|
||||
<div class="ttc" id="alongest__common__string_8cpp_html_a483bb8ccf42aaf7375a83e91490eda1e"><div class="ttname"><a href="../../da/d0d/longest__common__string_8cpp.html#a483bb8ccf42aaf7375a83e91490eda1e">tests</a></div><div class="ttdeci">static void tests()</div><div class="ttdoc">runs all tests for longest_common_string_length funcion</div><div class="ttdef"><b>Definition</b> <a href="#l00142">longest_common_string.cpp:142</a></div></div>
|
||||
<div class="ttc" id="alongest__common__string_8cpp_html_a967854a526bc15403d783a033155fc5c"><div class="ttname"><a href="../../da/d0d/longest__common__string_8cpp.html#a967854a526bc15403d783a033155fc5c">get_test_cases</a></div><div class="ttdeci">std::vector< TestCase > get_test_cases()</div><div class="ttdef"><b>Definition</b> <a href="#l00069">longest_common_string.cpp:69</a></div></div>
|
||||
<div class="ttc" id="alongest__common__string_8cpp_html_a9b229daad982a186a4d8d90aa8f38561"><div class="ttname"><a href="../../da/d0d/longest__common__string_8cpp.html#a9b229daad982a186a4d8d90aa8f38561">test_longest_common_string_length</a></div><div class="ttdeci">static void test_longest_common_string_length(const TestCases &test_cases)</div><div class="ttdoc">checks the function longest_common_string_length agains example data</div><div class="ttdef"><b>Definition</b> <a href="#l00091">longest_common_string.cpp:91</a></div></div>
|
||||
<div class="ttc" id="alongest__common__string_8cpp_html_aa38b6b17bc5d46ed88acdd8414e18fa5"><div class="ttname"><a href="../../da/d0d/longest__common__string_8cpp.html#aa38b6b17bc5d46ed88acdd8414e18fa5">longest_common_string_length</a></div><div class="ttdeci">std::size_t longest_common_string_length(const std::string &string_a, const std::string &string_b)</div><div class="ttdoc">computes the length of the longest common string created from input strings</div><div class="ttdef"><b>Definition</b> <a href="#l00028">longest_common_string.cpp:28</a></div></div>
|
||||
<div class="ttc" id="alongest__common__string_8cpp_html_acb03dbbcee6d607db471021168be8541"><div class="ttname"><a href="../../da/d0d/longest__common__string_8cpp.html#acb03dbbcee6d607db471021168be8541">reverse_str</a></div><div class="ttdeci">std::string reverse_str(const std::string &in_str)</div><div class="ttdoc">reverses a given string</div><div class="ttdef"><b>Definition</b> <a href="#l00119">longest_common_string.cpp:119</a></div></div>
|
||||
<div class="ttc" id="alongest__common__string_8cpp_html_ad1e613c1b85cc04ed931b6c745fec155"><div class="ttname"><a href="../../da/d0d/longest__common__string_8cpp.html#ad1e613c1b85cc04ed931b6c745fec155">test_longest_common_string_length_is_symmetric</a></div><div class="ttdeci">static void test_longest_common_string_length_is_symmetric(const TestCases &test_cases)</div><div class="ttdoc">checks if the function longest_common_string_length returns the same result when its argument are fli...</div><div class="ttdef"><b>Definition</b> <a href="#l00105">longest_common_string.cpp:105</a></div></div>
|
||||
<div class="ttc" id="alongest__common__string_8cpp_html_ae66f6b31b5ad750f1fe042a706a4e3d4"><div class="ttname"><a href="../../da/d0d/longest__common__string_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="#l00156">longest_common_string.cpp:156</a></div></div>
|
||||
<div class="ttc" id="astruct_test_case_html"><div class="ttname"><a href="../../da/d86/struct_test_case.html">TestCase</a></div><div class="ttdoc">represents single example inputs and expected output of the function longest_common_string_length</div><div class="ttdef"><b>Definition</b> <a href="#l00054">longest_common_string.cpp:54</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_8a20dd5bfd5341a725342bf72b6b686f.html">dynamic_programming</a></li><li class="navelem"><a class="el" href="../../da/d0d/longest__common__string_8cpp.html">longest_common_string.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>
|
||||