diff options
Diffstat (limited to 'include')
| -rw-r--r-- | include/anope.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/include/anope.h b/include/anope.h index 6031dceac..1a01db189 100644 --- a/include/anope.h +++ b/include/anope.h @@ -557,6 +557,12 @@ namespace Anope * @param len The length of the string returned */ extern CoreExport Anope::string Random(size_t len); + + /** Calculates the levenshtein distance between two strings. + * @param s1 The first string. + * @param s2 The second string. + */ + extern CoreExport size_t Distance(const Anope::string &s1, const Anope::string &s2); } /** sepstream allows for splitting token separated lists. |
