|
KanoopCommonQt 2.1.1
Kanoop foundational Qt utility library
|
|
Implements the Levenshtein algorithm to determine the distance between two strings. More...
#include <stringutil.h>
Public Member Functions | |
| Levenshtein (const QString &s1, const QString &s2) | |
| Construct a Levenshtein calculator and compute the distance. | |
| int | distance () const |
| Return the computed Levenshtein distance. | |
Implements the Levenshtein algorithm to determine the distance between two strings.
Definition at line 256 of file stringutil.h.
| StringUtil::Levenshtein::Levenshtein | ( | const QString & | s1, |
| const QString & | s2 | ||
| ) |
Construct a Levenshtein calculator and compute the distance.
| s1 | First string |
| s2 | Second string |
|
inline |
Return the computed Levenshtein distance.
Definition at line 270 of file stringutil.h.