17 struct RegExpRegisterGuard
19 RegExpRegisterGuard ()
21 qRegisterMetaType<RegExp> (
"Util::RegExp");
34 if (cs == Qt::CaseInsensitive)
35 Rx_.setPatternOptions (QRegularExpression::CaseInsensitiveOption);
40 return Rx_.match (str).hasMatch ();
45 return Rx_.match (ba).hasMatch ();
50 return Rx_.pattern ();
55 return Rx_.patternOptions () & QRegularExpression::CaseInsensitiveOption ?
63 out << static_cast<quint8> (1);
75 qWarning () << Q_FUNC_INFO
QString GetPattern() const
Qt::CaseSensitivity GetCaseSensitivity() const
bool Matches(const QString &) const
QDebug operator<<(QDebug debug, const QDomDocument::ParseResult &result)
QDataStream & operator>>(QDataStream &in, LC::Util::RegExp &rx)