kleopatra
validation.cpp
Go to the documentation of this file.
48 static const QString email_rx = QLatin1String("[a-zA-Z0-9!#$%&'*+/=?^_`{|}~-]+(?:\\.[a-zA-Z0-9!#$%&'*+/=?^_`{|}~-]+)*@(?:[a-zA-Z0-9](?:[a-zA-Z0-9-]*[a-zA-Z0-9])?\\.)+[a-zA-Z0-9](?:[a-zA-Z0-9-]*[a-zA-Z0-9])?");
58 explicit EMailValidator( QObject * parent=0 ) : QValidator( parent ), rx( QRegExp( email_rx ) ) {}
76 const bool needsDotOrgAdded = !needsOrgAdded && ( dotIndex < 0 || dotIndex == domain.size() - 2 || domain.endsWith( QLatin1Char('-') ) );
QString fromAce(const QByteArray &domain)
int size() const
void chop(int n)
int lastIndexOf(QChar ch, int from, Qt::CaseSensitivity cs) const
QByteArray toAce(const QString &domain)
QValidator * pgpComment(QObject *parent=0)
Definition: validation.cpp:145
bool endsWith(const QString &s, Qt::CaseSensitivity cs) const
QString toLower() const
Definition: multivalidator.h:41
QString mid(int position, int n) const
QString left(int n) const
QString fromLatin1(const char *str, int size)
This file is part of the KDE documentation.
Documentation copyright © 1996-2020 The KDE developers.
Generated on Mon Jun 22 2020 13:33:11 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006
Documentation copyright © 1996-2020 The KDE developers.
Generated on Mon Jun 22 2020 13:33:11 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.