Baloo

regexpcache.h
1 /*
2  This file is part of the KDE Baloo project.
3  SPDX-FileCopyrightText: 2010 Sebastian Trueg <[email protected]>
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 
15 class RegExpCache
16 {
17 public:
18  RegExpCache();
19  ~RegExpCache();
20 
21  bool exactMatch(const QString& s) const;
22 
23  void rebuildCacheFromFilterList(const QStringList& filters);
24 
25 private:
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-2023 The KDE developers.
Generated on Wed Nov 29 2023 03:56:26 by doxygen 1.8.17 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.