Class sh::search::criteria::FilenameSearchCriterion¶
-
class
sh::search::criteria
::
FilenameSearchCriterion
: public sh::search::criteria::AbstractStringSearchCriterion¶ Search criterion filtering by file names.
Public Types
Public Functions
Checks if a given file (by eurl) matches this criterion. .
-
QString
valuedescription
()¶ Returns a human readable text describing the current criterion shortly and precisely. .
-
QString
serialize
()¶ Serializes this criterion to a string. See also SearchCriterion::deserialize.
-
std::shared_ptr<sh::search::SearchCriterionFactory>
factory
()¶ Returns the factory this criterion has created (provides some more metadata).
Public Static Functions
-
void
doInitialize
()¶
-
void
doShutdown
()¶
-
int
levenshteinSubstringDistance
(QString needle, QString haystack)¶
-
double
relativeLevenshteinPartsSubstringDistance
(QString needle, QString haystack)¶
-
std::shared_ptr<sh::search::SearchCriterion>
deserialize
(QString s)¶ Deserializes this criterion from a string. See also SearchCriterion::serialize.
Public Static Attributes
-
const QStringList
ModeCodes
¶