1/*
2 This file is part of the KDE Baloo project.
3 SPDX-FileCopyrightText: 2010 Sebastian Trueg <trueg@kde.org>
4
5 SPDX-License-Identifier: LGPL-2.1-only OR LGPL-3.0-only OR LicenseRef-KDE-Accepted-LGPL
6*/
7
8#ifndef REGEXP_CACHE_H_
9#define REGEXP_CACHE_H_
10
11#include <QList>
12#include <QSet>
13#include <QRegularExpression>
14
15class RegExpCache
16{
17public:
18 RegExpCache();
19 ~RegExpCache();
20
21 bool exactMatch(const QString& s) const;
22
23 void rebuildCacheFromFilterList(const QStringList& filters);
24
25private:
26 QList<QRegularExpression> m_regexpCache;
27 QSet<QString> m_exactMatches;
28};
29
30#endif
31

source code of baloo/src/file/regexpcache.h