diff options
author | Lars Knoll <lars.knoll@qt.io> | 2018-08-07 22:27:23 +0200 |
---|---|---|
committer | Lars Knoll <lars.knoll@qt.io> | 2018-08-10 14:16:12 +0000 |
commit | 886d463061ba34802bf844133396e3706d6912a4 (patch) | |
tree | 066b86b99f71388acb07ef1a4e8fc4bb4331ceb2 /src/qml/jsruntime/qv4regexpobject_p.h | |
parent | 18d2f78437d28987297148b63b99ceed6313a78a (diff) |
Enable unicode regular expressions
Add support for the 'u' flag for regular expressions.
Change-Id: I409054eaa9c50183619752d14f2638f5a38c0ea7
Reviewed-by: Simon Hausmann <simon.hausmann@qt.io>
Diffstat (limited to 'src/qml/jsruntime/qv4regexpobject_p.h')
-rw-r--r-- | src/qml/jsruntime/qv4regexpobject_p.h | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/qml/jsruntime/qv4regexpobject_p.h b/src/qml/jsruntime/qv4regexpobject_p.h index 0d4fe760eb..e52220c257 100644 --- a/src/qml/jsruntime/qv4regexpobject_p.h +++ b/src/qml/jsruntime/qv4regexpobject_p.h @@ -108,7 +108,8 @@ struct RegExpObject: Object { enum Flags { RegExp_Global = 0x01, RegExp_IgnoreCase = 0x02, - RegExp_Multiline = 0x04 + RegExp_Multiline = 0x04, + RegExp_Unicode = 0x08 }; enum { @@ -117,6 +118,7 @@ struct RegExpObject: Object { Index_Global = 2, Index_IgnoreCase = 3, Index_Multiline = 4, + Index_Unicode = 5, Index_ArrayIndex = Heap::ArrayObject::LengthPropertyIndex + 1, Index_ArrayInput = Index_ArrayIndex + 1 }; |