Library★ 5updated Apr 2019MITPawnsampctlArchived
Open on GitHubThe author has archived this repository, so it is no longer maintained.
Install with sampctl
sampctl package install Southclaws/pawn-levenshtein
Run this in your project folder. sampctl downloads the package and what it depends on.
Try it in the Pawn compiler →
Adds its include files, with the libraries it depends on, to the Pawn compiler in your browser, ready to include in a script.
Depends on 1 package
- southclaws/samp-stdlibnot in this directory
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.
This page is built from what GitHub publishes about the repository. samp.directory does not host the code. Report a problem with this listing