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
5namespace z {
6namespace math {
24template <encoding E>
25int levenschtein(const z::core::string<E> &word1, const z::core::string<E> &word2, int max = 16) noexcept;
26} // namespace math
27} // namespace z
A wrapper for std::vector.
Definition array.hpp:72
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.