Function damerau_levenshtein_distance

Synopsis

#include "breeze/metric/damerau_levenshtein_distance.hpp"

std::ptrdiff_t damerau_levenshtein_distance(std::string const &first, std::string const &second)

Description

Returns
The Damerau-Levenshtein distance between first and second.
Precondition
The lengths of first and second are both less than PTRDIFF_MAX.

Source

Line 33 in breeze/metric/damerau_levenshtein_distance.hpp.