libzed
1.9.9
A general-purpose library for quick and simple data manipulation.
Loading...
Searching...
No Matches
levenschtein.hpp
1
#pragma once
2
3
#include "../core/string.hpp"
4
5
namespace
z {
6
namespace
math {
24
template
<encoding E>
25
int
levenschtein
(
const
z::core::string<E>
&word1,
const
z::core::string<E>
&word2,
int
max = 16) noexcept;
26
}
// namespace math
27
}
// namespace z
z::core::array
A wrapper for std::vector.
Definition
array.hpp:72
z::math::levenschtein
int levenschtein(const z::core::string< E > &word1, const z::core::string< E > &word2, int max=16) noexcept
Computes the Levenshtein distance between two strings with an optional maximum threshold.
z
math
levenschtein.hpp
Generated by
1.9.8