Skip to content

Commit

Permalink
QRegularExpression: enable JIT study for partial matching too
Browse files Browse the repository at this point in the history
Task-number: QTBUG-38034
Change-Id: I0edc1c0b5e3be5fd12a91007b68e5eff7ccc7e40
Reviewed-by: Friedemann Kleint <[email protected]>
Reviewed-by: Lars Knoll <[email protected]>
  • Loading branch information
dangelog authored and The Qt Project committed Apr 28, 2014
1 parent 5bc4dd3 commit 414a411
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/corelib/tools/qregularexpression.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1120,7 +1120,7 @@ void QRegularExpressionPrivate::optimizePattern()

int studyOptions = 0;
if (enableJit)
studyOptions |= PCRE_STUDY_JIT_COMPILE;
studyOptions |= (PCRE_STUDY_JIT_COMPILE | PCRE_STUDY_JIT_PARTIAL_SOFT_COMPILE | PCRE_STUDY_JIT_PARTIAL_HARD_COMPILE);

const char *err;
pcre16_extra * const localStudyData = pcre16_study(compiledPattern, studyOptions, &err);
Expand Down

0 comments on commit 414a411

Please sign in to comment.