forked from Alepha/Alepha
27 lines
602 B
C++
27 lines
602 B
C++
static_assert( __cplusplus > 2020'99 );
|
|
|
|
#pragma once
|
|
|
|
#include <Alepha/Alepha.h>
|
|
|
|
#include <cstddef>
|
|
|
|
#include <string_view>
|
|
|
|
namespace Alepha::Hydrogen::Algorithm ::detail:: string_distance_m
|
|
{
|
|
inline namespace exports
|
|
{
|
|
// Doesn't handle transpositions...
|
|
std::size_t rewriteStringDistance( std::string_view a, std::string_view b );
|
|
|
|
// Does handle transpositions...
|
|
std::size_t optimalStringDistance( std::string_view a, std::string_view b );
|
|
}
|
|
}
|
|
|
|
namespace Alepha::Hydrogen::Algorithm::inline exports::inline string_distance_m
|
|
{
|
|
using namespace detail::string_distance_m::exports;
|
|
}
|