Biblioteka★ 5zaktualizowano kwi 2019MITPawnsampctlZarchiwizowane
Otwórz na GitHubieAutor zarchiwizował to repozytorium, więc nie jest już rozwijane.
Zainstaluj za pomocą sampctl
sampctl package install Southclaws/pawn-levenshtein
Uruchom to w folderze swojego projektu. sampctl pobiera pakiet i to, od czego zależy.
Wypróbuj w kompilatorze Pawn →
Dodaje jej pliki include, razem z bibliotekami, od których zależy, do kompilatora Pawn w twojej przeglądarce, gotowe do dołączenia w skrypcie.
Zależy od 1 pakietu
- southclaws/samp-stdlibnie ma go w tym katalogu
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.
Ta strona jest zbudowana z tego, co GitHub publikuje o repozytorium. samp.directory nie hostuje kodu. Zgłoś problem z tym wpisem