![]() |
Qt 6.x
The Qt SDK
|
The QMimeGlobPattern class contains the glob pattern for file names for MIME type matching. More...
#include <qmimeglobpattern_p.h>
Public Member Functions | |
QMimeGlobPattern (const QString &thePattern, const QString &theMimeType, unsigned theWeight=DefaultWeight, Qt::CaseSensitivity s=Qt::CaseInsensitive) | |
void | swap (QMimeGlobPattern &other) noexcept |
bool | matchFileName (const QString &inputFileName) const |
const QString & | pattern () const |
unsigned | weight () const |
const QString & | mimeType () const |
bool | isCaseSensitive () const |
Static Public Attributes | |
static const unsigned | MaxWeight = 100 |
static const unsigned | DefaultWeight = 50 |
static const unsigned | MinWeight = 1 |
The QMimeGlobPattern class contains the glob pattern for file names for MIME type matching.
\inmodule QtCore
Definition at line 39 of file qmimeglobpattern_p.h.
|
inlineexplicit |
Definition at line 46 of file qmimeglobpattern_p.h.
|
inline |
Definition at line 69 of file qmimeglobpattern_p.h.
References Qt::CaseSensitive.
Referenced by QMimeAllGlobPatterns::addGlob().
bool QMimeGlobPattern::matchFileName | ( | const QString & | inputFileName | ) | const |
Definition at line 104 of file qmimeglobpattern.cpp.
References c2, Qt::CaseInsensitive, fileName, QRegularExpression::fromWildcard(), QChar::isDigit(), rx(), QString::size(), QString::toLower(), and QString::unicode().
|
inline |
Definition at line 68 of file qmimeglobpattern_p.h.
Referenced by QMimeAllGlobPatterns::addGlob().
|
inline |
Definition at line 66 of file qmimeglobpattern_p.h.
Referenced by QMimeAllGlobPatterns::addGlob().
|
inlinenoexcept |
Definition at line 55 of file qmimeglobpattern_p.h.
References other(), and qSwap().
|
inline |
Definition at line 67 of file qmimeglobpattern_p.h.
Referenced by QMimeAllGlobPatterns::addGlob().
|
static |
Definition at line 43 of file qmimeglobpattern_p.h.
Referenced by QMimeTypeParserBase::parse().
|
static |
Definition at line 42 of file qmimeglobpattern_p.h.
|
static |
Definition at line 44 of file qmimeglobpattern_p.h.