MCPcopy Create free account
hub / github.com/KDE/kdevelop / matchSinglePattern

Function matchSinglePattern

kdevplatform/util/wildcardhelpers.h:32–36  ·  view source on GitHub ↗

* @note Unlike the QDir::match() overload with the same signature, this * function treats its first argument as a single pattern, not a filter with * multiple patterns separated by spaces or semicolons. */

Source from the content-addressed store, hash-verified

30 * multiple patterns separated by spaces or semicolons.
31 */
32inline bool matchSinglePattern(const QString& pattern, const QString& fileName)
33{
34 QRegExp rx(pattern, Qt::CaseInsensitive, QRegExp::Wildcard);
35 return rx.exactMatch(fileName);
36}
37
38/**
39 * @brief Works exactly as the QDir::match() overload with the same signature

Callers 2

matchFunction · 0.85
applyMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected