![]() |
Qt
Internal/Contributor docs for the Qt SDK. Note: These are NOT official API docs; those are found at https://doc.qt.io/
|
#include <QString>
#include <QList>
Go to the source code of this file.
Classes | |
struct | Candidate |
struct | CoMatrix |
class | StringSimilarityMatcher |
Typedefs | |
typedef QList< Candidate > | CandidateList |
Functions | |
bool | operator== (const Candidate &c, const Candidate &d) |
bool | operator!= (const Candidate &c, const Candidate &d) |
static int | getSimilarityScore (const QString &str1, const QString &str2) |
CandidateList | similarTextHeuristicCandidates (const Translator *tor, const QString &text, int maxCandidates) |
Variables | |
const int | textSimilarityThreshold = 190 |
typedef QList<Candidate> CandidateList |
Definition at line 37 of file simtexth.h.
Checks how similar two strings are. The return value is the score, and a higher score is more similar than one with a low score. Linguist considers a score over 190 to be a good match.
Definition at line 77 of file simtexth.h.
Definition at line 33 of file simtexth.h.
References operator==().
Definition at line 29 of file simtexth.h.
Referenced by operator!=().
CandidateList similarTextHeuristicCandidates | ( | const Translator * | tor, |
const QString & | text, | ||
int | maxCandidates ) |
Definition at line 161 of file simtexth.cpp.
const int textSimilarityThreshold = 190 |
Definition at line 7 of file simtexth.h.