![]() |
Qt
Internal/Contributor docs for the Qt SDK. Note: These are NOT official API docs; those are found at https://doc.qt.io/
|
#include "editdistance.h"Go to the source code of this file.
Macros | |
| #define | D(i, j) |
Functions | |
| QT_BEGIN_NAMESPACE int | editDistance (const QString &s, const QString &t) |
| QString | nearestName (const QString &actual, const QSet< QString > &candidates) |
| QString | suggestName (const QString &str, const QSet< QString > &commandSet, const QSet< QString > &excludeSet) |
| Returns a suggestion for the closest match to str in the given commandSet. | |
| #define D | ( | i, | |
| j ) |
| QT_BEGIN_NAMESPACE int editDistance | ( | const QString & | s, |
| const QString & | t ) |
Definition at line 8 of file editdistance.cpp.
Definition at line 40 of file editdistance.cpp.
| QString suggestName | ( | const QString & | str, |
| const QSet< QString > & | commandSet, | ||
| const QSet< QString > & | excludeSet ) |
Returns a suggestion for the closest match to str in the given commandSet.
If no closest match is found, or if it is in the supplied excludeSet containing matches to avoid, returns an empty string.
Definition at line 73 of file editdistance.cpp.