forked from Alepha/Alepha
String distance algorithms.
This commit is contained in:
26
Algorithm/string_distance.h
Normal file
26
Algorithm/string_distance.h
Normal file
@ -0,0 +1,26 @@
|
||||
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;
|
||||
}
|
||||
Reference in New Issue
Block a user