mirror of
https://github.com/HIllya51/LunaTranslator.git
synced 2025-01-13 23:53:54 +08:00
fix
This commit is contained in:
parent
15346b18a6
commit
fcb05dbcc4
@ -1,5 +1,4 @@
|
|||||||
|
|
||||||
#include <rapidfuzz/distance.hpp>
|
|
||||||
size_t lev_u_edit_distance(size_t len1, const wchar_t *string1,
|
size_t lev_u_edit_distance(size_t len1, const wchar_t *string1,
|
||||||
size_t len2, const wchar_t *string2,
|
size_t len2, const wchar_t *string2,
|
||||||
int xcost)
|
int xcost)
|
||||||
@ -157,6 +156,9 @@ size_t lev_u_edit_distance(size_t len1, const wchar_t *string1,
|
|||||||
free(row);
|
free(row);
|
||||||
return i;
|
return i;
|
||||||
}
|
}
|
||||||
|
#ifndef WINXP
|
||||||
|
#include <rapidfuzz/distance.hpp>
|
||||||
|
#endif
|
||||||
DECLARE_API size_t levenshtein_distance(size_t len1, const wchar_t *string1,
|
DECLARE_API size_t levenshtein_distance(size_t len1, const wchar_t *string1,
|
||||||
size_t len2, const wchar_t *string2)
|
size_t len2, const wchar_t *string2)
|
||||||
{
|
{
|
||||||
|
Loading…
x
Reference in New Issue
Block a user