Qt
Internal/Contributor docs for the Qt SDK. Note: These are NOT official API docs; those are found at https://doc.qt.io/
Loading...
Searching...
No Matches
StringSimilarityMatcher Class Reference

#include <simtexth.h>

+ Collaboration diagram for StringSimilarityMatcher:

Public Member Functions

 StringSimilarityMatcher (const QString &stringToMatch)
 
int getSimilarityScore (const QString &strCandidate)
 

Detailed Description

This class is more efficient for searching through a large array of candidate strings, since we only have to construct the CoMatrix for the stringToMatch once, after that we just call getSimilarityScore(strCandidate).

See also
getSimilarityScore

Definition at line 60 of file simtexth.h.

Constructor & Destructor Documentation

◆ StringSimilarityMatcher()

StringSimilarityMatcher::StringSimilarityMatcher ( const QString & stringToMatch)

Definition at line 146 of file simtexth.cpp.

Member Function Documentation

◆ getSimilarityScore()

int StringSimilarityMatcher::getSimilarityScore ( const QString & strCandidate)

Definition at line 152 of file simtexth.cpp.

References intersection(), reunion(), and worth().

+ Here is the call graph for this function:

The documentation for this class was generated from the following files: