Created on 2015-05-22.00:00:00 last changed 88 months ago
Proposed resolution:
This wording is relative to N4431.
Change [re.synopt] as indicated:
namespace std::regex_constants { typedef T1 syntax_option_type; constexpr syntax_option_type icase = unspecified ; constexpr syntax_option_type nosubs = unspecified ; constexpr syntax_option_type optimize = unspecified ; constexpr syntax_option_type collate = unspecified ; constexpr syntax_option_type ECMAScript = unspecified ; constexpr syntax_option_type basic = unspecified ; constexpr syntax_option_type extended = unspecified ; constexpr syntax_option_type awk = unspecified ; constexpr syntax_option_type grep = unspecified ; constexpr syntax_option_type egrep = unspecified ; constexpr syntax_option_type multiline = unspecified ; }
Change [re.matchflag], Table 138 — "syntax_option_type effects" as indicated:
Table 138 — syntax_option_type effects Element Effect(s) if set … multiline Specifies that ^ shall match the beginning of a line and $ shall match the end of a line, if the ECMAScript engine is selected. …
[ 2016-08, Chicago ]
Monday PM: Moved to Tentatively Ready. This also resolves 2343
[ Telecon 2015-07 ]
Set the priority to match LWG 2343.
[ 2015-05-22, Daniel comments ]
This issue interacts somewhat with LWG 2343.
The specification of ECMAScript defines the Multiline property for its RegExp and the regular expressions ^ and $ behave differently according to the value of this property. Thus, this property should be available also in the ECMAScript compatible engine in std::regex.
History | |||
---|---|---|---|
Date | User | Action | Args |
2017-07-30 20:15:43 | admin | set | status: wp -> c++17 |
2016-11-14 03:59:28 | admin | set | status: pending -> wp |
2016-11-14 03:55:22 | admin | set | status: ready -> pending |
2016-08-02 17:19:11 | admin | set | messages: + msg8330 |
2016-08-02 17:19:11 | admin | set | status: new -> ready |
2015-09-27 20:55:06 | admin | set | messages: + msg7554 |
2015-05-22 17:34:24 | admin | set | messages: + msg7422 |
2015-05-22 17:34:24 | admin | set | messages: + msg7421 |
2015-05-22 00:00:00 | admin | create |