Micro template library A library for building device drivers
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

namespacetesting_1_1internal_1_1edit__distance.html 13 KiB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241
  1. <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
  2. <html xmlns="http://www.w3.org/1999/xhtml">
  3. <head>
  4. <meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
  5. <meta http-equiv="X-UA-Compatible" content="IE=9"/>
  6. <meta name="generator" content="Doxygen 1.8.14"/>
  7. <meta name="viewport" content="width=device-width, initial-scale=1"/>
  8. <title>uTL: testing::internal::edit_distance Namespace Reference</title>
  9. <link href="tabs.css" rel="stylesheet" type="text/css"/>
  10. <script type="text/javascript" src="jquery.js"></script>
  11. <script type="text/javascript" src="dynsections.js"></script>
  12. <link href="navtree.css" rel="stylesheet" type="text/css"/>
  13. <script type="text/javascript" src="resize.js"></script>
  14. <script type="text/javascript" src="navtreedata.js"></script>
  15. <script type="text/javascript" src="navtree.js"></script>
  16. <script type="text/javascript">
  17. /* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
  18. $(document).ready(initResizable);
  19. /* @license-end */</script>
  20. <link href="search/search.css" rel="stylesheet" type="text/css"/>
  21. <script type="text/javascript" src="search/searchdata.js"></script>
  22. <script type="text/javascript" src="search/search.js"></script>
  23. <link href="doxygen.css" rel="stylesheet" type="text/css" />
  24. </head>
  25. <body>
  26. <div id="top"><!-- do not remove this div, it is closed by doxygen! -->
  27. <div id="titlearea">
  28. <table cellspacing="0" cellpadding="0">
  29. <tbody>
  30. <tr style="height: 56px;">
  31. <td id="projectalign" style="padding-left: 0.5em;">
  32. <div id="projectname">uTL
  33. </div>
  34. <div id="projectbrief">micro Template library</div>
  35. </td>
  36. </tr>
  37. </tbody>
  38. </table>
  39. </div>
  40. <!-- end header part -->
  41. <!-- Generated by Doxygen 1.8.14 -->
  42. <script type="text/javascript">
  43. /* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
  44. var searchBox = new SearchBox("searchBox", "search",false,'Search');
  45. /* @license-end */
  46. </script>
  47. <script type="text/javascript" src="menudata.js"></script>
  48. <script type="text/javascript" src="menu.js"></script>
  49. <script type="text/javascript">
  50. /* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
  51. $(function() {
  52. initMenu('',true,false,'search.php','Search');
  53. $(document).ready(function() { init_search(); });
  54. });
  55. /* @license-end */</script>
  56. <div id="main-nav"></div>
  57. </div><!-- top -->
  58. <div id="side-nav" class="ui-resizable side-nav-resizable">
  59. <div id="nav-tree">
  60. <div id="nav-tree-contents">
  61. <div id="nav-sync" class="sync"></div>
  62. </div>
  63. </div>
  64. <div id="splitbar" style="-moz-user-select:none;"
  65. class="ui-resizable-handle">
  66. </div>
  67. </div>
  68. <script type="text/javascript">
  69. /* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
  70. $(document).ready(function(){initNavTree('namespacetesting_1_1internal_1_1edit__distance.html','');});
  71. /* @license-end */
  72. </script>
  73. <div id="doc-content">
  74. <!-- window showing the filter options -->
  75. <div id="MSearchSelectWindow"
  76. onmouseover="return searchBox.OnSearchSelectShow()"
  77. onmouseout="return searchBox.OnSearchSelectHide()"
  78. onkeydown="return searchBox.OnSearchSelectKey(event)">
  79. </div>
  80. <!-- iframe showing the search results (closed by default) -->
  81. <div id="MSearchResultsWindow">
  82. <iframe src="javascript:void(0)" frameborder="0"
  83. name="MSearchResults" id="MSearchResults">
  84. </iframe>
  85. </div>
  86. <div class="header">
  87. <div class="summary">
  88. <a href="#enum-members">Enumerations</a> &#124;
  89. <a href="#func-members">Functions</a> </div>
  90. <div class="headertitle">
  91. <div class="title">testing::internal::edit_distance Namespace Reference</div> </div>
  92. </div><!--header-->
  93. <div class="contents">
  94. <table class="memberdecls">
  95. <tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="enum-members"></a>
  96. Enumerations</h2></td></tr>
  97. <tr class="memitem:ad46aa6da12aec1a3f166310478b53a08"><td class="memItemLeft" align="right" valign="top">enum &#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="namespacetesting_1_1internal_1_1edit__distance.html#ad46aa6da12aec1a3f166310478b53a08">EditType</a> { <a class="el" href="namespacetesting_1_1internal_1_1edit__distance.html#ad46aa6da12aec1a3f166310478b53a08a7bdb9c74613a94f21b7489e0b5640a63">kMatch</a>,
  98. <a class="el" href="namespacetesting_1_1internal_1_1edit__distance.html#ad46aa6da12aec1a3f166310478b53a08a63400b073f5b311a87d568b5ae27ffe8">kAdd</a>,
  99. <a class="el" href="namespacetesting_1_1internal_1_1edit__distance.html#ad46aa6da12aec1a3f166310478b53a08a814768ef6cd0264a0a10b1e701a63e78">kRemove</a>,
  100. <a class="el" href="namespacetesting_1_1internal_1_1edit__distance.html#ad46aa6da12aec1a3f166310478b53a08afdbf30ecf9f32f60c646a34a358615f2">kReplace</a>
  101. }</td></tr>
  102. <tr class="separator:ad46aa6da12aec1a3f166310478b53a08"><td class="memSeparator" colspan="2">&#160;</td></tr>
  103. </table><table class="memberdecls">
  104. <tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="func-members"></a>
  105. Functions</h2></td></tr>
  106. <tr class="memitem:ad28f23b77f716200bc6644bfc7413a63"><td class="memItemLeft" align="right" valign="top"><a class="el" href="gtest_8h.html#aa73be6f0ba4a7456180a94904ce17790">GTEST_API_</a> std::vector&lt; <a class="el" href="namespacetesting_1_1internal_1_1edit__distance.html#ad46aa6da12aec1a3f166310478b53a08">EditType</a> &gt;&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="namespacetesting_1_1internal_1_1edit__distance.html#ad28f23b77f716200bc6644bfc7413a63">CalculateOptimalEdits</a> (const std::vector&lt; size_t &gt; &amp;left, const std::vector&lt; size_t &gt; &amp;right)</td></tr>
  107. <tr class="separator:ad28f23b77f716200bc6644bfc7413a63"><td class="memSeparator" colspan="2">&#160;</td></tr>
  108. <tr class="memitem:ad2258c5c811f8f262335f58641b33544"><td class="memItemLeft" align="right" valign="top"><a class="el" href="gtest_8h.html#aa73be6f0ba4a7456180a94904ce17790">GTEST_API_</a> std::vector&lt; <a class="el" href="namespacetesting_1_1internal_1_1edit__distance.html#ad46aa6da12aec1a3f166310478b53a08">EditType</a> &gt;&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="namespacetesting_1_1internal_1_1edit__distance.html#ad2258c5c811f8f262335f58641b33544">CalculateOptimalEdits</a> (const std::vector&lt; std::string &gt; &amp;left, const std::vector&lt; std::string &gt; &amp;right)</td></tr>
  109. <tr class="separator:ad2258c5c811f8f262335f58641b33544"><td class="memSeparator" colspan="2">&#160;</td></tr>
  110. <tr class="memitem:a48cffebc6d3169ad1df7849b5f7fb5ff"><td class="memItemLeft" align="right" valign="top"><a class="el" href="gtest_8h.html#aa73be6f0ba4a7456180a94904ce17790">GTEST_API_</a> std::string&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="namespacetesting_1_1internal_1_1edit__distance.html#a48cffebc6d3169ad1df7849b5f7fb5ff">CreateUnifiedDiff</a> (const std::vector&lt; std::string &gt; &amp;left, const std::vector&lt; std::string &gt; &amp;right, size_t context=2)</td></tr>
  111. <tr class="separator:a48cffebc6d3169ad1df7849b5f7fb5ff"><td class="memSeparator" colspan="2">&#160;</td></tr>
  112. </table>
  113. <h2 class="groupheader">Enumeration Type Documentation</h2>
  114. <a id="ad46aa6da12aec1a3f166310478b53a08"></a>
  115. <h2 class="memtitle"><span class="permalink"><a href="#ad46aa6da12aec1a3f166310478b53a08">&#9670;&nbsp;</a></span>EditType</h2>
  116. <div class="memitem">
  117. <div class="memproto">
  118. <table class="memname">
  119. <tr>
  120. <td class="memname">enum <a class="el" href="namespacetesting_1_1internal_1_1edit__distance.html#ad46aa6da12aec1a3f166310478b53a08">testing::internal::edit_distance::EditType</a></td>
  121. </tr>
  122. </table>
  123. </div><div class="memdoc">
  124. <table class="fieldtable">
  125. <tr><th colspan="2">Enumerator</th></tr><tr><td class="fieldname"><a id="ad46aa6da12aec1a3f166310478b53a08a7bdb9c74613a94f21b7489e0b5640a63"></a>kMatch&#160;</td><td class="fielddoc"></td></tr>
  126. <tr><td class="fieldname"><a id="ad46aa6da12aec1a3f166310478b53a08a63400b073f5b311a87d568b5ae27ffe8"></a>kAdd&#160;</td><td class="fielddoc"></td></tr>
  127. <tr><td class="fieldname"><a id="ad46aa6da12aec1a3f166310478b53a08a814768ef6cd0264a0a10b1e701a63e78"></a>kRemove&#160;</td><td class="fielddoc"></td></tr>
  128. <tr><td class="fieldname"><a id="ad46aa6da12aec1a3f166310478b53a08afdbf30ecf9f32f60c646a34a358615f2"></a>kReplace&#160;</td><td class="fielddoc"></td></tr>
  129. </table>
  130. <p class="definition">Definition at line <a class="el" href="gtest_8h_source.html#l06605">6605</a> of file <a class="el" href="gtest_8h_source.html">gtest.h</a>.</p>
  131. </div>
  132. </div>
  133. <h2 class="groupheader">Function Documentation</h2>
  134. <a id="ad28f23b77f716200bc6644bfc7413a63"></a>
  135. <h2 class="memtitle"><span class="permalink"><a href="#ad28f23b77f716200bc6644bfc7413a63">&#9670;&nbsp;</a></span>CalculateOptimalEdits() <span class="overload">[1/2]</span></h2>
  136. <div class="memitem">
  137. <div class="memproto">
  138. <table class="memname">
  139. <tr>
  140. <td class="memname"><a class="el" href="gtest_8h.html#aa73be6f0ba4a7456180a94904ce17790">GTEST_API_</a> std::vector&lt;<a class="el" href="namespacetesting_1_1internal_1_1edit__distance.html#ad46aa6da12aec1a3f166310478b53a08">EditType</a>&gt; testing::internal::edit_distance::CalculateOptimalEdits </td>
  141. <td>(</td>
  142. <td class="paramtype">const std::vector&lt; size_t &gt; &amp;&#160;</td>
  143. <td class="paramname"><em>left</em>, </td>
  144. </tr>
  145. <tr>
  146. <td class="paramkey"></td>
  147. <td></td>
  148. <td class="paramtype">const std::vector&lt; size_t &gt; &amp;&#160;</td>
  149. <td class="paramname"><em>right</em>&#160;</td>
  150. </tr>
  151. <tr>
  152. <td></td>
  153. <td>)</td>
  154. <td></td><td></td>
  155. </tr>
  156. </table>
  157. </div><div class="memdoc">
  158. </div>
  159. </div>
  160. <a id="ad2258c5c811f8f262335f58641b33544"></a>
  161. <h2 class="memtitle"><span class="permalink"><a href="#ad2258c5c811f8f262335f58641b33544">&#9670;&nbsp;</a></span>CalculateOptimalEdits() <span class="overload">[2/2]</span></h2>
  162. <div class="memitem">
  163. <div class="memproto">
  164. <table class="memname">
  165. <tr>
  166. <td class="memname"><a class="el" href="gtest_8h.html#aa73be6f0ba4a7456180a94904ce17790">GTEST_API_</a> std::vector&lt;<a class="el" href="namespacetesting_1_1internal_1_1edit__distance.html#ad46aa6da12aec1a3f166310478b53a08">EditType</a>&gt; testing::internal::edit_distance::CalculateOptimalEdits </td>
  167. <td>(</td>
  168. <td class="paramtype">const std::vector&lt; std::string &gt; &amp;&#160;</td>
  169. <td class="paramname"><em>left</em>, </td>
  170. </tr>
  171. <tr>
  172. <td class="paramkey"></td>
  173. <td></td>
  174. <td class="paramtype">const std::vector&lt; std::string &gt; &amp;&#160;</td>
  175. <td class="paramname"><em>right</em>&#160;</td>
  176. </tr>
  177. <tr>
  178. <td></td>
  179. <td>)</td>
  180. <td></td><td></td>
  181. </tr>
  182. </table>
  183. </div><div class="memdoc">
  184. </div>
  185. </div>
  186. <a id="a48cffebc6d3169ad1df7849b5f7fb5ff"></a>
  187. <h2 class="memtitle"><span class="permalink"><a href="#a48cffebc6d3169ad1df7849b5f7fb5ff">&#9670;&nbsp;</a></span>CreateUnifiedDiff()</h2>
  188. <div class="memitem">
  189. <div class="memproto">
  190. <table class="memname">
  191. <tr>
  192. <td class="memname"><a class="el" href="gtest_8h.html#aa73be6f0ba4a7456180a94904ce17790">GTEST_API_</a> std::string testing::internal::edit_distance::CreateUnifiedDiff </td>
  193. <td>(</td>
  194. <td class="paramtype">const std::vector&lt; std::string &gt; &amp;&#160;</td>
  195. <td class="paramname"><em>left</em>, </td>
  196. </tr>
  197. <tr>
  198. <td class="paramkey"></td>
  199. <td></td>
  200. <td class="paramtype">const std::vector&lt; std::string &gt; &amp;&#160;</td>
  201. <td class="paramname"><em>right</em>, </td>
  202. </tr>
  203. <tr>
  204. <td class="paramkey"></td>
  205. <td></td>
  206. <td class="paramtype">size_t&#160;</td>
  207. <td class="paramname"><em>context</em> = <code>2</code>&#160;</td>
  208. </tr>
  209. <tr>
  210. <td></td>
  211. <td>)</td>
  212. <td></td><td></td>
  213. </tr>
  214. </table>
  215. </div><div class="memdoc">
  216. </div>
  217. </div>
  218. </div><!-- contents -->
  219. </div><!-- doc-content -->
  220. <!-- start footer part -->
  221. <div id="nav-path" class="navpath"><!-- id is needed for treeview function! -->
  222. <ul>
  223. <li class="navelem"><a class="el" href="namespacetesting.html">testing</a></li><li class="navelem"><a class="el" href="namespacetesting_1_1internal.html">internal</a></li><li class="navelem"><a class="el" href="namespacetesting_1_1internal_1_1edit__distance.html">edit_distance</a></li>
  224. <li class="footer">Generated by
  225. <a href="http://www.doxygen.org/index.html">
  226. <img class="footer" src="doxygen.png" alt="doxygen"/></a> 1.8.14 </li>
  227. </ul>
  228. </div>
  229. </body>
  230. </html>