|
KanoopCommonQt 2.1.1
Kanoop foundational Qt utility library
|
|
Implements BITAP algorithm for fuzzy search. More...
#include <stringutil.h>
Public Member Functions | |
| Bitap (const QString &haystack, const QString &needle, int maxDistance=1) | |
| Construct a Bitap fuzzy search and compute the result. | |
| int | index () const |
| Return the index of the fuzzy match. | |
Implements BITAP algorithm for fuzzy search.
Definition at line 226 of file stringutil.h.
| StringUtil::Bitap::Bitap | ( | const QString & | haystack, |
| const QString & | needle, | ||
| int | maxDistance = 1 |
||
| ) |
Construct a Bitap fuzzy search and compute the result.
| haystack | String to search in |
| needle | Pattern to search for |
| maxDistance | Maximum allowed Levenshtein distance |
|
inline |
Return the index of the fuzzy match.
Definition at line 241 of file stringutil.h.