diff options
author | Lars Knoll <lars.knoll@qt.io> | 2018-08-08 15:04:42 +0200 |
---|---|---|
committer | Simon Hausmann <simon.hausmann@qt.io> | 2018-08-15 14:24:38 +0000 |
commit | 4bfd94c35e5099557cafcc9ae9b7d7a970089c9f (patch) | |
tree | b221ef374ace6fca0eaa1f041d338145dc83b083 /src/qml/jsruntime/qv4regexp_p.h | |
parent | cecd8be881034153fc6b92e96f152a4a0c189ae4 (diff) |
Implement RegExp.prototype[Symbol.replace]
Change-Id: I5a2c9cb1e9dcca664526b3949671d72d2ffee427
Reviewed-by: Simon Hausmann <simon.hausmann@qt.io>
Diffstat (limited to 'src/qml/jsruntime/qv4regexp_p.h')
-rw-r--r-- | src/qml/jsruntime/qv4regexp_p.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/qml/jsruntime/qv4regexp_p.h b/src/qml/jsruntime/qv4regexp_p.h index 1e35d141ca..b027ba7659 100644 --- a/src/qml/jsruntime/qv4regexp_p.h +++ b/src/qml/jsruntime/qv4regexp_p.h @@ -131,6 +131,8 @@ struct RegExp : public Managed int captureCount() const { return subPatternCount() + 1; } + static QString getSubstitution(const QString &matched, const QString &str, int position, const Value *captures, int nCaptures, const QString &replacement); + friend class RegExpCache; }; |