Sacado Package Browser (Single Doxygen Collection)  Version of the Day
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
Enumerations | Functions
testing::internal::edit_distance Namespace Reference

Enumerations

enum  EditType { kMatch, kAdd, kRemove, kReplace }
 

Functions

GTEST_API_ std::vector< EditTypeCalculateOptimalEdits (const std::vector< size_t > &left, const std::vector< size_t > &right)
 
GTEST_API_ std::vector< EditTypeCalculateOptimalEdits (const std::vector< std::string > &left, const std::vector< std::string > &right)
 
GTEST_API_ std::string CreateUnifiedDiff (const std::vector< std::string > &left, const std::vector< std::string > &right, size_t context=2)
 

Enumeration Type Documentation

Enumerator
kMatch 
kAdd 
kRemove 
kReplace 

Definition at line 168 of file gtest-internal.h.

Function Documentation

std::vector< EditType > testing::internal::edit_distance::CalculateOptimalEdits ( const std::vector< size_t > &  left,
const std::vector< size_t > &  right 
)

Definition at line 1213 of file gtest.cc.

std::vector< EditType > testing::internal::edit_distance::CalculateOptimalEdits ( const std::vector< std::string > &  left,
const std::vector< std::string > &  right 
)

Definition at line 1289 of file gtest.cc.

std::string testing::internal::edit_distance::CreateUnifiedDiff ( const std::vector< std::string > &  left,
const std::vector< std::string > &  right,
size_t  context = 2 
)

Definition at line 1388 of file gtest.cc.