Baloo

regexpcache.h
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
This file is part of the KDE documentation.
Documentation copyright © 1996-2024 The KDE developers.
Generated on Fri Jun 14 2024 11:53:02 by doxygen 1.10.0 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.