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.
 
 
 
 

73 lines
8.5 KiB

  1. \hypertarget{namespacetesting_1_1internal_1_1edit__distance}{}\section{testing\+:\+:internal\+:\+:edit\+\_\+distance Namespace Reference}
  2. \label{namespacetesting_1_1internal_1_1edit__distance}\index{testing\+::internal\+::edit\+\_\+distance@{testing\+::internal\+::edit\+\_\+distance}}
  3. \subsection*{Enumerations}
  4. \begin{DoxyCompactItemize}
  5. \item
  6. enum \mbox{\hyperlink{namespacetesting_1_1internal_1_1edit__distance_ad46aa6da12aec1a3f166310478b53a08}{Edit\+Type}} \{ \mbox{\hyperlink{namespacetesting_1_1internal_1_1edit__distance_ad46aa6da12aec1a3f166310478b53a08a7bdb9c74613a94f21b7489e0b5640a63}{k\+Match}},
  7. \mbox{\hyperlink{namespacetesting_1_1internal_1_1edit__distance_ad46aa6da12aec1a3f166310478b53a08a63400b073f5b311a87d568b5ae27ffe8}{k\+Add}},
  8. \mbox{\hyperlink{namespacetesting_1_1internal_1_1edit__distance_ad46aa6da12aec1a3f166310478b53a08a814768ef6cd0264a0a10b1e701a63e78}{k\+Remove}},
  9. \mbox{\hyperlink{namespacetesting_1_1internal_1_1edit__distance_ad46aa6da12aec1a3f166310478b53a08afdbf30ecf9f32f60c646a34a358615f2}{k\+Replace}}
  10. \}
  11. \end{DoxyCompactItemize}
  12. \subsection*{Functions}
  13. \begin{DoxyCompactItemize}
  14. \item
  15. \mbox{\hyperlink{gtest_8h_aa73be6f0ba4a7456180a94904ce17790}{G\+T\+E\+S\+T\+\_\+\+A\+P\+I\+\_\+}} std\+::vector$<$ \mbox{\hyperlink{namespacetesting_1_1internal_1_1edit__distance_ad46aa6da12aec1a3f166310478b53a08}{Edit\+Type}} $>$ \mbox{\hyperlink{namespacetesting_1_1internal_1_1edit__distance_ad28f23b77f716200bc6644bfc7413a63}{Calculate\+Optimal\+Edits}} (const std\+::vector$<$ size\+\_\+t $>$ \&left, const std\+::vector$<$ size\+\_\+t $>$ \&right)
  16. \item
  17. \mbox{\hyperlink{gtest_8h_aa73be6f0ba4a7456180a94904ce17790}{G\+T\+E\+S\+T\+\_\+\+A\+P\+I\+\_\+}} std\+::vector$<$ \mbox{\hyperlink{namespacetesting_1_1internal_1_1edit__distance_ad46aa6da12aec1a3f166310478b53a08}{Edit\+Type}} $>$ \mbox{\hyperlink{namespacetesting_1_1internal_1_1edit__distance_ad2258c5c811f8f262335f58641b33544}{Calculate\+Optimal\+Edits}} (const std\+::vector$<$ std\+::string $>$ \&left, const std\+::vector$<$ std\+::string $>$ \&right)
  18. \item
  19. \mbox{\hyperlink{gtest_8h_aa73be6f0ba4a7456180a94904ce17790}{G\+T\+E\+S\+T\+\_\+\+A\+P\+I\+\_\+}} std\+::string \mbox{\hyperlink{namespacetesting_1_1internal_1_1edit__distance_a48cffebc6d3169ad1df7849b5f7fb5ff}{Create\+Unified\+Diff}} (const std\+::vector$<$ std\+::string $>$ \&left, const std\+::vector$<$ std\+::string $>$ \&right, size\+\_\+t context=2)
  20. \end{DoxyCompactItemize}
  21. \subsection{Enumeration Type Documentation}
  22. \mbox{\Hypertarget{namespacetesting_1_1internal_1_1edit__distance_ad46aa6da12aec1a3f166310478b53a08}\label{namespacetesting_1_1internal_1_1edit__distance_ad46aa6da12aec1a3f166310478b53a08}}
  23. \index{testing\+::internal\+::edit\+\_\+distance@{testing\+::internal\+::edit\+\_\+distance}!Edit\+Type@{Edit\+Type}}
  24. \index{Edit\+Type@{Edit\+Type}!testing\+::internal\+::edit\+\_\+distance@{testing\+::internal\+::edit\+\_\+distance}}
  25. \subsubsection{\texorpdfstring{Edit\+Type}{EditType}}
  26. {\footnotesize\ttfamily enum \mbox{\hyperlink{namespacetesting_1_1internal_1_1edit__distance_ad46aa6da12aec1a3f166310478b53a08}{testing\+::internal\+::edit\+\_\+distance\+::\+Edit\+Type}}}
  27. \begin{DoxyEnumFields}{Enumerator}
  28. \raisebox{\heightof{T}}[0pt][0pt]{\index{k\+Match@{k\+Match}!testing\+::internal\+::edit\+\_\+distance@{testing\+::internal\+::edit\+\_\+distance}}\index{testing\+::internal\+::edit\+\_\+distance@{testing\+::internal\+::edit\+\_\+distance}!k\+Match@{k\+Match}}}\mbox{\Hypertarget{namespacetesting_1_1internal_1_1edit__distance_ad46aa6da12aec1a3f166310478b53a08a7bdb9c74613a94f21b7489e0b5640a63}\label{namespacetesting_1_1internal_1_1edit__distance_ad46aa6da12aec1a3f166310478b53a08a7bdb9c74613a94f21b7489e0b5640a63}}
  29. k\+Match&\\
  30. \hline
  31. \raisebox{\heightof{T}}[0pt][0pt]{\index{k\+Add@{k\+Add}!testing\+::internal\+::edit\+\_\+distance@{testing\+::internal\+::edit\+\_\+distance}}\index{testing\+::internal\+::edit\+\_\+distance@{testing\+::internal\+::edit\+\_\+distance}!k\+Add@{k\+Add}}}\mbox{\Hypertarget{namespacetesting_1_1internal_1_1edit__distance_ad46aa6da12aec1a3f166310478b53a08a63400b073f5b311a87d568b5ae27ffe8}\label{namespacetesting_1_1internal_1_1edit__distance_ad46aa6da12aec1a3f166310478b53a08a63400b073f5b311a87d568b5ae27ffe8}}
  32. k\+Add&\\
  33. \hline
  34. \raisebox{\heightof{T}}[0pt][0pt]{\index{k\+Remove@{k\+Remove}!testing\+::internal\+::edit\+\_\+distance@{testing\+::internal\+::edit\+\_\+distance}}\index{testing\+::internal\+::edit\+\_\+distance@{testing\+::internal\+::edit\+\_\+distance}!k\+Remove@{k\+Remove}}}\mbox{\Hypertarget{namespacetesting_1_1internal_1_1edit__distance_ad46aa6da12aec1a3f166310478b53a08a814768ef6cd0264a0a10b1e701a63e78}\label{namespacetesting_1_1internal_1_1edit__distance_ad46aa6da12aec1a3f166310478b53a08a814768ef6cd0264a0a10b1e701a63e78}}
  35. k\+Remove&\\
  36. \hline
  37. \raisebox{\heightof{T}}[0pt][0pt]{\index{k\+Replace@{k\+Replace}!testing\+::internal\+::edit\+\_\+distance@{testing\+::internal\+::edit\+\_\+distance}}\index{testing\+::internal\+::edit\+\_\+distance@{testing\+::internal\+::edit\+\_\+distance}!k\+Replace@{k\+Replace}}}\mbox{\Hypertarget{namespacetesting_1_1internal_1_1edit__distance_ad46aa6da12aec1a3f166310478b53a08afdbf30ecf9f32f60c646a34a358615f2}\label{namespacetesting_1_1internal_1_1edit__distance_ad46aa6da12aec1a3f166310478b53a08afdbf30ecf9f32f60c646a34a358615f2}}
  38. k\+Replace&\\
  39. \hline
  40. \end{DoxyEnumFields}
  41. Definition at line 6605 of file gtest.\+h.
  42. \subsection{Function Documentation}
  43. \mbox{\Hypertarget{namespacetesting_1_1internal_1_1edit__distance_ad28f23b77f716200bc6644bfc7413a63}\label{namespacetesting_1_1internal_1_1edit__distance_ad28f23b77f716200bc6644bfc7413a63}}
  44. \index{testing\+::internal\+::edit\+\_\+distance@{testing\+::internal\+::edit\+\_\+distance}!Calculate\+Optimal\+Edits@{Calculate\+Optimal\+Edits}}
  45. \index{Calculate\+Optimal\+Edits@{Calculate\+Optimal\+Edits}!testing\+::internal\+::edit\+\_\+distance@{testing\+::internal\+::edit\+\_\+distance}}
  46. \subsubsection{\texorpdfstring{Calculate\+Optimal\+Edits()}{CalculateOptimalEdits()}\hspace{0.1cm}{\footnotesize\ttfamily [1/2]}}
  47. {\footnotesize\ttfamily \mbox{\hyperlink{gtest_8h_aa73be6f0ba4a7456180a94904ce17790}{G\+T\+E\+S\+T\+\_\+\+A\+P\+I\+\_\+}} std\+::vector$<$\mbox{\hyperlink{namespacetesting_1_1internal_1_1edit__distance_ad46aa6da12aec1a3f166310478b53a08}{Edit\+Type}}$>$ testing\+::internal\+::edit\+\_\+distance\+::\+Calculate\+Optimal\+Edits (\begin{DoxyParamCaption}\item[{const std\+::vector$<$ size\+\_\+t $>$ \&}]{left, }\item[{const std\+::vector$<$ size\+\_\+t $>$ \&}]{right }\end{DoxyParamCaption})}
  48. \mbox{\Hypertarget{namespacetesting_1_1internal_1_1edit__distance_ad2258c5c811f8f262335f58641b33544}\label{namespacetesting_1_1internal_1_1edit__distance_ad2258c5c811f8f262335f58641b33544}}
  49. \index{testing\+::internal\+::edit\+\_\+distance@{testing\+::internal\+::edit\+\_\+distance}!Calculate\+Optimal\+Edits@{Calculate\+Optimal\+Edits}}
  50. \index{Calculate\+Optimal\+Edits@{Calculate\+Optimal\+Edits}!testing\+::internal\+::edit\+\_\+distance@{testing\+::internal\+::edit\+\_\+distance}}
  51. \subsubsection{\texorpdfstring{Calculate\+Optimal\+Edits()}{CalculateOptimalEdits()}\hspace{0.1cm}{\footnotesize\ttfamily [2/2]}}
  52. {\footnotesize\ttfamily \mbox{\hyperlink{gtest_8h_aa73be6f0ba4a7456180a94904ce17790}{G\+T\+E\+S\+T\+\_\+\+A\+P\+I\+\_\+}} std\+::vector$<$\mbox{\hyperlink{namespacetesting_1_1internal_1_1edit__distance_ad46aa6da12aec1a3f166310478b53a08}{Edit\+Type}}$>$ testing\+::internal\+::edit\+\_\+distance\+::\+Calculate\+Optimal\+Edits (\begin{DoxyParamCaption}\item[{const std\+::vector$<$ std\+::string $>$ \&}]{left, }\item[{const std\+::vector$<$ std\+::string $>$ \&}]{right }\end{DoxyParamCaption})}
  53. \mbox{\Hypertarget{namespacetesting_1_1internal_1_1edit__distance_a48cffebc6d3169ad1df7849b5f7fb5ff}\label{namespacetesting_1_1internal_1_1edit__distance_a48cffebc6d3169ad1df7849b5f7fb5ff}}
  54. \index{testing\+::internal\+::edit\+\_\+distance@{testing\+::internal\+::edit\+\_\+distance}!Create\+Unified\+Diff@{Create\+Unified\+Diff}}
  55. \index{Create\+Unified\+Diff@{Create\+Unified\+Diff}!testing\+::internal\+::edit\+\_\+distance@{testing\+::internal\+::edit\+\_\+distance}}
  56. \subsubsection{\texorpdfstring{Create\+Unified\+Diff()}{CreateUnifiedDiff()}}
  57. {\footnotesize\ttfamily \mbox{\hyperlink{gtest_8h_aa73be6f0ba4a7456180a94904ce17790}{G\+T\+E\+S\+T\+\_\+\+A\+P\+I\+\_\+}} std\+::string testing\+::internal\+::edit\+\_\+distance\+::\+Create\+Unified\+Diff (\begin{DoxyParamCaption}\item[{const std\+::vector$<$ std\+::string $>$ \&}]{left, }\item[{const std\+::vector$<$ std\+::string $>$ \&}]{right, }\item[{size\+\_\+t}]{context = {\ttfamily 2} }\end{DoxyParamCaption})}