* @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. */
| 30 | * multiple patterns separated by spaces or semicolons. |
| 31 | */ |
| 32 | inline 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 |