Uploaded image for project: 'Qt'
  1. Qt
  2. QTBUG-20885 Larger changes for Qt 5
  3. QTBUG-20888

Evaluate whether to use JS syntax and V8 for QRegExp

    XMLWordPrintable

    Details

    • Type: Sub-task
    • Status: Closed
    • Priority: P1: Critical
    • Resolution: Done
    • Fix Version/s: None
    • Component/s: Core: Other
    • Labels:
      None
    • Technical Risk:
      Normal

      Description

      The regexp engine in QtCore is getting rather old. V8 provides a much more performant engine that we could use. With JS becoming more important in Qt we need to evaluate whether we should support JS type regexps and whether this should be the default syntax in Qt 5.

      • Evaluate possibility to implement QRegExp with V8
      • Evaluate risk of changing default syntax to JS

      A silent breakage of the syntax looks too risky. One possible path forward could be:

      • Move QRegExp into it's own add-on module.
      • Add a QRegularExpression in QtCore that uses V8 and the JS syntax
      • Change all API in Qt to use QRegularExpression instead of QRegExp
      • Provide a cast operator from QRegExp to QRegularExpression for source compatibility'

        Attachments

        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

          Activity

            People

            Assignee:
            biochimia João Abecasis
            Reporter:
            laknoll Lars Knoll
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved:

                Gerrit Reviews

                There are no open Gerrit changes