[Bug 306456] Feature Request: Some help in using the RegExps in ReplyPrefixes/ForwardPrefixes
Laurent Montel
montel at kde.org
Sun Sep 9 11:27:11 BST 2012
https://bugs.kde.org/show_bug.cgi?id=306456
Laurent Montel <montel at kde.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |montel at kde.org
--- Comment #1 from Laurent Montel <montel at kde.org> ---
QString replacePrefixes( const QString& str, const QStringList &prefixRegExps,
bool replace, const QString &newPrefix )
{
bool recognized = false;
// construct a big regexp that
// 1. is anchored to the beginning of str (sans whitespace)
// 2. matches at least one of the part regexps in prefixRegExps
QString bigRegExp = QString::fromLatin1("^(?:\\s+|(?:%1))+\\s*")
.arg( prefixRegExps.join(QString::fromLatin1(")|(?:")) );
I don't know what is the real problem ? and the improvement ?
--
You are receiving this mail because:
You are the assignee for the bug.
More information about the Kdepim-bugs
mailing list