qt5base-lts/tests/auto/corelib/tools/qregularexpression
Giuseppe D'Angelo 824cc94921 QRegularExpression: minor fix to captureIndexForName
Although passing a null pointer to pcre16_get_stringnumber for
the compiled pattern should simply make it error out, it's actually
an undocumented behaviour, so let's stay safe and add an explicit
check.

Tests for this codepath are added.

Change-Id: Ifd9c87874f6812ba487104ec1a5bbc83c3b16761
Reviewed-by: Thiago Macieira <thiago.macieira@intel.com>
2012-03-08 22:00:53 +01:00
..
alwaysoptimize QRegularExpression: add optimizations autotest 2012-03-07 19:18:22 +01:00
defaultoptimize QRegularExpression: add optimizations autotest 2012-03-07 19:18:22 +01:00
.gitignore QRegularExpression: add optimizations autotest 2012-03-07 19:18:22 +01:00
qregularexpression.pro QRegularExpression: add optimizations autotest 2012-03-07 19:18:22 +01:00
tst_qregularexpression.cpp QRegularExpression: minor fix to captureIndexForName 2012-03-08 22:00:53 +01:00
tst_qregularexpression.h QRegularExpression: minor fix to captureIndexForName 2012-03-08 22:00:53 +01:00