GrPPI  1.0
Generic and Reusable Parallel Pattern Interface
Enumerations | Functions
testing::internal::edit_distance Namespace Reference

Enumerations

enum  EditType {
  kMatch , kAdd , kRemove , kReplace ,
  kMatch , kAdd , kRemove , kReplace
}
 
enum  EditType {
  kMatch , kAdd , kRemove , kReplace ,
  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

◆ EditType [1/2]

Enumerator
kMatch 
kAdd 
kRemove 
kReplace 
kMatch 
kAdd 
kRemove 
kReplace 

◆ EditType [2/2]

Enumerator
kMatch 
kAdd 
kRemove 
kReplace 
kMatch 
kAdd 
kRemove 
kReplace 

Function Documentation

◆ CalculateOptimalEdits() [1/2]

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

◆ CalculateOptimalEdits() [2/2]

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

◆ CreateUnifiedDiff()

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