Documentation for 32db99c1de

This commit is contained in:
github-actions
2023-07-04 05:46:48 +00:00
parent 2dacb46e30
commit 3d268fca4e
127 changed files with 5142 additions and 1607 deletions

View File

@@ -0,0 +1,551 @@
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "https://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" lang="en-US">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=11"/>
<meta name="generator" content="Doxygen 1.9.7"/>
<meta name="viewport" content="width=device-width, initial-scale=1"/>
<title>Algorithms_in_C++: dynamic_programming/longest_common_string.cpp File Reference</title>
<link href="../../tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="../../jquery.js"></script>
<script type="text/javascript" src="../../dynsections.js"></script>
<link href="../../navtree.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="../../resize.js"></script>
<script type="text/javascript" src="../../navtreedata.js"></script>
<script type="text/javascript" src="../../navtree.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/x-mathjax-config">
MathJax.Hub.Config({
extensions: ["tex2jax.js", "TeX/AMSmath.js", "TeX/AMSsymbols.js"],
jax: ["input/TeX","output/HTML-CSS"],
});
</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>
<link href="../../doxygen.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
<tbody>
<tr id="projectrow">
<td id="projectalign">
<div id="projectname">Algorithms_in_C++<span id="projectnumber">&#160;1.0.0</span>
</div>
<div id="projectbrief">Set of algorithms implemented in C++.</div>
</td>
</tr>
</tbody>
</table>
</div>
<!-- end header part -->
<!-- Generated by Doxygen 1.9.7 -->
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:d3d9a9a6595521f9666a5e94cc830dab83b65699&amp;dn=expat.txt MIT */
var searchBox = new SearchBox("searchBox", "../../search/",'.html');
/* @license-end */
</script>
<script type="text/javascript" src="../../menudata.js"></script>
<script type="text/javascript" src="../../menu.js"></script>
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:d3d9a9a6595521f9666a5e94cc830dab83b65699&amp;dn=expat.txt MIT */
$(function() {
initMenu('../../',true,false,'search.php','Search');
$(document).ready(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&amp;dn=expat.txt MIT */
$(document).ready(function(){initNavTree('da/d0d/longest__common__string_8cpp.html','../../'); initResizable(); });
/* @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="summary">
<a href="#nested-classes">Classes</a> &#124;
<a href="#func-members">Functions</a> </div>
<div class="headertitle"><div class="title">longest_common_string.cpp File Reference</div></div>
</div><!--header-->
<div class="contents">
<p>contains the definition of the function <a class="el" href="../../da/d0d/longest__common__string_8cpp.html#aa38b6b17bc5d46ed88acdd8414e18fa5" title="for std::vector">longest_common_string_length</a>
<a href="#details">More...</a></p>
<div class="textblock"><code>#include &lt;cassert&gt;</code><br />
<code>#include &lt;iostream&gt;</code><br />
<code>#include &lt;string&gt;</code><br />
<code>#include &lt;utility&gt;</code><br />
<code>#include &lt;vector&gt;</code><br />
</div><div class="textblock"><div class="dynheader">
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">
<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 &#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="../../da/d86/struct_test_case.html">TestCase</a></td></tr>
<tr class="memdesc:"><td class="mdescLeft">&#160;</td><td class="mdescRight">represents single example inputs and expected output of the function <a class="el" href="../../da/d0d/longest__common__string_8cpp.html#aa38b6b17bc5d46ed88acdd8414e18fa5" title="for std::vector">longest_common_string_length</a> <a href="../../da/d86/struct_test_case.html#details">More...</a><br /></td></tr>
<tr class="separator:"><td class="memSeparator" colspan="2">&#160;</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"><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>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="../../da/d0d/longest__common__string_8cpp.html#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> &amp;string_a, const <a class="elRef" target="_blank" href="http://en.cppreference.com/w/cpp/string/basic_string.html">std::string</a> &amp;string_b)</td></tr>
<tr class="memdesc:aa38b6b17bc5d46ed88acdd8414e18fa5"><td class="mdescLeft">&#160;</td><td class="mdescRight">for <a class="elRef" target="_blank" href="http://en.cppreference.com/w/cpp/container/vector.html">std::vector</a> <br /></td></tr>
<tr class="separator:aa38b6b17bc5d46ed88acdd8414e18fa5"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem: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>&lt; <a class="el" href="../../da/d86/struct_test_case.html">TestCase</a> &gt;&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="../../da/d0d/longest__common__string_8cpp.html#a967854a526bc15403d783a033155fc5c">get_test_cases</a> ()</td></tr>
<tr class="separator:a967854a526bc15403d783a033155fc5c"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a9b229daad982a186a4d8d90aa8f38561"><td class="memTemplParams" colspan="2">template&lt;typename <a class="el" href="../../d5/d58/class_test_cases.html">TestCases</a> &gt; </td></tr>
<tr class="memitem:a9b229daad982a186a4d8d90aa8f38561"><td class="memTemplItemLeft" align="right" valign="top">static void&#160;</td><td class="memTemplItemRight" valign="bottom"><a class="el" href="../../da/d0d/longest__common__string_8cpp.html#a9b229daad982a186a4d8d90aa8f38561">test_longest_common_string_length</a> (const <a class="el" href="../../d5/d58/class_test_cases.html">TestCases</a> &amp;test_cases)</td></tr>
<tr class="memdesc:a9b229daad982a186a4d8d90aa8f38561"><td class="mdescLeft">&#160;</td><td class="mdescRight">checks the function <a class="el" href="../../da/d0d/longest__common__string_8cpp.html#aa38b6b17bc5d46ed88acdd8414e18fa5" title="for std::vector">longest_common_string_length</a> agains example data <br /></td></tr>
<tr class="separator:a9b229daad982a186a4d8d90aa8f38561"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ad1e613c1b85cc04ed931b6c745fec155"><td class="memTemplParams" colspan="2">template&lt;typename <a class="el" href="../../d5/d58/class_test_cases.html">TestCases</a> &gt; </td></tr>
<tr class="memitem:ad1e613c1b85cc04ed931b6c745fec155"><td class="memTemplItemLeft" align="right" valign="top">static void&#160;</td><td class="memTemplItemRight" valign="bottom"><a class="el" href="../../da/d0d/longest__common__string_8cpp.html#ad1e613c1b85cc04ed931b6c745fec155">test_longest_common_string_length_is_symmetric</a> (const <a class="el" href="../../d5/d58/class_test_cases.html">TestCases</a> &amp;test_cases)</td></tr>
<tr class="memdesc:ad1e613c1b85cc04ed931b6c745fec155"><td class="mdescLeft">&#160;</td><td class="mdescRight">checks if the function <a class="el" href="../../da/d0d/longest__common__string_8cpp.html#aa38b6b17bc5d46ed88acdd8414e18fa5" title="for std::vector">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">&#160;</td></tr>
<tr class="memitem: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>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="../../da/d0d/longest__common__string_8cpp.html#acb03dbbcee6d607db471021168be8541">reverse_str</a> (const <a class="elRef" target="_blank" href="http://en.cppreference.com/w/cpp/string/basic_string.html">std::string</a> &amp;in_str)</td></tr>
<tr class="memdesc:acb03dbbcee6d607db471021168be8541"><td class="mdescLeft">&#160;</td><td class="mdescRight">reverses a given string <br /></td></tr>
<tr class="separator:acb03dbbcee6d607db471021168be8541"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a23ab67b0d9600697695fc8679462d8fe"><td class="memTemplParams" colspan="2">template&lt;typename <a class="el" href="../../d5/d58/class_test_cases.html">TestCases</a> &gt; </td></tr>
<tr class="memitem:a23ab67b0d9600697695fc8679462d8fe"><td class="memTemplItemLeft" align="right" valign="top">static void&#160;</td><td class="memTemplItemRight" valign="bottom"><a class="el" href="../../da/d0d/longest__common__string_8cpp.html#a23ab67b0d9600697695fc8679462d8fe">test_longest_common_string_length_for_reversed_inputs</a> (const <a class="el" href="../../d5/d58/class_test_cases.html">TestCases</a> &amp;test_cases)</td></tr>
<tr class="memdesc:a23ab67b0d9600697695fc8679462d8fe"><td class="mdescLeft">&#160;</td><td class="mdescRight">checks if the function <a class="el" href="../../da/d0d/longest__common__string_8cpp.html#aa38b6b17bc5d46ed88acdd8414e18fa5" title="for std::vector">longest_common_string_length</a> returns the same result when its inputs are reversed <br /></td></tr>
<tr class="separator:a23ab67b0d9600697695fc8679462d8fe"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a483bb8ccf42aaf7375a83e91490eda1e"><td class="memItemLeft" align="right" valign="top">static void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="../../da/d0d/longest__common__string_8cpp.html#a483bb8ccf42aaf7375a83e91490eda1e">tests</a> ()</td></tr>
<tr class="memdesc:a483bb8ccf42aaf7375a83e91490eda1e"><td class="mdescLeft">&#160;</td><td class="mdescRight">runs all tests for <a class="el" href="../../da/d0d/longest__common__string_8cpp.html#aa38b6b17bc5d46ed88acdd8414e18fa5" title="for std::vector">longest_common_string_length</a> funcion <br /></td></tr>
<tr class="separator:a483bb8ccf42aaf7375a83e91490eda1e"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ae66f6b31b5ad750f1fe042a706a4e3d4"><td class="memItemLeft" align="right" valign="top">int&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="../../da/d0d/longest__common__string_8cpp.html#ae66f6b31b5ad750f1fe042a706a4e3d4">main</a> ()</td></tr>
<tr class="memdesc:ae66f6b31b5ad750f1fe042a706a4e3d4"><td class="mdescLeft">&#160;</td><td class="mdescRight">Main function. <br /></td></tr>
<tr class="separator:ae66f6b31b5ad750f1fe042a706a4e3d4"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table>
<a name="details" id="details"></a><h2 class="groupheader">Detailed Description</h2>
<div class="textblock"><p>contains the definition of the function <a class="el" href="../../da/d0d/longest__common__string_8cpp.html#aa38b6b17bc5d46ed88acdd8414e18fa5" title="for std::vector">longest_common_string_length</a> </p>
<p>the function <a class="el" href="../../da/d0d/longest__common__string_8cpp.html#aa38b6b17bc5d46ed88acdd8414e18fa5" title="for std::vector">longest_common_string_length</a> computes the length of the longest common string which can be created of two input strings by removing characters from them</p>
<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>
</div><h2 class="groupheader">Function Documentation</h2>
<a id="a967854a526bc15403d783a033155fc5c" name="a967854a526bc15403d783a033155fc5c"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a967854a526bc15403d783a033155fc5c">&#9670;&#160;</a></span>get_test_cases()</h2>
<div class="memitem">
<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>&lt; <a class="el" href="../../da/d86/struct_test_case.html">TestCase</a> &gt; get_test_cases </td>
<td>(</td>
<td class="paramname"></td><td>)</td>
<td></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="../../da/d0d/longest__common__string_8cpp.html#aa38b6b17bc5d46ed88acdd8414e18fa5" title="for std::vector">longest_common_string_length</a> </dd></dl>
<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">&quot;&quot;</span>, <span class="stringliteral">&quot;&quot;</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">&quot;ab&quot;</span>, <span class="stringliteral">&quot;ab&quot;</span>, 2),</div>
<div class="line"><span class="lineno"> 72</span> <a class="code hl_struct" href="../../da/d86/struct_test_case.html">TestCase</a>(<span class="stringliteral">&quot;ab&quot;</span>, <span class="stringliteral">&quot;ba&quot;</span>, 1),</div>
<div class="line"><span class="lineno"> 73</span> <a class="code hl_struct" href="../../da/d86/struct_test_case.html">TestCase</a>(<span class="stringliteral">&quot;&quot;</span>, <span class="stringliteral">&quot;xyz&quot;</span>, 0),</div>
<div class="line"><span class="lineno"> 74</span> <a class="code hl_struct" href="../../da/d86/struct_test_case.html">TestCase</a>(<span class="stringliteral">&quot;abcde&quot;</span>, <span class="stringliteral">&quot;ace&quot;</span>, 3),</div>
<div class="line"><span class="lineno"> 75</span> <a class="code hl_struct" href="../../da/d86/struct_test_case.html">TestCase</a>(<span class="stringliteral">&quot;BADANA&quot;</span>, <span class="stringliteral">&quot;ANADA&quot;</span>, 3),</div>
<div class="line"><span class="lineno"> 76</span> <a class="code hl_struct" href="../../da/d86/struct_test_case.html">TestCase</a>(<span class="stringliteral">&quot;BADANA&quot;</span>, <span class="stringliteral">&quot;CANADAS&quot;</span>, 3),</div>
<div class="line"><span class="lineno"> 77</span> <a class="code hl_struct" href="../../da/d86/struct_test_case.html">TestCase</a>(<span class="stringliteral">&quot;a1a234a5aaaa6&quot;</span>, <span class="stringliteral">&quot;A1AAAA234AAA56AAAAA&quot;</span>, 6),</div>
<div class="line"><span class="lineno"> 78</span> <a class="code hl_struct" href="../../da/d86/struct_test_case.html">TestCase</a>(<span class="stringliteral">&quot;123x&quot;</span>, <span class="stringliteral">&quot;123&quot;</span>, 3),</div>
<div class="line"><span class="lineno"> 79</span> <a class="code hl_struct" href="../../da/d86/struct_test_case.html">TestCase</a>(<span class="stringliteral">&quot;12x3x&quot;</span>, <span class="stringliteral">&quot;123&quot;</span>, 3),</div>
<div class="line"><span class="lineno"> 80</span> <a class="code hl_struct" href="../../da/d86/struct_test_case.html">TestCase</a>(<span class="stringliteral">&quot;1x2x3x&quot;</span>, <span class="stringliteral">&quot;123&quot;</span>, 3),</div>
<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">&quot;x1x2x3x&quot;</span>, <span class="stringliteral">&quot;123&quot;</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">&quot;x12x3x&quot;</span>, <span class="stringliteral">&quot;123&quot;</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><!-- fragment -->
</div>
</div>
<a id="aa38b6b17bc5d46ed88acdd8414e18fa5" name="aa38b6b17bc5d46ed88acdd8414e18fa5"></a>
<h2 class="memtitle"><span class="permalink"><a href="#aa38b6b17bc5d46ed88acdd8414e18fa5">&#9670;&#160;</a></span>longest_common_string_length()</h2>
<div class="memitem">
<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>(</td>
<td class="paramtype">const <a class="elRef" target="_blank" href="http://en.cppreference.com/w/cpp/string/basic_string.html">std::string</a> &amp;&#160;</td>
<td class="paramname"><em>string_a</em>, </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> &amp;&#160;</td>
<td class="paramname"><em>string_b</em>&#160;</td>
</tr>
<tr>
<td></td>
<td>)</td>
<td></td><td></td>
</tr>
</table>
</div><div class="memdoc">
<p>for <a class="elRef" target="_blank" href="http://en.cppreference.com/w/cpp/container/vector.html">std::vector</a> </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></p>
<p>computes the length of the longest common string created from input strings</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>
<tr><td class="paramname">string_b</td><td>second input string </td></tr>
</table>
</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>
<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&lt;std::vector&lt;std::size_t&gt;</a>&gt; 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&lt;std::size_t&gt;</a>(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&lt;</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">&gt;</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"> 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"> 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>
<div class="line"><span class="lineno"> 45</span> }</div>
<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>
</div>
<a id="ae66f6b31b5ad750f1fe042a706a4e3d4" name="ae66f6b31b5ad750f1fe042a706a4e3d4"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ae66f6b31b5ad750f1fe042a706a4e3d4">&#9670;&#160;</a></span>main()</h2>
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">int main </td>
<td>(</td>
<td class="paramtype">void&#160;</td>
<td class="paramname"></td><td>)</td>
<td></td>
</tr>
</table>
</div><div class="memdoc">
<p>Main function. </p>
<dl class="section return"><dt>Returns</dt><dd>0 on exit </dd></dl>
<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="../../da/d0d/longest__common__string_8cpp.html#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="../../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> 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>
</div>
<a id="acb03dbbcee6d607db471021168be8541" name="acb03dbbcee6d607db471021168be8541"></a>
<h2 class="memtitle"><span class="permalink"><a href="#acb03dbbcee6d607db471021168be8541">&#9670;&#160;</a></span>reverse_str()</h2>
<div class="memitem">
<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>(</td>
<td class="paramtype">const <a class="elRef" target="_blank" href="http://en.cppreference.com/w/cpp/string/basic_string.html">std::string</a> &amp;&#160;</td>
<td class="paramname"><em>in_str</em></td><td>)</td>
<td></td>
</tr>
</table>
</div><div class="memdoc">
<p>reverses a given string </p>
<dl class="params"><dt>Parameters</dt><dd>
<table class="params">
<tr><td class="paramname">in_str</td><td>input string </td></tr>
</table>
</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>
</div>
</div>
<a id="a9b229daad982a186a4d8d90aa8f38561" name="a9b229daad982a186a4d8d90aa8f38561"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a9b229daad982a186a4d8d90aa8f38561">&#9670;&#160;</a></span>test_longest_common_string_length()</h2>
<div class="memitem">
<div class="memproto">
<div class="memtemplate">
template&lt;typename <a class="el" href="../../d5/d58/class_test_cases.html">TestCases</a> &gt; </div>
<table class="mlabels">
<tr>
<td class="mlabels-left">
<table class="memname">
<tr>
<td class="memname">static void test_longest_common_string_length </td>
<td>(</td>
<td class="paramtype">const <a class="el" href="../../d5/d58/class_test_cases.html">TestCases</a> &amp;&#160;</td>
<td class="paramname"><em>test_cases</em></td><td>)</td>
<td></td>
</tr>
</table>
</td>
<td class="mlabels-right">
<span class="mlabels"><span class="mlabel">static</span></span> </td>
</tr>
</table>
</div><div class="memdoc">
<p>checks the function <a class="el" href="../../da/d0d/longest__common__string_8cpp.html#aa38b6b17bc5d46ed88acdd8414e18fa5" title="for std::vector">longest_common_string_length</a> agains example data </p>
<dl class="params"><dt>Parameters</dt><dd>
<table class="params">
<tr><td class="paramname">test_cases</td><td>list of test cases </td></tr>
</table>
</dd>
</dl>
<dl class="tparams"><dt>Template Parameters</dt><dd>
<table class="tparams">
<tr><td class="paramname">type</td><td>representing a list of test cases </td></tr>
</table>
</dd>
</dl>
<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>&amp; cur_tc : test_cases) {</div>
<div class="line"><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"><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="../../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 &amp;string_a, const std::string &amp;string_b)</div><div class="ttdoc">for std::vector</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>
</div>
<a id="a23ab67b0d9600697695fc8679462d8fe" name="a23ab67b0d9600697695fc8679462d8fe"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a23ab67b0d9600697695fc8679462d8fe">&#9670;&#160;</a></span>test_longest_common_string_length_for_reversed_inputs()</h2>
<div class="memitem">
<div class="memproto">
<div class="memtemplate">
template&lt;typename <a class="el" href="../../d5/d58/class_test_cases.html">TestCases</a> &gt; </div>
<table class="mlabels">
<tr>
<td class="mlabels-left">
<table class="memname">
<tr>
<td class="memname">static void test_longest_common_string_length_for_reversed_inputs </td>
<td>(</td>
<td class="paramtype">const <a class="el" href="../../d5/d58/class_test_cases.html">TestCases</a> &amp;&#160;</td>
<td class="paramname"><em>test_cases</em></td><td>)</td>
<td></td>
</tr>
</table>
</td>
<td class="mlabels-right">
<span class="mlabels"><span class="mlabel">static</span></span> </td>
</tr>
</table>
</div><div class="memdoc">
<p>checks if the function <a class="el" href="../../da/d0d/longest__common__string_8cpp.html#aa38b6b17bc5d46ed88acdd8414e18fa5" title="for std::vector">longest_common_string_length</a> returns the same result when its inputs are reversed </p>
<dl class="params"><dt>Parameters</dt><dd>
<table class="params">
<tr><td class="paramname">test_cases</td><td>list of test cases </td></tr>
</table>
</dd>
</dl>
<dl class="tparams"><dt>Template Parameters</dt><dd>
<table class="tparams">
<tr><td class="paramname">type</td><td>representing a list of test cases </td></tr>
</table>
</dd>
</dl>
<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>&amp; cur_tc : test_cases) {</div>
<div class="line"><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"><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"><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="../../da/d0d/longest__common__string_8cpp.html#acb03dbbcee6d607db471021168be8541">reverse_str</a></div><div class="ttdeci">std::string reverse_str(const std::string &amp;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>
</div>
<a id="ad1e613c1b85cc04ed931b6c745fec155" name="ad1e613c1b85cc04ed931b6c745fec155"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ad1e613c1b85cc04ed931b6c745fec155">&#9670;&#160;</a></span>test_longest_common_string_length_is_symmetric()</h2>
<div class="memitem">
<div class="memproto">
<div class="memtemplate">
template&lt;typename <a class="el" href="../../d5/d58/class_test_cases.html">TestCases</a> &gt; </div>
<table class="mlabels">
<tr>
<td class="mlabels-left">
<table class="memname">
<tr>
<td class="memname">static void test_longest_common_string_length_is_symmetric </td>
<td>(</td>
<td class="paramtype">const <a class="el" href="../../d5/d58/class_test_cases.html">TestCases</a> &amp;&#160;</td>
<td class="paramname"><em>test_cases</em></td><td>)</td>
<td></td>
</tr>
</table>
</td>
<td class="mlabels-right">
<span class="mlabels"><span class="mlabel">static</span></span> </td>
</tr>
</table>
</div><div class="memdoc">
<p>checks if the function <a class="el" href="../../da/d0d/longest__common__string_8cpp.html#aa38b6b17bc5d46ed88acdd8414e18fa5" title="for std::vector">longest_common_string_length</a> returns the same result when its argument are flipped </p>
<dl class="params"><dt>Parameters</dt><dd>
<table class="params">
<tr><td class="paramname">test_cases</td><td>list of test cases </td></tr>
</table>
</dd>
</dl>
<dl class="tparams"><dt>Template Parameters</dt><dd>
<table class="tparams">
<tr><td class="paramname">type</td><td>representing a list of test cases </td></tr>
</table>
</dd>
</dl>
<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>&amp; cur_tc : test_cases) {</div>
<div class="line"><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"><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>
</div>
<a id="a483bb8ccf42aaf7375a83e91490eda1e" name="a483bb8ccf42aaf7375a83e91490eda1e"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a483bb8ccf42aaf7375a83e91490eda1e">&#9670;&#160;</a></span>tests()</h2>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
<tr>
<td class="mlabels-left">
<table class="memname">
<tr>
<td class="memname">static void tests </td>
<td>(</td>
<td class="paramname"></td><td>)</td>
<td></td>
</tr>
</table>
</td>
<td class="mlabels-right">
<span class="mlabels"><span class="mlabel">static</span></span> </td>
</tr>
</table>
</div><div class="memdoc">
<p>runs all tests for <a class="el" href="../../da/d0d/longest__common__string_8cpp.html#aa38b6b17bc5d46ed88acdd8414e18fa5" title="for std::vector">longest_common_string_length</a> funcion </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="../../da/d0d/longest__common__string_8cpp.html#a967854a526bc15403d783a033155fc5c">get_test_cases</a>();</div>
<div class="line"><span class="lineno"> 144</span> assert(test_cases.size() &gt; 0);</div>
<div class="line"><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"><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"><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"><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> &lt;&lt; <span class="stringliteral">&quot;All tests have successfully passed!\n&quot;</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="../../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 &amp;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="../../da/d0d/longest__common__string_8cpp.html#a967854a526bc15403d783a033155fc5c">get_test_cases</a></div><div class="ttdeci">std::vector&lt; TestCase &gt; 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="../../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 &amp;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="../../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 &amp;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>
</div>
</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.9.7 </li>
</ul>
</div>
</body>
</html>

View File

@@ -0,0 +1,12 @@
var longest__common__string_8cpp =
[
[ "TestCase", "da/d86/struct_test_case.html", null ],
[ "get_test_cases", "da/d0d/longest__common__string_8cpp.html#a967854a526bc15403d783a033155fc5c", null ],
[ "longest_common_string_length", "da/d0d/longest__common__string_8cpp.html#aa38b6b17bc5d46ed88acdd8414e18fa5", null ],
[ "main", "da/d0d/longest__common__string_8cpp.html#ae66f6b31b5ad750f1fe042a706a4e3d4", null ],
[ "reverse_str", "da/d0d/longest__common__string_8cpp.html#acb03dbbcee6d607db471021168be8541", null ],
[ "test_longest_common_string_length", "da/d0d/longest__common__string_8cpp.html#a9b229daad982a186a4d8d90aa8f38561", null ],
[ "test_longest_common_string_length_for_reversed_inputs", "da/d0d/longest__common__string_8cpp.html#a23ab67b0d9600697695fc8679462d8fe", null ],
[ "test_longest_common_string_length_is_symmetric", "da/d0d/longest__common__string_8cpp.html#ad1e613c1b85cc04ed931b6c745fec155", null ],
[ "tests", "da/d0d/longest__common__string_8cpp.html#a483bb8ccf42aaf7375a83e91490eda1e", null ]
];

View File

@@ -0,0 +1,15 @@
<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="for std::vector" alt="" coords="235,46,394,87"/>
<area shape="poly" id="edge1_Node000001_Node000002" title=" " alt="" coords="187,81,219,76,220,81,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,114,257,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,452,28,453,33,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,427,119,427,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,435,151,433,156,357,137"/>
</map>

View File

@@ -0,0 +1 @@
286ea9d93a7520e75925ead743933bdb

View File

@@ -0,0 +1,157 @@
<?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 8.0.5 (20230430.1635)
-->
<!-- 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" 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>
<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="for std::vector">
<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&#45;&gt;Node2 -->
<g id="edge1_Node000001_Node000002" class="edge">
<title>Node1&#45;&gt;Node2</title>
<g id="a_edge1_Node000001_Node000002"><a xlink:title=" ">
<path fill="none" stroke="#63b8ff" d="M136.19,-74.76C144.34,-75.87 152.68,-77.01 160.86,-78.12"/>
<polygon fill="#63b8ff" stroke="#63b8ff" points="160.13,-81.69 170.51,-79.57 161.07,-74.75 160.13,-81.69"/>
</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&#45;&gt;Node5 -->
<g id="edge4_Node000001_Node000005" class="edge">
<title>Node1&#45;&gt;Node5</title>
<g id="a_edge4_Node000001_Node000005"><a xlink:title=" ">
<path fill="none" stroke="#63b8ff" d="M136.19,-56.9C153.96,-54.59 172.64,-52.17 188.66,-50.09"/>
<polygon fill="#63b8ff" stroke="#63b8ff" points="188.82,-53.47 198.28,-48.71 187.92,-46.53 188.82,-53.47"/>
</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&#45;&gt;Node3 -->
<g id="edge2_Node000002_Node000003" class="edge">
<title>Node2&#45;&gt;Node3</title>
<g id="a_edge2_Node000002_Node000003"><a xlink:title=" ">
<path fill="none" stroke="#63b8ff" d="M291.96,-102.89C306.71,-106.7 322.11,-110.66 335.43,-114.1"/>
<polygon fill="#63b8ff" stroke="#63b8ff" points="334.52,-117.74 345.08,-116.85 336.27,-110.96 334.52,-117.74"/>
</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&#45;&gt;Node4 -->
<g id="edge3_Node000002_Node000004" class="edge">
<title>Node2&#45;&gt;Node4</title>
<g id="a_edge3_Node000002_Node000004"><a xlink:title=" ">
<path fill="none" stroke="#63b8ff" d="M291.96,-87.2C301.37,-87.13 311.04,-87.06 320.26,-87"/>
<polygon fill="#63b8ff" stroke="#63b8ff" points="320.28,-90.49 330.25,-86.92 320.23,-83.49 320.28,-90.49"/>
</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&#45;&gt;Node6 -->
<g id="edge5_Node000005_Node000006" class="edge">
<title>Node5&#45;&gt;Node6</title>
<g id="a_edge5_Node000005_Node000006"><a xlink:title=" ">
<path fill="none" stroke="#63b8ff" d="M264.43,-45.08C279.76,-45.3 298.62,-45.57 316.26,-45.82"/>
<polygon fill="#63b8ff" stroke="#63b8ff" points="316,-49.33 326.05,-45.98 316.1,-42.33 316,-49.33"/>
</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&#45;&gt;Node7 -->
<g id="edge6_Node000005_Node000007" class="edge">
<title>Node5&#45;&gt;Node7</title>
<g id="a_edge6_Node000005_Node000007"><a xlink:title=" ">
<path fill="none" stroke="#63b8ff" d="M264.43,-36.68C281.26,-32.47 302.35,-27.18 321.41,-22.4"/>
<polygon fill="#63b8ff" stroke="#63b8ff" points="322.2,-25.56 331.05,-19.73 320.5,-18.77 322.2,-25.56"/>
</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>

After

Width:  |  Height:  |  Size: 7.2 KiB

View File

@@ -0,0 +1,132 @@
<?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 8.0.5 (20230430.1635)
-->
<!-- 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="for std::vector">
<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&#45;&gt;Node2 -->
<g id="edge1_Node000001_Node000002" class="edge">
<title>Node1&#45;&gt;Node2</title>
<g id="a_edge1_Node000001_Node000002"><a xlink:title=" ">
<path fill="none" stroke="#63b8ff" d="M136.19,-74.76C144.34,-75.87 152.68,-77.01 160.86,-78.12"/>
<polygon fill="#63b8ff" stroke="#63b8ff" points="160.13,-81.69 170.51,-79.57 161.07,-74.75 160.13,-81.69"/>
</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&#45;&gt;Node5 -->
<g id="edge4_Node000001_Node000005" class="edge">
<title>Node1&#45;&gt;Node5</title>
<g id="a_edge4_Node000001_Node000005"><a xlink:title=" ">
<path fill="none" stroke="#63b8ff" d="M136.19,-56.9C153.96,-54.59 172.64,-52.17 188.66,-50.09"/>
<polygon fill="#63b8ff" stroke="#63b8ff" points="188.82,-53.47 198.28,-48.71 187.92,-46.53 188.82,-53.47"/>
</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&#45;&gt;Node3 -->
<g id="edge2_Node000002_Node000003" class="edge">
<title>Node2&#45;&gt;Node3</title>
<g id="a_edge2_Node000002_Node000003"><a xlink:title=" ">
<path fill="none" stroke="#63b8ff" d="M291.96,-102.89C306.71,-106.7 322.11,-110.66 335.43,-114.1"/>
<polygon fill="#63b8ff" stroke="#63b8ff" points="334.52,-117.74 345.08,-116.85 336.27,-110.96 334.52,-117.74"/>
</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&#45;&gt;Node4 -->
<g id="edge3_Node000002_Node000004" class="edge">
<title>Node2&#45;&gt;Node4</title>
<g id="a_edge3_Node000002_Node000004"><a xlink:title=" ">
<path fill="none" stroke="#63b8ff" d="M291.96,-87.2C301.37,-87.13 311.04,-87.06 320.26,-87"/>
<polygon fill="#63b8ff" stroke="#63b8ff" points="320.28,-90.49 330.25,-86.92 320.23,-83.49 320.28,-90.49"/>
</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&#45;&gt;Node6 -->
<g id="edge5_Node000005_Node000006" class="edge">
<title>Node5&#45;&gt;Node6</title>
<g id="a_edge5_Node000005_Node000006"><a xlink:title=" ">
<path fill="none" stroke="#63b8ff" d="M264.43,-45.08C279.76,-45.3 298.62,-45.57 316.26,-45.82"/>
<polygon fill="#63b8ff" stroke="#63b8ff" points="316,-49.33 326.05,-45.98 316.1,-42.33 316,-49.33"/>
</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&#45;&gt;Node7 -->
<g id="edge6_Node000005_Node000007" class="edge">
<title>Node5&#45;&gt;Node7</title>
<g id="a_edge6_Node000005_Node000007"><a xlink:title=" ">
<path fill="none" stroke="#63b8ff" d="M264.43,-36.68C281.26,-32.47 302.35,-27.18 321.41,-22.4"/>
<polygon fill="#63b8ff" stroke="#63b8ff" points="322.2,-25.56 331.05,-19.73 320.5,-18.77 322.2,-25.56"/>
</a>
</g>
</g>
</g>
</svg>

After

Width:  |  Height:  |  Size: 6.4 KiB

View File

@@ -0,0 +1,25 @@
<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,253,31"/>
<area shape="poly" id="edge1_Node000001_Node000002" title=" " alt="" coords="41,94,67,67,102,41,127,30,129,35,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,108,91,109,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,121,291,161"/>
<area shape="poly" id="edge11_Node000001_Node000011" title=" " alt="" coords="57,111,90,117,89,123,56,116"/>
<area shape="rect" id="Node000004" href="$da/d0d/longest__common__string_8cpp.html#aa38b6b17bc5d46ed88acdd8414e18fa5" title="for std::vector" alt="" coords="339,121,498,161"/>
<area shape="poly" id="edge3_Node000003_Node000004" title=" " alt="" coords="269,94,334,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,558,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,537,142,537,147,499,146"/>
<area shape="poly" id="edge7_Node000007_Node000004" title=" " alt="" coords="284,182,339,164,341,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,538,237,536,242,462,225"/>
<area shape="poly" id="edge12_Node000011_Node000004" title=" " alt="" coords="291,138,324,138,324,144,291,144"/>
</map>

View File

@@ -0,0 +1 @@
46850fece54c89f8e6dc9e73df80b4f4

View File

@@ -0,0 +1,306 @@
<?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 8.0.5 (20230430.1635)
-->
<!-- 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&#45;&gt;Node2 -->
<g id="edge1_Node000001_Node000002" class="edge">
<title>Node1&#45;&gt;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.48,-171.78 85.78,-174.44 92.16,-176.67"/>
<polygon fill="#63b8ff" stroke="#63b8ff" points="90.61,-180.17 101.2,-179.85 92.72,-173.5 90.61,-180.17"/>
</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&#45;&gt;Node3 -->
<g id="edge2_Node000001_Node000003" class="edge">
<title>Node1&#45;&gt;Node3</title>
<g id="a_edge2_Node000001_Node000003"><a xlink:title=" ">
<path fill="none" stroke="#63b8ff" d="M38.04,-123.31C48.65,-125.47 62.75,-128.33 77.16,-131.26"/>
<polygon fill="#63b8ff" stroke="#63b8ff" points="76.17,-134.83 86.66,-133.39 77.56,-127.97 76.17,-134.83"/>
</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&#45;&gt;Node7 -->
<g id="edge6_Node000001_Node000007" class="edge">
<title>Node1&#45;&gt;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.72,-70.36 77.76,-69.13 79.84,-67.93"/>
<polygon fill="#63b8ff" stroke="#63b8ff" points="81.05,-70.72 88.18,-62.89 77.72,-64.56 81.05,-70.72"/>
</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&#45;&gt;Node11 -->
<g id="edge11_Node000001_Node000011" class="edge">
<title>Node1&#45;&gt;Node11</title>
<g id="a_edge11_Node000001_Node000011"><a xlink:title=" ">
<path fill="none" stroke="#63b8ff" d="M38.04,-116.08C45.09,-114.71 53.68,-113.04 62.88,-111.24"/>
<polygon fill="#63b8ff" stroke="#63b8ff" points="63.33,-114.52 72.48,-109.18 61.99,-107.65 63.33,-114.52"/>
</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="for std::vector">
<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&#45;&gt;Node4 -->
<g id="edge3_Node000003_Node000004" class="edge">
<title>Node3&#45;&gt;Node4</title>
<g id="a_edge3_Node000003_Node000004"><a xlink:title=" ">
<path fill="none" stroke="#63b8ff" d="M197.34,-128.99C212.8,-124.37 229.88,-119.26 245.94,-114.47"/>
<polygon fill="#63b8ff" stroke="#63b8ff" points="246.73,-117.58 255.31,-111.37 244.73,-110.88 246.73,-117.58"/>
</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&#45;&gt;Node5 -->
<g id="edge4_Node000004_Node000005" class="edge">
<title>Node4&#45;&gt;Node5</title>
<g id="a_edge4_Node000004_Node000005"><a xlink:title=" ">
<path fill="none" stroke="#63b8ff" d="M370.21,-109.62C384.96,-113.11 400.36,-116.74 413.68,-119.89"/>
<polygon fill="#63b8ff" stroke="#63b8ff" points="412.79,-123.52 423.33,-122.41 414.4,-116.7 412.79,-123.52"/>
</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&#45;&gt;Node6 -->
<g id="edge5_Node000004_Node000006" class="edge">
<title>Node4&#45;&gt;Node6</title>
<g id="a_edge5_Node000004_Node000006"><a xlink:title=" ">
<path fill="none" stroke="#63b8ff" d="M370.21,-93.93C379.62,-93.66 389.29,-93.38 398.51,-93.12"/>
<polygon fill="#63b8ff" stroke="#63b8ff" points="398.61,-96.59 408.5,-92.8 398.41,-89.59 398.61,-96.59"/>
</a>
</g>
</g>
<!-- Node7&#45;&gt;Node4 -->
<g id="edge7_Node000007_Node000004" class="edge">
<title>Node7&#45;&gt;Node4</title>
<g id="a_edge7_Node000007_Node000004"><a xlink:title=" ">
<path fill="none" stroke="#63b8ff" d="M209.82,-62.97C223.38,-67.43 237.6,-72.12 250.9,-76.5"/>
<polygon fill="#63b8ff" stroke="#63b8ff" points="249.75,-80.13 260.34,-79.93 251.94,-73.48 249.75,-80.13"/>
</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&#45;&gt;Node8 -->
<g id="edge8_Node000007_Node000008" class="edge">
<title>Node7&#45;&gt;Node8</title>
<g id="a_edge8_Node000007_Node000008"><a xlink:title=" ">
<path fill="none" stroke="#63b8ff" d="M212.18,-41.62C230.43,-41.62 249.7,-41.62 266.2,-41.62"/>
<polygon fill="#63b8ff" stroke="#63b8ff" points="266.14,-45.13 276.14,-41.62 266.14,-38.13 266.14,-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&#45;&gt;Node9 -->
<g id="edge9_Node000008_Node000009" class="edge">
<title>Node8&#45;&gt;Node9</title>
<g id="a_edge9_Node000008_Node000009"><a xlink:title=" ">
<path fill="none" stroke="#63b8ff" d="M342.68,-42.76C358.01,-43.31 376.87,-43.98 394.51,-44.62"/>
<polygon fill="#63b8ff" stroke="#63b8ff" points="394.18,-48.14 404.3,-45 394.43,-41.15 394.18,-48.14"/>
</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&#45;&gt;Node10 -->
<g id="edge10_Node000008_Node000010" class="edge">
<title>Node8&#45;&gt;Node10</title>
<g id="a_edge10_Node000008_Node000010"><a xlink:title=" ">
<path fill="none" stroke="#63b8ff" d="M342.68,-34.36C359.24,-30.57 379.92,-25.83 398.74,-21.52"/>
<polygon fill="#63b8ff" stroke="#63b8ff" points="399.29,-24.75 408.26,-19.11 397.73,-17.93 399.29,-24.75"/>
</a>
</g>
</g>
<!-- Node11&#45;&gt;Node4 -->
<g id="edge12_Node000011_Node000004" class="edge">
<title>Node11&#45;&gt;Node4</title>
<g id="a_edge12_Node000011_Node000004"><a xlink:title=" ">
<path fill="none" stroke="#63b8ff" d="M214.55,-95.62C222.65,-95.62 230.92,-95.62 239.03,-95.62"/>
<polygon fill="#63b8ff" stroke="#63b8ff" points="238.96,-99.13 248.96,-95.62 238.96,-92.13 238.96,-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>

After

Width:  |  Height:  |  Size: 15 KiB

View File

@@ -0,0 +1,224 @@
<?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 8.0.5 (20230430.1635)
-->
<!-- 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&#45;&gt;Node2 -->
<g id="edge1_Node000001_Node000002" class="edge">
<title>Node1&#45;&gt;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.48,-171.78 85.78,-174.44 92.16,-176.67"/>
<polygon fill="#63b8ff" stroke="#63b8ff" points="90.61,-180.17 101.2,-179.85 92.72,-173.5 90.61,-180.17"/>
</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&#45;&gt;Node3 -->
<g id="edge2_Node000001_Node000003" class="edge">
<title>Node1&#45;&gt;Node3</title>
<g id="a_edge2_Node000001_Node000003"><a xlink:title=" ">
<path fill="none" stroke="#63b8ff" d="M38.04,-123.31C48.65,-125.47 62.75,-128.33 77.16,-131.26"/>
<polygon fill="#63b8ff" stroke="#63b8ff" points="76.17,-134.83 86.66,-133.39 77.56,-127.97 76.17,-134.83"/>
</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&#45;&gt;Node7 -->
<g id="edge6_Node000001_Node000007" class="edge">
<title>Node1&#45;&gt;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.72,-70.36 77.76,-69.13 79.84,-67.93"/>
<polygon fill="#63b8ff" stroke="#63b8ff" points="81.05,-70.72 88.18,-62.89 77.72,-64.56 81.05,-70.72"/>
</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&#45;&gt;Node11 -->
<g id="edge11_Node000001_Node000011" class="edge">
<title>Node1&#45;&gt;Node11</title>
<g id="a_edge11_Node000001_Node000011"><a xlink:title=" ">
<path fill="none" stroke="#63b8ff" d="M38.04,-116.08C45.09,-114.71 53.68,-113.04 62.88,-111.24"/>
<polygon fill="#63b8ff" stroke="#63b8ff" points="63.33,-114.52 72.48,-109.18 61.99,-107.65 63.33,-114.52"/>
</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="for std::vector">
<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&#45;&gt;Node4 -->
<g id="edge3_Node000003_Node000004" class="edge">
<title>Node3&#45;&gt;Node4</title>
<g id="a_edge3_Node000003_Node000004"><a xlink:title=" ">
<path fill="none" stroke="#63b8ff" d="M197.34,-128.99C212.8,-124.37 229.88,-119.26 245.94,-114.47"/>
<polygon fill="#63b8ff" stroke="#63b8ff" points="246.73,-117.58 255.31,-111.37 244.73,-110.88 246.73,-117.58"/>
</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&#45;&gt;Node5 -->
<g id="edge4_Node000004_Node000005" class="edge">
<title>Node4&#45;&gt;Node5</title>
<g id="a_edge4_Node000004_Node000005"><a xlink:title=" ">
<path fill="none" stroke="#63b8ff" d="M370.21,-109.62C384.96,-113.11 400.36,-116.74 413.68,-119.89"/>
<polygon fill="#63b8ff" stroke="#63b8ff" points="412.79,-123.52 423.33,-122.41 414.4,-116.7 412.79,-123.52"/>
</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&#45;&gt;Node6 -->
<g id="edge5_Node000004_Node000006" class="edge">
<title>Node4&#45;&gt;Node6</title>
<g id="a_edge5_Node000004_Node000006"><a xlink:title=" ">
<path fill="none" stroke="#63b8ff" d="M370.21,-93.93C379.62,-93.66 389.29,-93.38 398.51,-93.12"/>
<polygon fill="#63b8ff" stroke="#63b8ff" points="398.61,-96.59 408.5,-92.8 398.41,-89.59 398.61,-96.59"/>
</a>
</g>
</g>
<!-- Node7&#45;&gt;Node4 -->
<g id="edge7_Node000007_Node000004" class="edge">
<title>Node7&#45;&gt;Node4</title>
<g id="a_edge7_Node000007_Node000004"><a xlink:title=" ">
<path fill="none" stroke="#63b8ff" d="M209.82,-62.97C223.38,-67.43 237.6,-72.12 250.9,-76.5"/>
<polygon fill="#63b8ff" stroke="#63b8ff" points="249.75,-80.13 260.34,-79.93 251.94,-73.48 249.75,-80.13"/>
</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&#45;&gt;Node8 -->
<g id="edge8_Node000007_Node000008" class="edge">
<title>Node7&#45;&gt;Node8</title>
<g id="a_edge8_Node000007_Node000008"><a xlink:title=" ">
<path fill="none" stroke="#63b8ff" d="M212.18,-41.62C230.43,-41.62 249.7,-41.62 266.2,-41.62"/>
<polygon fill="#63b8ff" stroke="#63b8ff" points="266.14,-45.13 276.14,-41.62 266.14,-38.13 266.14,-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&#45;&gt;Node9 -->
<g id="edge9_Node000008_Node000009" class="edge">
<title>Node8&#45;&gt;Node9</title>
<g id="a_edge9_Node000008_Node000009"><a xlink:title=" ">
<path fill="none" stroke="#63b8ff" d="M342.68,-42.76C358.01,-43.31 376.87,-43.98 394.51,-44.62"/>
<polygon fill="#63b8ff" stroke="#63b8ff" points="394.18,-48.14 404.3,-45 394.43,-41.15 394.18,-48.14"/>
</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&#45;&gt;Node10 -->
<g id="edge10_Node000008_Node000010" class="edge">
<title>Node8&#45;&gt;Node10</title>
<g id="a_edge10_Node000008_Node000010"><a xlink:title=" ">
<path fill="none" stroke="#63b8ff" d="M342.68,-34.36C359.24,-30.57 379.92,-25.83 398.74,-21.52"/>
<polygon fill="#63b8ff" stroke="#63b8ff" points="399.29,-24.75 408.26,-19.11 397.73,-17.93 399.29,-24.75"/>
</a>
</g>
</g>
<!-- Node11&#45;&gt;Node4 -->
<g id="edge12_Node000011_Node000004" class="edge">
<title>Node11&#45;&gt;Node4</title>
<g id="a_edge12_Node000011_Node000004"><a xlink:title=" ">
<path fill="none" stroke="#63b8ff" d="M214.55,-95.62C222.65,-95.62 230.92,-95.62 239.03,-95.62"/>
<polygon fill="#63b8ff" stroke="#63b8ff" points="238.96,-99.13 248.96,-95.62 238.96,-92.13 238.96,-99.13"/>
</a>
</g>
</g>
</g>
</svg>

After

Width:  |  Height:  |  Size: 11 KiB

View File

@@ -0,0 +1,9 @@
<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="for std::vector" alt="" coords="203,23,362,64"/>
<area shape="poly" id="edge1_Node000001_Node000002" title=" " alt="" coords="155,41,188,41,188,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,414,22,415,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,396,56,395,61,362,57"/>
</map>

View File

@@ -0,0 +1 @@
f09f0a87cf628224b4a6560d9c733be5

View File

@@ -0,0 +1,102 @@
<?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 8.0.5 (20230430.1635)
-->
<!-- 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" 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>
<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="for std::vector">
<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&#45;&gt;Node2 -->
<g id="edge1_Node000001_Node000002" class="edge">
<title>Node1&#45;&gt;Node2</title>
<g id="a_edge1_Node000001_Node000002"><a xlink:title=" ">
<path fill="none" stroke="#63b8ff" d="M112.34,-27.62C120.33,-27.62 128.64,-27.62 136.88,-27.62"/>
<polygon fill="#63b8ff" stroke="#63b8ff" points="136.62,-31.13 146.62,-27.62 136.62,-24.13 136.62,-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&#45;&gt;Node3 -->
<g id="edge2_Node000002_Node000003" class="edge">
<title>Node2&#45;&gt;Node3</title>
<g id="a_edge2_Node000002_Node000003"><a xlink:title=" ">
<path fill="none" stroke="#63b8ff" d="M267.79,-35.9C281.11,-37.77 294.89,-39.7 307.02,-41.4"/>
<polygon fill="#63b8ff" stroke="#63b8ff" points="306.25,-44.97 316.64,-42.89 307.22,-38.04 306.25,-44.97"/>
</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&#45;&gt;Node4 -->
<g id="edge3_Node000002_Node000004" class="edge">
<title>Node2&#45;&gt;Node4</title>
<g id="a_edge3_Node000002_Node000004"><a xlink:title=" ">
<path fill="none" stroke="#63b8ff" d="M267.79,-19.78C276.03,-18.69 284.44,-17.57 292.53,-16.5"/>
<polygon fill="#63b8ff" stroke="#63b8ff" points="292.86,-19.85 302.31,-15.06 291.93,-12.91 292.86,-19.85"/>
</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>

After

Width:  |  Height:  |  Size: 4.4 KiB

View File

@@ -0,0 +1,77 @@
<?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 8.0.5 (20230430.1635)
-->
<!-- 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="for std::vector">
<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&#45;&gt;Node2 -->
<g id="edge1_Node000001_Node000002" class="edge">
<title>Node1&#45;&gt;Node2</title>
<g id="a_edge1_Node000001_Node000002"><a xlink:title=" ">
<path fill="none" stroke="#63b8ff" d="M112.34,-27.62C120.33,-27.62 128.64,-27.62 136.88,-27.62"/>
<polygon fill="#63b8ff" stroke="#63b8ff" points="136.62,-31.13 146.62,-27.62 136.62,-24.13 136.62,-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&#45;&gt;Node3 -->
<g id="edge2_Node000002_Node000003" class="edge">
<title>Node2&#45;&gt;Node3</title>
<g id="a_edge2_Node000002_Node000003"><a xlink:title=" ">
<path fill="none" stroke="#63b8ff" d="M267.79,-35.9C281.11,-37.77 294.89,-39.7 307.02,-41.4"/>
<polygon fill="#63b8ff" stroke="#63b8ff" points="306.25,-44.97 316.64,-42.89 307.22,-38.04 306.25,-44.97"/>
</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&#45;&gt;Node4 -->
<g id="edge3_Node000002_Node000004" class="edge">
<title>Node2&#45;&gt;Node4</title>
<g id="a_edge3_Node000002_Node000004"><a xlink:title=" ">
<path fill="none" stroke="#63b8ff" d="M267.79,-19.78C276.03,-18.69 284.44,-17.57 292.53,-16.5"/>
<polygon fill="#63b8ff" stroke="#63b8ff" points="292.86,-19.85 302.31,-15.06 291.93,-12.91 292.86,-19.85"/>
</a>
</g>
</g>
</g>
</svg>

After

Width:  |  Height:  |  Size: 3.7 KiB

View File

@@ -0,0 +1,7 @@
<map id="longest_common_string_length" name="longest_common_string_length">
<area shape="rect" id="Node000001" title="for std::vector" 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,305,31"/>
<area shape="poly" id="edge1_Node000001_Node000002" title=" " alt="" coords="165,30,217,22,218,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,198,61,165,57"/>
</map>

View File

@@ -0,0 +1 @@
26d4238d9f904f6a87378ebb25bd747e

View File

@@ -0,0 +1,83 @@
<?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 8.0.5 (20230430.1635)
-->
<!-- 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" 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>
<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="for std::vector">
<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&#45;&gt;Node2 -->
<g id="edge1_Node000001_Node000002" class="edge">
<title>Node1&#45;&gt;Node2</title>
<g id="a_edge1_Node000001_Node000002"><a xlink:title=" ">
<path fill="none" stroke="#63b8ff" d="M119.79,-35.9C133.11,-37.77 146.89,-39.7 159.02,-41.4"/>
<polygon fill="#63b8ff" stroke="#63b8ff" points="158.25,-44.97 168.64,-42.89 159.22,-38.04 158.25,-44.97"/>
</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&#45;&gt;Node3 -->
<g id="edge2_Node000001_Node000003" class="edge">
<title>Node1&#45;&gt;Node3</title>
<g id="a_edge2_Node000001_Node000003"><a xlink:title=" ">
<path fill="none" stroke="#63b8ff" d="M119.79,-19.78C128.03,-18.69 136.44,-17.57 144.53,-16.5"/>
<polygon fill="#63b8ff" stroke="#63b8ff" points="144.86,-19.85 154.31,-15.06 143.93,-12.91 144.86,-19.85"/>
</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>

After

Width:  |  Height:  |  Size: 3.4 KiB

View File

@@ -0,0 +1,58 @@
<?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 8.0.5 (20230430.1635)
-->
<!-- 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="for std::vector">
<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&#45;&gt;Node2 -->
<g id="edge1_Node000001_Node000002" class="edge">
<title>Node1&#45;&gt;Node2</title>
<g id="a_edge1_Node000001_Node000002"><a xlink:title=" ">
<path fill="none" stroke="#63b8ff" d="M119.79,-35.9C133.11,-37.77 146.89,-39.7 159.02,-41.4"/>
<polygon fill="#63b8ff" stroke="#63b8ff" points="158.25,-44.97 168.64,-42.89 159.22,-38.04 158.25,-44.97"/>
</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&#45;&gt;Node3 -->
<g id="edge2_Node000001_Node000003" class="edge">
<title>Node1&#45;&gt;Node3</title>
<g id="a_edge2_Node000001_Node000003"><a xlink:title=" ">
<path fill="none" stroke="#63b8ff" d="M119.79,-19.78C128.03,-18.69 136.44,-17.57 144.53,-16.5"/>
<polygon fill="#63b8ff" stroke="#63b8ff" points="144.86,-19.85 154.31,-15.06 143.93,-12.91 144.86,-19.85"/>
</a>
</g>
</g>
</g>
</svg>

After

Width:  |  Height:  |  Size: 2.6 KiB

View File

@@ -0,0 +1,7 @@
<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,33,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,130,54,129,59,92,53"/>
</map>

View File

@@ -0,0 +1 @@
62bba1e3ba4c0f13c529cdd88132faa3

View File

@@ -0,0 +1,82 @@
<?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 8.0.5 (20230430.1635)
-->
<!-- 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" 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>
<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&#45;&gt;Node2 -->
<g id="edge1_Node000001_Node000002" class="edge">
<title>Node1&#45;&gt;Node2</title>
<g id="a_edge1_Node000001_Node000002"><a xlink:title=" ">
<path fill="none" stroke="#63b8ff" d="M65.24,-33.02C72.9,-34.31 81.3,-35.74 89.7,-37.16"/>
<polygon fill="#63b8ff" stroke="#63b8ff" points="88.83,-40.73 99.27,-38.95 90,-33.83 88.83,-40.73"/>
</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&#45;&gt;Node3 -->
<g id="edge2_Node000001_Node000003" class="edge">
<title>Node1&#45;&gt;Node3</title>
<g id="a_edge2_Node000001_Node000003"><a xlink:title=" ">
<path fill="none" stroke="#63b8ff" d="M65.24,-22.52C74,-21.11 83.74,-19.55 93.32,-18.01"/>
<polygon fill="#63b8ff" stroke="#63b8ff" points="93.7,-21.34 103.02,-16.3 92.59,-14.42 93.7,-21.34"/>
</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>

After

Width:  |  Height:  |  Size: 3.3 KiB

View File

@@ -0,0 +1,57 @@
<?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 8.0.5 (20230430.1635)
-->
<!-- 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&#45;&gt;Node2 -->
<g id="edge1_Node000001_Node000002" class="edge">
<title>Node1&#45;&gt;Node2</title>
<g id="a_edge1_Node000001_Node000002"><a xlink:title=" ">
<path fill="none" stroke="#63b8ff" d="M65.24,-33.02C72.9,-34.31 81.3,-35.74 89.7,-37.16"/>
<polygon fill="#63b8ff" stroke="#63b8ff" points="88.83,-40.73 99.27,-38.95 90,-33.83 88.83,-40.73"/>
</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&#45;&gt;Node3 -->
<g id="edge2_Node000001_Node000003" class="edge">
<title>Node1&#45;&gt;Node3</title>
<g id="a_edge2_Node000001_Node000003"><a xlink:title=" ">
<path fill="none" stroke="#63b8ff" d="M65.24,-22.52C74,-21.11 83.74,-19.55 93.32,-18.01"/>
<polygon fill="#63b8ff" stroke="#63b8ff" points="93.7,-21.34 103.02,-16.3 92.59,-14.42 93.7,-21.34"/>
</a>
</g>
</g>
</g>
</svg>

After

Width:  |  Height:  |  Size: 2.5 KiB

View File

@@ -0,0 +1,9 @@
<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="for std::vector" alt="" coords="241,23,400,64"/>
<area shape="poly" id="edge1_Node000001_Node000002" title=" " alt="" coords="193,41,226,41,226,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,452,22,453,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,434,56,433,61,400,57"/>
</map>

View File

@@ -0,0 +1 @@
21321f907213a73c8aa5e812b13042c3

View File

@@ -0,0 +1,102 @@
<?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 8.0.5 (20230430.1635)
-->
<!-- 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" 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>
<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="for std::vector">
<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&#45;&gt;Node2 -->
<g id="edge1_Node000001_Node000002" class="edge">
<title>Node1&#45;&gt;Node2</title>
<g id="a_edge1_Node000001_Node000002"><a xlink:title=" ">
<path fill="none" stroke="#63b8ff" d="M140.8,-27.62C148.9,-27.62 157.17,-27.62 165.28,-27.62"/>
<polygon fill="#63b8ff" stroke="#63b8ff" points="165.21,-31.13 175.21,-27.62 165.21,-24.13 165.21,-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&#45;&gt;Node3 -->
<g id="edge2_Node000002_Node000003" class="edge">
<title>Node2&#45;&gt;Node3</title>
<g id="a_edge2_Node000002_Node000003"><a xlink:title=" ">
<path fill="none" stroke="#63b8ff" d="M296.29,-35.9C309.61,-37.77 323.39,-39.7 335.52,-41.4"/>
<polygon fill="#63b8ff" stroke="#63b8ff" points="334.75,-44.97 345.14,-42.89 335.72,-38.04 334.75,-44.97"/>
</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&#45;&gt;Node4 -->
<g id="edge3_Node000002_Node000004" class="edge">
<title>Node2&#45;&gt;Node4</title>
<g id="a_edge3_Node000002_Node000004"><a xlink:title=" ">
<path fill="none" stroke="#63b8ff" d="M296.29,-19.78C304.53,-18.69 312.94,-17.57 321.03,-16.5"/>
<polygon fill="#63b8ff" stroke="#63b8ff" points="321.36,-19.85 330.81,-15.06 320.43,-12.91 321.36,-19.85"/>
</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>

After

Width:  |  Height:  |  Size: 4.5 KiB

View File

@@ -0,0 +1,77 @@
<?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 8.0.5 (20230430.1635)
-->
<!-- 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="for std::vector">
<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&#45;&gt;Node2 -->
<g id="edge1_Node000001_Node000002" class="edge">
<title>Node1&#45;&gt;Node2</title>
<g id="a_edge1_Node000001_Node000002"><a xlink:title=" ">
<path fill="none" stroke="#63b8ff" d="M140.8,-27.62C148.9,-27.62 157.17,-27.62 165.28,-27.62"/>
<polygon fill="#63b8ff" stroke="#63b8ff" points="165.21,-31.13 175.21,-27.62 165.21,-24.13 165.21,-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&#45;&gt;Node3 -->
<g id="edge2_Node000002_Node000003" class="edge">
<title>Node2&#45;&gt;Node3</title>
<g id="a_edge2_Node000002_Node000003"><a xlink:title=" ">
<path fill="none" stroke="#63b8ff" d="M296.29,-35.9C309.61,-37.77 323.39,-39.7 335.52,-41.4"/>
<polygon fill="#63b8ff" stroke="#63b8ff" points="334.75,-44.97 345.14,-42.89 335.72,-38.04 334.75,-44.97"/>
</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&#45;&gt;Node4 -->
<g id="edge3_Node000002_Node000004" class="edge">
<title>Node2&#45;&gt;Node4</title>
<g id="a_edge3_Node000002_Node000004"><a xlink:title=" ">
<path fill="none" stroke="#63b8ff" d="M296.29,-19.78C304.53,-18.69 312.94,-17.57 321.03,-16.5"/>
<polygon fill="#63b8ff" stroke="#63b8ff" points="321.36,-19.85 330.81,-15.06 320.43,-12.91 321.36,-19.85"/>
</a>
</g>
</g>
</g>
</svg>

After

Width:  |  Height:  |  Size: 3.8 KiB

View File

@@ -0,0 +1,27 @@
<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,224,30,227,35,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,205,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,211,175,208,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,121,388,161"/>
<area shape="poly" id="edge12_Node000002_Node000012" title=" " alt="" coords="154,111,187,117,186,123,153,116"/>
<area shape="rect" id="Node000005" href="$da/d0d/longest__common__string_8cpp.html#aa38b6b17bc5d46ed88acdd8414e18fa5" title="for std::vector" alt="" coords="436,121,596,161"/>
<area shape="poly" id="edge4_Node000004_Node000005" title=" " alt="" coords="367,94,431,113,430,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,654,106,655,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,761,159"/>
<area shape="poly" id="edge6_Node000005_Node000007" title=" " alt="" coords="596,140,634,142,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,458,210,458,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,629,206,629,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,635,237,634,242,559,225"/>
<area shape="poly" id="edge13_Node000012_Node000005" title=" " alt="" coords="389,138,421,138,421,144,389,144"/>
</map>

View File

@@ -0,0 +1 @@
284810262f13421741eda0349c687db5

View File

@@ -0,0 +1,324 @@
<?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 8.0.5 (20230430.1635)
-->
<!-- 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&#45;&gt;Node2 -->
<g id="edge1_Node000001_Node000002" class="edge">
<title>Node1&#45;&gt;Node2</title>
<g id="a_edge1_Node000001_Node000002"><a xlink:title=" ">
<path fill="none" stroke="#63b8ff" d="M37.14,-119.62C44.64,-119.62 53.57,-119.62 61.98,-119.62"/>
<polygon fill="#63b8ff" stroke="#63b8ff" points="61.94,-123.13 71.94,-119.62 61.94,-116.13 61.94,-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&#45;&gt;Node3 -->
<g id="edge2_Node000002_Node000003" class="edge">
<title>Node2&#45;&gt;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.48,-171.78 158.78,-174.44 165.16,-176.67"/>
<polygon fill="#63b8ff" stroke="#63b8ff" points="163.61,-180.17 174.2,-179.85 165.72,-173.5 163.61,-180.17"/>
</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&#45;&gt;Node4 -->
<g id="edge3_Node000002_Node000004" class="edge">
<title>Node2&#45;&gt;Node4</title>
<g id="a_edge3_Node000002_Node000004"><a xlink:title=" ">
<path fill="none" stroke="#63b8ff" d="M111.04,-123.31C121.65,-125.47 135.75,-128.33 150.16,-131.26"/>
<polygon fill="#63b8ff" stroke="#63b8ff" points="149.17,-134.83 159.66,-133.39 150.56,-127.97 149.17,-134.83"/>
</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&#45;&gt;Node8 -->
<g id="edge7_Node000002_Node000008" class="edge">
<title>Node2&#45;&gt;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.72,-70.36 150.76,-69.13 152.84,-67.93"/>
<polygon fill="#63b8ff" stroke="#63b8ff" points="154.05,-70.72 161.18,-62.89 150.72,-64.56 154.05,-70.72"/>
</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&#45;&gt;Node12 -->
<g id="edge12_Node000002_Node000012" class="edge">
<title>Node2&#45;&gt;Node12</title>
<g id="a_edge12_Node000002_Node000012"><a xlink:title=" ">
<path fill="none" stroke="#63b8ff" d="M111.04,-116.08C118.09,-114.71 126.68,-113.04 135.88,-111.24"/>
<polygon fill="#63b8ff" stroke="#63b8ff" points="136.33,-114.52 145.48,-109.18 134.99,-107.65 136.33,-114.52"/>
</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="for std::vector">
<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&#45;&gt;Node5 -->
<g id="edge4_Node000004_Node000005" class="edge">
<title>Node4&#45;&gt;Node5</title>
<g id="a_edge4_Node000004_Node000005"><a xlink:title=" ">
<path fill="none" stroke="#63b8ff" d="M270.34,-128.99C285.8,-124.37 302.88,-119.26 318.94,-114.47"/>
<polygon fill="#63b8ff" stroke="#63b8ff" points="319.73,-117.58 328.31,-111.37 317.73,-110.88 319.73,-117.58"/>
</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&#45;&gt;Node6 -->
<g id="edge5_Node000005_Node000006" class="edge">
<title>Node5&#45;&gt;Node6</title>
<g id="a_edge5_Node000005_Node000006"><a xlink:title=" ">
<path fill="none" stroke="#63b8ff" d="M443.21,-109.62C457.96,-113.11 473.36,-116.74 486.68,-119.89"/>
<polygon fill="#63b8ff" stroke="#63b8ff" points="485.79,-123.52 496.33,-122.41 487.4,-116.7 485.79,-123.52"/>
</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&#45;&gt;Node7 -->
<g id="edge6_Node000005_Node000007" class="edge">
<title>Node5&#45;&gt;Node7</title>
<g id="a_edge6_Node000005_Node000007"><a xlink:title=" ">
<path fill="none" stroke="#63b8ff" d="M443.21,-93.93C452.62,-93.66 462.29,-93.38 471.51,-93.12"/>
<polygon fill="#63b8ff" stroke="#63b8ff" points="471.61,-96.59 481.5,-92.8 471.41,-89.59 471.61,-96.59"/>
</a>
</g>
</g>
<!-- Node8&#45;&gt;Node5 -->
<g id="edge8_Node000008_Node000005" class="edge">
<title>Node8&#45;&gt;Node5</title>
<g id="a_edge8_Node000008_Node000005"><a xlink:title=" ">
<path fill="none" stroke="#63b8ff" d="M282.82,-62.97C296.38,-67.43 310.6,-72.12 323.9,-76.5"/>
<polygon fill="#63b8ff" stroke="#63b8ff" points="322.75,-80.13 333.34,-79.93 324.94,-73.48 322.75,-80.13"/>
</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&#45;&gt;Node9 -->
<g id="edge9_Node000008_Node000009" class="edge">
<title>Node8&#45;&gt;Node9</title>
<g id="a_edge9_Node000008_Node000009"><a xlink:title=" ">
<path fill="none" stroke="#63b8ff" d="M285.18,-41.62C303.43,-41.62 322.7,-41.62 339.2,-41.62"/>
<polygon fill="#63b8ff" stroke="#63b8ff" points="339.14,-45.13 349.14,-41.62 339.14,-38.13 339.14,-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&#45;&gt;Node10 -->
<g id="edge10_Node000009_Node000010" class="edge">
<title>Node9&#45;&gt;Node10</title>
<g id="a_edge10_Node000009_Node000010"><a xlink:title=" ">
<path fill="none" stroke="#63b8ff" d="M415.68,-42.76C431.01,-43.31 449.87,-43.98 467.51,-44.62"/>
<polygon fill="#63b8ff" stroke="#63b8ff" points="467.18,-48.14 477.3,-45 467.43,-41.15 467.18,-48.14"/>
</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&#45;&gt;Node11 -->
<g id="edge11_Node000009_Node000011" class="edge">
<title>Node9&#45;&gt;Node11</title>
<g id="a_edge11_Node000009_Node000011"><a xlink:title=" ">
<path fill="none" stroke="#63b8ff" d="M415.68,-34.36C432.24,-30.57 452.92,-25.83 471.74,-21.52"/>
<polygon fill="#63b8ff" stroke="#63b8ff" points="472.29,-24.75 481.26,-19.11 470.73,-17.93 472.29,-24.75"/>
</a>
</g>
</g>
<!-- Node12&#45;&gt;Node5 -->
<g id="edge13_Node000012_Node000005" class="edge">
<title>Node12&#45;&gt;Node5</title>
<g id="a_edge13_Node000012_Node000005"><a xlink:title=" ">
<path fill="none" stroke="#63b8ff" d="M287.55,-95.62C295.65,-95.62 303.92,-95.62 312.03,-95.62"/>
<polygon fill="#63b8ff" stroke="#63b8ff" points="311.96,-99.13 321.96,-95.62 311.96,-92.13 311.96,-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>

After

Width:  |  Height:  |  Size: 16 KiB

View File

@@ -0,0 +1,242 @@
<?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 8.0.5 (20230430.1635)
-->
<!-- 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&#45;&gt;Node2 -->
<g id="edge1_Node000001_Node000002" class="edge">
<title>Node1&#45;&gt;Node2</title>
<g id="a_edge1_Node000001_Node000002"><a xlink:title=" ">
<path fill="none" stroke="#63b8ff" d="M37.14,-119.62C44.64,-119.62 53.57,-119.62 61.98,-119.62"/>
<polygon fill="#63b8ff" stroke="#63b8ff" points="61.94,-123.13 71.94,-119.62 61.94,-116.13 61.94,-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&#45;&gt;Node3 -->
<g id="edge2_Node000002_Node000003" class="edge">
<title>Node2&#45;&gt;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.48,-171.78 158.78,-174.44 165.16,-176.67"/>
<polygon fill="#63b8ff" stroke="#63b8ff" points="163.61,-180.17 174.2,-179.85 165.72,-173.5 163.61,-180.17"/>
</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&#45;&gt;Node4 -->
<g id="edge3_Node000002_Node000004" class="edge">
<title>Node2&#45;&gt;Node4</title>
<g id="a_edge3_Node000002_Node000004"><a xlink:title=" ">
<path fill="none" stroke="#63b8ff" d="M111.04,-123.31C121.65,-125.47 135.75,-128.33 150.16,-131.26"/>
<polygon fill="#63b8ff" stroke="#63b8ff" points="149.17,-134.83 159.66,-133.39 150.56,-127.97 149.17,-134.83"/>
</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&#45;&gt;Node8 -->
<g id="edge7_Node000002_Node000008" class="edge">
<title>Node2&#45;&gt;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.72,-70.36 150.76,-69.13 152.84,-67.93"/>
<polygon fill="#63b8ff" stroke="#63b8ff" points="154.05,-70.72 161.18,-62.89 150.72,-64.56 154.05,-70.72"/>
</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&#45;&gt;Node12 -->
<g id="edge12_Node000002_Node000012" class="edge">
<title>Node2&#45;&gt;Node12</title>
<g id="a_edge12_Node000002_Node000012"><a xlink:title=" ">
<path fill="none" stroke="#63b8ff" d="M111.04,-116.08C118.09,-114.71 126.68,-113.04 135.88,-111.24"/>
<polygon fill="#63b8ff" stroke="#63b8ff" points="136.33,-114.52 145.48,-109.18 134.99,-107.65 136.33,-114.52"/>
</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="for std::vector">
<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&#45;&gt;Node5 -->
<g id="edge4_Node000004_Node000005" class="edge">
<title>Node4&#45;&gt;Node5</title>
<g id="a_edge4_Node000004_Node000005"><a xlink:title=" ">
<path fill="none" stroke="#63b8ff" d="M270.34,-128.99C285.8,-124.37 302.88,-119.26 318.94,-114.47"/>
<polygon fill="#63b8ff" stroke="#63b8ff" points="319.73,-117.58 328.31,-111.37 317.73,-110.88 319.73,-117.58"/>
</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&#45;&gt;Node6 -->
<g id="edge5_Node000005_Node000006" class="edge">
<title>Node5&#45;&gt;Node6</title>
<g id="a_edge5_Node000005_Node000006"><a xlink:title=" ">
<path fill="none" stroke="#63b8ff" d="M443.21,-109.62C457.96,-113.11 473.36,-116.74 486.68,-119.89"/>
<polygon fill="#63b8ff" stroke="#63b8ff" points="485.79,-123.52 496.33,-122.41 487.4,-116.7 485.79,-123.52"/>
</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&#45;&gt;Node7 -->
<g id="edge6_Node000005_Node000007" class="edge">
<title>Node5&#45;&gt;Node7</title>
<g id="a_edge6_Node000005_Node000007"><a xlink:title=" ">
<path fill="none" stroke="#63b8ff" d="M443.21,-93.93C452.62,-93.66 462.29,-93.38 471.51,-93.12"/>
<polygon fill="#63b8ff" stroke="#63b8ff" points="471.61,-96.59 481.5,-92.8 471.41,-89.59 471.61,-96.59"/>
</a>
</g>
</g>
<!-- Node8&#45;&gt;Node5 -->
<g id="edge8_Node000008_Node000005" class="edge">
<title>Node8&#45;&gt;Node5</title>
<g id="a_edge8_Node000008_Node000005"><a xlink:title=" ">
<path fill="none" stroke="#63b8ff" d="M282.82,-62.97C296.38,-67.43 310.6,-72.12 323.9,-76.5"/>
<polygon fill="#63b8ff" stroke="#63b8ff" points="322.75,-80.13 333.34,-79.93 324.94,-73.48 322.75,-80.13"/>
</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&#45;&gt;Node9 -->
<g id="edge9_Node000008_Node000009" class="edge">
<title>Node8&#45;&gt;Node9</title>
<g id="a_edge9_Node000008_Node000009"><a xlink:title=" ">
<path fill="none" stroke="#63b8ff" d="M285.18,-41.62C303.43,-41.62 322.7,-41.62 339.2,-41.62"/>
<polygon fill="#63b8ff" stroke="#63b8ff" points="339.14,-45.13 349.14,-41.62 339.14,-38.13 339.14,-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&#45;&gt;Node10 -->
<g id="edge10_Node000009_Node000010" class="edge">
<title>Node9&#45;&gt;Node10</title>
<g id="a_edge10_Node000009_Node000010"><a xlink:title=" ">
<path fill="none" stroke="#63b8ff" d="M415.68,-42.76C431.01,-43.31 449.87,-43.98 467.51,-44.62"/>
<polygon fill="#63b8ff" stroke="#63b8ff" points="467.18,-48.14 477.3,-45 467.43,-41.15 467.18,-48.14"/>
</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&#45;&gt;Node11 -->
<g id="edge11_Node000009_Node000011" class="edge">
<title>Node9&#45;&gt;Node11</title>
<g id="a_edge11_Node000009_Node000011"><a xlink:title=" ">
<path fill="none" stroke="#63b8ff" d="M415.68,-34.36C432.24,-30.57 452.92,-25.83 471.74,-21.52"/>
<polygon fill="#63b8ff" stroke="#63b8ff" points="472.29,-24.75 481.26,-19.11 470.73,-17.93 472.29,-24.75"/>
</a>
</g>
</g>
<!-- Node12&#45;&gt;Node5 -->
<g id="edge13_Node000012_Node000005" class="edge">
<title>Node12&#45;&gt;Node5</title>
<g id="a_edge13_Node000012_Node000005"><a xlink:title=" ">
<path fill="none" stroke="#63b8ff" d="M287.55,-95.62C295.65,-95.62 303.92,-95.62 312.03,-95.62"/>
<polygon fill="#63b8ff" stroke="#63b8ff" points="311.96,-99.13 321.96,-95.62 311.96,-92.13 311.96,-99.13"/>
</a>
</g>
</g>
</g>
</svg>

After

Width:  |  Height:  |  Size: 12 KiB

View File

@@ -0,0 +1,195 @@
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "https://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" lang="en-US">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=11"/>
<meta name="generator" content="Doxygen 1.9.7"/>
<meta name="viewport" content="width=device-width, initial-scale=1"/>
<title>Algorithms_in_C++: TestCase Struct Reference</title>
<link href="../../tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="../../jquery.js"></script>
<script type="text/javascript" src="../../dynsections.js"></script>
<link href="../../navtree.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="../../resize.js"></script>
<script type="text/javascript" src="../../navtreedata.js"></script>
<script type="text/javascript" src="../../navtree.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/x-mathjax-config">
MathJax.Hub.Config({
extensions: ["tex2jax.js", "TeX/AMSmath.js", "TeX/AMSsymbols.js"],
jax: ["input/TeX","output/HTML-CSS"],
});
</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>
<link href="../../doxygen.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
<tbody>
<tr id="projectrow">
<td id="projectalign">
<div id="projectname">Algorithms_in_C++<span id="projectnumber">&#160;1.0.0</span>
</div>
<div id="projectbrief">Set of algorithms implemented in C++.</div>
</td>
</tr>
</tbody>
</table>
</div>
<!-- end header part -->
<!-- Generated by Doxygen 1.9.7 -->
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:d3d9a9a6595521f9666a5e94cc830dab83b65699&amp;dn=expat.txt MIT */
var searchBox = new SearchBox("searchBox", "../../search/",'.html');
/* @license-end */
</script>
<script type="text/javascript" src="../../menudata.js"></script>
<script type="text/javascript" src="../../menu.js"></script>
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:d3d9a9a6595521f9666a5e94cc830dab83b65699&amp;dn=expat.txt MIT */
$(function() {
initMenu('../../',true,false,'search.php','Search');
$(document).ready(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&amp;dn=expat.txt MIT */
$(document).ready(function(){initNavTree('da/d86/struct_test_case.html','../../'); initResizable(); });
/* @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="summary">
<a href="#pub-methods">Public Member Functions</a> &#124;
<a href="#pub-attribs">Public Attributes</a> &#124;
<a href="../../dd/dbb/struct_test_case-members.html">List of all members</a> </div>
<div class="headertitle"><div class="title">TestCase Struct Reference</div></div>
</div><!--header-->
<div class="contents">
<p>represents single example inputs and expected output of the function <a class="el" href="../../da/d0d/longest__common__string_8cpp.html#aa38b6b17bc5d46ed88acdd8414e18fa5" title="for std::vector">longest_common_string_length</a>
<a href="../../da/d86/struct_test_case.html#details">More...</a></p>
<div class="dynheader">
Collaboration diagram for TestCase:</div>
<div class="dyncontent">
<div class="center"><iframe scrolling="no" frameborder="0" src="../../de/d57/struct_test_case__coll__graph.svg" width="282" height="231"><p><b>This browser is not able to show SVG: try Firefox, Chrome, Safari, or Opera instead.</b></p></iframe></div>
<center><span class="legend">[<a target="top" href="../../graph_legend.html">legend</a>]</span></center></div>
<table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a id="pub-methods" name="pub-methods"></a>
Public Member Functions</h2></td></tr>
<tr class="memitem:ad044f5ab2a58785ace621cac7544eeb0"><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="../../da/d86/struct_test_case.html#ad044f5ab2a58785ace621cac7544eeb0">TestCase</a> (<a class="elRef" target="_blank" href="http://en.cppreference.com/w/cpp/string/basic_string.html">std::string</a> string_a, <a class="elRef" target="_blank" href="http://en.cppreference.com/w/cpp/string/basic_string.html">std::string</a> string_b, const <a class="elRef" target="_blank" href="http://en.cppreference.com/w/cpp/types/size_t.html">std::size_t</a> in_common_string_len)</td></tr>
<tr class="separator:ad044f5ab2a58785ace621cac7544eeb0"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a id="pub-attribs" name="pub-attribs"></a>
Public Attributes</h2></td></tr>
<tr class="memitem:ad8acf635a7ad1c56949657128110d666"><td class="memItemLeft" align="right" valign="top"><a id="ad8acf635a7ad1c56949657128110d666" name="ad8acf635a7ad1c56949657128110d666"></a>
const <a class="elRef" target="_blank" href="http://en.cppreference.com/w/cpp/string/basic_string.html">std::string</a>&#160;</td><td class="memItemRight" valign="bottom"><b>string_a</b></td></tr>
<tr class="separator:ad8acf635a7ad1c56949657128110d666"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ada0ced4634fc8828fc623ba7067bb7a6"><td class="memItemLeft" align="right" valign="top"><a id="ada0ced4634fc8828fc623ba7067bb7a6" name="ada0ced4634fc8828fc623ba7067bb7a6"></a>
const <a class="elRef" target="_blank" href="http://en.cppreference.com/w/cpp/string/basic_string.html">std::string</a>&#160;</td><td class="memItemRight" valign="bottom"><b>string_b</b></td></tr>
<tr class="separator:ada0ced4634fc8828fc623ba7067bb7a6"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:aaf21352a77ef2b7379d98d6803588913"><td class="memItemLeft" align="right" valign="top"><a id="aaf21352a77ef2b7379d98d6803588913" name="aaf21352a77ef2b7379d98d6803588913"></a>
const <a class="elRef" target="_blank" href="http://en.cppreference.com/w/cpp/types/size_t.html">std::size_t</a>&#160;</td><td class="memItemRight" valign="bottom"><b>common_string_len</b></td></tr>
<tr class="separator:aaf21352a77ef2b7379d98d6803588913"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table>
<a name="details" id="details"></a><h2 class="groupheader">Detailed Description</h2>
<div class="textblock"><p>represents single example inputs and expected output of the function <a class="el" href="../../da/d0d/longest__common__string_8cpp.html#aa38b6b17bc5d46ed88acdd8414e18fa5" title="for std::vector">longest_common_string_length</a> </p>
</div><h2 class="groupheader">Constructor &amp; Destructor Documentation</h2>
<a id="ad044f5ab2a58785ace621cac7544eeb0" name="ad044f5ab2a58785ace621cac7544eeb0"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ad044f5ab2a58785ace621cac7544eeb0">&#9670;&#160;</a></span>TestCase()</h2>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
<tr>
<td class="mlabels-left">
<table class="memname">
<tr>
<td class="memname">TestCase::TestCase </td>
<td>(</td>
<td class="paramtype"><a class="elRef" target="_blank" href="http://en.cppreference.com/w/cpp/string/basic_string.html">std::string</a>&#160;</td>
<td class="paramname"><em>string_a</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype"><a class="elRef" target="_blank" href="http://en.cppreference.com/w/cpp/string/basic_string.html">std::string</a>&#160;</td>
<td class="paramname"><em>string_b</em>, </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/types/size_t.html">std::size_t</a>&#160;</td>
<td class="paramname"><em>in_common_string_len</em>&#160;</td>
</tr>
<tr>
<td></td>
<td>)</td>
<td></td><td></td>
</tr>
</table>
</td>
<td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span></span> </td>
</tr>
</table>
</div><div class="memdoc">
<div class="fragment"><div class="line"><span class="lineno"> 61</span> : string_a(<a class="code hl_functionRef" target="_blank" href="http://en.cppreference.com/w/cpp/utility/move.html">std::move</a>(string_a)),</div>
<div class="line"><span class="lineno"> 62</span> string_b(<a class="code hl_functionRef" target="_blank" href="http://en.cppreference.com/w/cpp/utility/move.html">std::move</a>(string_b)),</div>
<div class="line"><span class="lineno"> 63</span> common_string_len(in_common_string_len) {}</div>
<div class="ttc" id="amove_html"><div class="ttname"><a href="http://en.cppreference.com/w/cpp/utility/move.html">std::move</a></div><div class="ttdeci">T move(T... args)</div></div>
</div><!-- fragment -->
</div>
</div>
<hr/>The documentation for this struct was generated from the following file:<ul>
<li>dynamic_programming/<a class="el" href="../../da/d0d/longest__common__string_8cpp.html">longest_common_string.cpp</a></li>
</ul>
</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="../../da/d86/struct_test_case.html">TestCase</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.9.7 </li>
</ul>
</div>
</body>
</html>