LeechCraft
0.6.70-15082-g543737046d
Modular cross-platform feature rich live environment.
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
16
namespace
LC
17
{
18
namespace
Util
19
{
20
struct
RegExpImpl;
21
22
class
UTIL_SLL_API
RegExp
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
40
UTIL_SLL_API
QDataStream&
operator<<
(QDataStream&,
const
LC::Util::RegExp
&);
41
UTIL_SLL_API
QDataStream&
operator>>
(QDataStream&,
LC::Util::RegExp
&);
42
43
Q_DECLARE_METATYPE
(
LC::Util::RegExp
)
sllconfig.h
UTIL_SLL_API
#define UTIL_SLL_API
Definition:
sllconfig.h:16
operator>>
UTIL_SLL_API QDataStream & operator>>(QDataStream &, LC::Util::RegExp &)
Definition:
regexp.cpp:226
LC::Util::RegExp
Definition:
regexp.h:34
operator<<
UTIL_SLL_API QDataStream & operator<<(QDataStream &, const LC::Util::RegExp &)
Definition:
regexp.cpp:218
Q_DECLARE_METATYPE
Q_DECLARE_METATYPE(QVariantList *)
LC
Definition:
constants.h:14
src
util
sll
regexp.h
Generated by
1.8.17