diff options
author | Giuseppe D'Angelo <giuseppe.dangelo@kdab.com> | 2014-05-11 11:48:47 +0200 |
---|---|---|
committer | The Qt Project <gerrit-noreply@qt-project.org> | 2014-05-12 09:47:19 +0200 |
commit | fd80cad07e9ab98ebb8cd1b056aeabc0aed336ea (patch) | |
tree | 9b4b46381a51918b2d10b9f098a14877af7ed5f1 /src/corelib/tools/qarraydata.cpp | |
parent | 45326692857c558bea4b263899bcae7ec88535aa (diff) |
QRegularExpression: allow users to skip the UTF-16 check of the subject string
PCRE does not handle invalid UTF-16 sequences. For this reason we always
check a subject string's UTF-16 validity before attempting any match
over it (actually we let PCRE do that).
The only exception so far has been global matching -- once the first
match was done, we skipped re-doing the check over and over again the
same string (PCRE actually checks the /entire/ string, not only the part
it uses for matching).
Still, users had no way to skip this check if they were 100% sure the
string was a valid UTF-16 string. This commit introduces a way for them
to skip the check.
Change-Id: Iea352c06f531aa2153863b3a1681acaab7ac375c
Reviewed-by: Thiago Macieira <thiago.macieira@intel.com>
Diffstat (limited to 'src/corelib/tools/qarraydata.cpp')
0 files changed, 0 insertions, 0 deletions