Librería★ 5actualizado abr 2019MITPawnsampctlArchivado
Abrir en GitHubEl autor archivó este repositorio, así que ya no se mantiene.
Instalar con sampctl
sampctl package install Southclaws/pawn-levenshtein
Ejecútalo en la carpeta de tu proyecto. sampctl descarga el paquete y sus dependencias.
Depende de 1 paquete
- southclaws/samp-stdlibno está en este directorio
README.md
levenshtein.inc
https://en.wikipedia.org/wiki/Levenshtein_distance
Usage
Simply add to your pawn.json and include:
{
"dependencies": ["ScavengeSurvive/levenshtein"]
}
The function levenshtein simply takes two strings and returns a score that indicates the difference.
#include <levenshtein>
main() {
new difference = levenshtein("these strings are similar, but not the same", "these strings ar similar, but no the same");
printf("%d", difference);
}
Testing
To test, simply run the package:
sampctl package run
Then connect to localhost:7777.
Esta página se genera con lo que GitHub publica sobre el repositorio. samp.directory no aloja el código. Informar de un problema con esta ficha