summary refs log tree commit diff
path: root/include/Utils.h
diff options
context:
space:
mode:
authorKonstantinos Sideris <sideris.konstantin@gmail.com>2018-03-24 23:16:15 +0200
committerKonstantinos Sideris <sideris.konstantin@gmail.com>2018-03-24 23:16:15 +0200
commit553a97c8bb5042fbef0487255af52a4a6793d0fd (patch)
tree637a38c762fa6847c16cc9245a795c69314941f6 /include/Utils.h
parentAdjust version number for the windows build (diff)
downloadnheko-553a97c8bb5042fbef0487255af52a4a6793d0fd.tar.xz
Add basic support for username auto-completion
fixes #40
Diffstat (limited to 'include/Utils.h')
-rw-r--r--include/Utils.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/include/Utils.h b/include/Utils.h

index fba9bf67..cbecb4ac 100644 --- a/include/Utils.h +++ b/include/Utils.h
@@ -54,4 +54,8 @@ scaleDown(uint64_t max_width, uint64_t max_height, const ImageType &source) return source.scaled( final_width, final_height, Qt::IgnoreAspectRatio, Qt::SmoothTransformation); } + +//! Calculate the Levenshtein distance between two strings with character skipping. +int +levenshtein_distance(const std::string &s1, const std::string &s2); }