LeechCraft 0.6.70-14794-g33744ae6ce
Modular cross-platform feature rich live environment.
Loading...
Searching...
No Matches
regexp.h
Go to the documentation of this file.
1/**********************************************************************
2 * LeechCraft - modular cross-platform feature rich internet client.
3 * Copyright (C) 2006-2014 Georg Rudoy
4 *
5 * Distributed under the Boost Software License, Version 1.0.
6 * (See accompanying file LICENSE or copy at https://www.boost.org/LICENSE_1_0.txt)
7 **********************************************************************/
8
9#pragma once
10
11#include "sllconfig.h"
12#include <memory>
13#include <QString>
14#include <QMetaType>
15
16namespace LC
17{
18namespace Util
19{
20 struct RegExpImpl;
21
23 {
24 std::shared_ptr<RegExpImpl> Impl_;
25 public:
26 static bool IsFast ();
27
28 RegExp () = default;
29 RegExp (const QString&, Qt::CaseSensitivity);
30
31 bool Matches (const QString&) const;
32 bool Matches (const QByteArray&) const;
33
34 QString GetPattern () const;
35 Qt::CaseSensitivity GetCaseSensitivity () const;
36 };
37}
38}
39
40UTIL_SLL_API QDataStream& operator<< (QDataStream&, const LC::Util::RegExp&);
41UTIL_SLL_API QDataStream& operator>> (QDataStream&, LC::Util::RegExp&);
42
RegExp()=default
Definition: constants.h:15
UTIL_SLL_API QDataStream & operator>>(QDataStream &, LC::Util::RegExp &)
Definition: regexp.cpp:226
UTIL_SLL_API QDataStream & operator<<(QDataStream &, const LC::Util::RegExp &)
Definition: regexp.cpp:218
#define UTIL_SLL_API
Definition: sllconfig.h:16
Q_DECLARE_METATYPE(QVariantList *)