Add new error strings to QRegularExpression
authorGiuseppe D'Angelo <giuseppe.dangelo@kdab.com>
Fri, 6 Jul 2012 10:37:26 +0000 (11:37 +0100)
committerThe Qt Project <gerrit-noreply@qt-project.org>
Thu, 18 Oct 2012 13:17:22 +0000 (15:17 +0200)
They are introduced in PCRE 8.31.

Change-Id: Id0447b381d5e23996d4e87ae0368b07a8bc1c318
Reviewed-by: Thiago Macieira <thiago.macieira@intel.com>
Reviewed-by: Oswald Buddenhagen <oswald.buddenhagen@digia.com>
src/corelib/tools/qregularexpression.cpp

index 5436d1f..5c6b3ff 100644 (file)
@@ -2345,7 +2345,9 @@ static const char *pcreCompileErrorCodes[] =
     QT_TRANSLATE_NOOP("QRegularExpression", "\\N is not supported in a class"),
     QT_TRANSLATE_NOOP("QRegularExpression", "too many forward references"),
     QT_TRANSLATE_NOOP("QRegularExpression", "disallowed Unicode code point (>= 0xd800 && <= 0xdfff)"),
-    QT_TRANSLATE_NOOP("QRegularExpression", "invalid UTF-16 string")
+    QT_TRANSLATE_NOOP("QRegularExpression", "invalid UTF-16 string"),
+    QT_TRANSLATE_NOOP("QRegularExpression", "name is too long in (*MARK), (*PRUNE), (*SKIP), or (*THEN)"),
+    QT_TRANSLATE_NOOP("QRegularExpression", "character value in \\u.... sequence is too large")
 };
 #endif // #if 0