aboutsummaryrefslogtreecommitdiffstats
path: root/src/qml/jsruntime/qv4regexp_p.h
diff options
context:
space:
mode:
authorLars Knoll <lars.knoll@qt.io>2018-08-08 21:33:18 +0200
committerSimon Hausmann <simon.hausmann@qt.io>2018-08-15 14:24:41 +0000
commitb862d429b1010fecf2e29d0e781b012a4b07cad6 (patch)
treed0040a21dd8d55cbf42f9724e67f2deb3e470b41 /src/qml/jsruntime/qv4regexp_p.h
parent4bfd94c35e5099557cafcc9ae9b7d7a970089c9f (diff)
Fix some details in RegExp handling
Change-Id: If9f7c07ea657ba8503b9188a7b77e301f23423ef 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.h17
1 files changed, 12 insertions, 5 deletions
diff --git a/src/qml/jsruntime/qv4regexp_p.h b/src/qml/jsruntime/qv4regexp_p.h
index b027ba7659..6afb10ea95 100644
--- a/src/qml/jsruntime/qv4regexp_p.h
+++ b/src/qml/jsruntime/qv4regexp_p.h
@@ -91,6 +91,13 @@ struct RegExp : Base {
return false;
#endif
}
+
+ bool ignoreCase() const { return flags & CompiledData::RegExp::RegExp_IgnoreCase; }
+ bool multiLine() const { return flags & CompiledData::RegExp::RegExp_Multiline; }
+ bool global() const { return flags & CompiledData::RegExp::RegExp_Global; }
+ bool unicode() const { return flags & CompiledData::RegExp::RegExp_Unicode; }
+ bool sticky() const { return flags & CompiledData::RegExp::RegExp_Sticky; }
+
RegExpCache *cache;
int subPatternCount;
uint flags;
@@ -117,11 +124,11 @@ struct RegExp : public Managed
#endif
RegExpCache *cache() const { return d()->cache; }
int subPatternCount() const { return d()->subPatternCount; }
- bool ignoreCase() const { return d()->flags & CompiledData::RegExp::RegExp_IgnoreCase; }
- bool multiLine() const { return d()->flags & CompiledData::RegExp::RegExp_Multiline; }
- bool global() const { return d()->flags & CompiledData::RegExp::RegExp_Global; }
- bool unicode() const { return d()->flags & CompiledData::RegExp::RegExp_Unicode; }
- bool sticky() const { return d()->flags & CompiledData::RegExp::RegExp_Sticky; }
+ bool ignoreCase() const { return d()->ignoreCase(); }
+ bool multiLine() const { return d()->multiLine(); }
+ bool global() const { return d()->global(); }
+ bool unicode() const { return d()->unicode(); }
+ bool sticky() const { return d()->sticky(); }
static Heap::RegExp *create(ExecutionEngine* engine, const QString& pattern, uint flags = CompiledData::RegExp::RegExp_NoFlags);