libzed 1.12.3
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 template class for character strings.
Definition string.hpp:62
This section contains math-related functions, constants, and datatypes.
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.