Title
multiline option should be added to syntax_option_type
Status
c++17
Section
[re.synopt]
Submitter
Nozomu Katō

Created on 2015-05-22.00:00:00, last changed 2017-07-30.20:15:43.

Messages

Date: 2016-08-02.17:19:11

Proposed resolution:

This wording is relative to N4431.

  1. 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 ;
    }
    
  2. 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.
Date: 2016-08-02.17:19:11

[ 2016-08, Chicago ]

Monday PM: Moved to Tentatively Ready. This also resolves 2343

Date: 2017-02-02.00:41:18

[ Telecon 2015-07 ]

Set the priority to match LWG 2343.

Date: 2015-05-15.00:00:00

[ 2015-05-22, Daniel comments ]

This issue interacts somewhat with LWG 2343.

Date: 2015-05-22.00:00:00

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:43adminsetstatus: wp -> c++17
2016-11-14 03:59:28adminsetstatus: pending -> wp
2016-11-14 03:55:22adminsetstatus: ready -> pending
2016-08-02 17:19:11adminsetmessages: + msg8330
2016-08-02 17:19:11adminsetstatus: new -> ready
2015-09-27 20:55:06adminsetmessages: + msg7554
2015-05-22 17:34:24adminsetmessages: + msg7422
2015-05-22 17:34:24adminsetmessages: + msg7421
2015-05-22 00:00:00admincreate