10#include "dkimauthenticationstatusinfoutil.h"
16QString MessageViewer::DKIMAuthenticationStatusInfoUtil::wsp_p()
19 return QStringLiteral(
"[ \t]");
22QString MessageViewer::DKIMAuthenticationStatusInfoUtil::vchar_p()
25 return QStringLiteral(
"[!-~]");
28QString MessageViewer::DKIMAuthenticationStatusInfoUtil::letDig_p()
31 return QStringLiteral(
"[A-Za-z0-9]");
34QString MessageViewer::DKIMAuthenticationStatusInfoUtil::ldhStr_p()
37 return QStringLiteral(
"(?:[A-Za-z0-9-]*%1)").
arg(DKIMAuthenticationStatusInfoUtil::letDig_p());
40QString MessageViewer::DKIMAuthenticationStatusInfoUtil::keyword_p()
43 return DKIMAuthenticationStatusInfoUtil::ldhStr_p();
46QString MessageViewer::DKIMAuthenticationStatusInfoUtil::subDomain_p()
49 return QStringLiteral(
"(?:%1%2?)").
arg(DKIMAuthenticationStatusInfoUtil::letDig_p(), DKIMAuthenticationStatusInfoUtil::ldhStr_p());
52QString MessageViewer::DKIMAuthenticationStatusInfoUtil::obsFws_p()
55 return QStringLiteral(
"(?:%1+(?:\r\n%1+)*)").
arg(DKIMAuthenticationStatusInfoUtil::wsp_p());
58QString MessageViewer::DKIMAuthenticationStatusInfoUtil::quotedPair_p()
62 return QStringLiteral(
"(?:\\\\(?:%1|%2))").
arg(vchar_p(), wsp_p());
65QString MessageViewer::DKIMAuthenticationStatusInfoUtil::fws_p()
68 return QStringLiteral(
"(?:(?:(?:%1*\r\n)?%1+)|%2)").
arg(wsp_p(), obsFws_p());
71QString MessageViewer::DKIMAuthenticationStatusInfoUtil::fws_op()
73 return QStringLiteral(
"%1?").
arg(fws_p());
76QString MessageViewer::DKIMAuthenticationStatusInfoUtil::ctext_p()
79 return QStringLiteral(
"[!-'*-[\\]-~]");
82QString MessageViewer::DKIMAuthenticationStatusInfoUtil::ccontent_p()
86 return QStringLiteral(
"(?:%1|%2)").
arg(ctext_p(), quotedPair_p());
89QString MessageViewer::DKIMAuthenticationStatusInfoUtil::comment_p()
92 return QStringLiteral(
"\\((?:%1%2)*%1\\)").
arg(fws_op(), ccontent_p());
95QString MessageViewer::DKIMAuthenticationStatusInfoUtil::cfws_p()
98 return QStringLiteral(
"(?:(?:(?:%1%2)+%1)|%3)").
arg(fws_op(), comment_p(), fws_p());
101QString MessageViewer::DKIMAuthenticationStatusInfoUtil::cfws_op()
103 return QStringLiteral(
"%1?").
arg(cfws_p());
106QString MessageViewer::DKIMAuthenticationStatusInfoUtil::atext()
109 return QStringLiteral(
"[!#-'*-+/-9=?A-Z^-~-]");
112QString MessageViewer::DKIMAuthenticationStatusInfoUtil::dotAtomText_p()
115 return QStringLiteral(
"(?:%1+(?:\\.%1+)*)").
arg(atext());
118QString MessageViewer::DKIMAuthenticationStatusInfoUtil::dotAtom_p()
122 return QStringLiteral(
"(?:%1%2%1)").
arg(cfws_op(), dotAtomText_p());
125QString MessageViewer::DKIMAuthenticationStatusInfoUtil::qtext_p()
129 return QStringLiteral(
"[!#-[\\]-~]");
132QString MessageViewer::DKIMAuthenticationStatusInfoUtil::qcontent_p()
135 return QStringLiteral(
"(?:%1|%2)").
arg(qtext_p(), quotedPair_p());
138QString MessageViewer::DKIMAuthenticationStatusInfoUtil::quotedString_p()
141 return QStringLiteral(
"(?:%1\"(?:%2%3)*%2\"%1)").
arg(cfws_op(), fws_op(), qcontent_p());
144QString MessageViewer::DKIMAuthenticationStatusInfoUtil::quotedString_cp()
146 return QStringLiteral(
"(?:%1\"((?:%2%3)*)%2\"%1)").
arg(cfws_op(), fws_op(), qcontent_p());
149QString MessageViewer::DKIMAuthenticationStatusInfoUtil::localPart_p()
153 return QStringLiteral(
"(?:%1|%2))").
arg(dotAtom_p(), quotedString_p());
156QString MessageViewer::DKIMAuthenticationStatusInfoUtil::token_p()
159 return QStringLiteral(
"[^ \\x00-\\x1F\\x7F()<>@,;:\\\\\"/[\\]?=]+");
162QString MessageViewer::DKIMAuthenticationStatusInfoUtil::value_p()
165 return QStringLiteral(
"(?:%1|%2)").
arg(token_p(), quotedString_p());
168QString MessageViewer::DKIMAuthenticationStatusInfoUtil::value_cp()
170 return QStringLiteral(
"(?:(%1)|%2)").
arg(token_p(), quotedString_cp());
173QString MessageViewer::DKIMAuthenticationStatusInfoUtil::domainName_p()
176 return QStringLiteral(
"(?:%1(?:\\.%1)+)").
arg(subDomain_p());
183QString MessageViewer::DKIMAuthenticationStatusInfoUtil::regexMatchO(
const QString ®ularExpressionStr)
185 const QString regexp = (
QLatin1Char(
'^') + DKIMAuthenticationStatusInfoUtil::cfws_op() + QStringLiteral(
"(?:") + regularExpressionStr +
QLatin1Char(
')')
186 + QStringLiteral(
"(?:(?:") + DKIMAuthenticationStatusInfoUtil::cfws_op() + QStringLiteral(
"\r\n$)|(?=;)|(?=")
187 + DKIMAuthenticationStatusInfoUtil::cfws_p() + QStringLiteral(
"))"));
QString arg(Args &&... args) const const