From Jason Turner

[re.synopt]

Diff to HTML by rtfpessoa

Files changed (1) hide show
  1. tmp/tmpxuqtck7b/{from.md → to.md} +24 -23
tmp/tmpxuqtck7b/{from.md → to.md} RENAMED
@@ -2,41 +2,42 @@
2
 
3
  ``` cpp
4
  namespace std {
5
  namespace regex_constants {
6
  typedef T1 syntax_option_type;
7
- static constexpr syntax_option_type icase = unspecified;
8
- static constexpr syntax_option_type nosubs = unspecified;
9
- static constexpr syntax_option_type optimize = unspecified;
10
- static constexpr syntax_option_type collate = unspecified;
11
- static constexpr syntax_option_type ECMAScript = unspecified;
12
- static constexpr syntax_option_type basic = unspecified;
13
- static constexpr syntax_option_type extended = unspecified;
14
- static constexpr syntax_option_type awk = unspecified;
15
- static constexpr syntax_option_type grep = unspecified;
16
- static constexpr syntax_option_type egrep = unspecified;
17
  }
18
  }
19
  ```
20
 
21
  The type `syntax_option_type` is an implementation-defined bitmask
22
  type ([[bitmask.types]]). Setting its elements has the effects listed
23
  in table  [[tab:re:syntaxoption]]. A valid value of type
24
- `syntax_option_type` shall have exactly one of the elements
25
- `ECMAScript`, `basic`, `extended`, `awk`, `grep`, `egrep`, set.
 
26
 
27
  **Table: `syntax_option_type` effects** <a id="tab:re:syntaxoption">[tab:re:syntaxoption]</a>
28
 
29
  | Element | Effect(s) if set |
30
- | ------------ | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
31
- | % icase | Specifies that matching of regular expressions against a character container sequence shall be performed without regard to case. \indexlibrary{\idxcode{syntax_option_type}!\idxcode{icase}}% |
32
- | % nosubs | Specifies that when a regular expression is matched against a character container sequence, no sub-expression matches shall be stored in the supplied match_results structure. \indexlibrary{\idxcode{syntax_option_type}!\idxcode{nosubs}}% |
33
- | % optimize | Specifies that the regular expression engine should pay more attention to the speed with which regular expressions are matched, and less to the speed with which regular expression objects are constructed. Otherwise it has no detectable effect on the program output. \indexlibrary{\idxcode{syntax_option_type}!\idxcode{optimize}}% |
34
- | % collate | Specifies that character ranges of the form `"[a-b]"` shall be locale sensitive. \indexlibrary{\idxcode{syntax_option_type}!\idxcode{collate}}% \indextext{locale}% |
35
- | % ECMAScript | Specifies that the grammar recognized by the regular expression engine shall be that used by ECMAScript in ECMA-262, as modified in~ [[re.grammar]]. \indextext{ECMAScript}% \indexlibrary{\idxcode{syntax_option_type}!\idxcode{ECMAScript}}% |
36
- | % basic | Specifies that the grammar recognized by the regular expression engine shall be that used by basic regular expressions in POSIX, Base Definitions and Headers, Section 9, Regular Expressions. \indextext{POSIX!regular expressions}% \indexlibrary{\idxcode{syntax_option_type}!\idxcode{basic}}% |
37
- | % extended | Specifies that the grammar recognized by the regular expression engine shall be that used by extended regular expressions in POSIX, Base Definitions and Headers, Section 9, Regular Expressions. \indextext{POSIX!extended regular expressions}% \indexlibrary{\idxcode{syntax_option_type}!\idxcode{extended}}% |
38
- | % awk | Specifies that the grammar recognized by the regular expression engine shall be that used by the utility awk in POSIX. \indextext{\idxcode{awk}}% \indexlibrary{\idxcode{syntax_option_type}!\idxcode{awk}}% |
39
- | % grep | Specifies that the grammar recognized by the regular expression engine shall be that used by the utility grep in POSIX. \indextext{\idxcode{grep}}% \indexlibrary{\idxcode{syntax_option_type}!\idxcode{grep}}% |
40
- | % egrep | Specifies that the grammar recognized by the regular expression engine shall be that used by the utility grep when given the -E option in POSIX. \indextext{\idxcode{egrep}}% \indexlibrary{\idxcode{syntax_option_type}!\idxcode{egrep}}% |
41
 
42
 
 
2
 
3
  ``` cpp
4
  namespace std {
5
  namespace regex_constants {
6
  typedef T1 syntax_option_type;
7
+ constexpr syntax_option_type icase = unspecified;
8
+ constexpr syntax_option_type nosubs = unspecified;
9
+ constexpr syntax_option_type optimize = unspecified;
10
+ constexpr syntax_option_type collate = unspecified;
11
+ constexpr syntax_option_type ECMAScript = unspecified;
12
+ constexpr syntax_option_type basic = unspecified;
13
+ constexpr syntax_option_type extended = unspecified;
14
+ constexpr syntax_option_type awk = unspecified;
15
+ constexpr syntax_option_type grep = unspecified;
16
+ constexpr syntax_option_type egrep = unspecified;
17
  }
18
  }
19
  ```
20
 
21
  The type `syntax_option_type` is an implementation-defined bitmask
22
  type ([[bitmask.types]]). Setting its elements has the effects listed
23
  in table  [[tab:re:syntaxoption]]. A valid value of type
24
+ `syntax_option_type` shall have at most one of the grammar elements
25
+ `ECMAScript`, `basic`, `extended`, `awk`, `grep`, `egrep`, set. If no
26
+ grammar element is set, the default grammar is `ECMAScript`.
27
 
28
  **Table: `syntax_option_type` effects** <a id="tab:re:syntaxoption">[tab:re:syntaxoption]</a>
29
 
30
  | Element | Effect(s) if set |
31
+ | -------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
32
+ | % `icase` | Specifies that matching of regular expressions against a character container sequence shall be performed without regard to case. \indexlibrary{\idxcode{syntax_option_type}!\idxcode{icase}}% |
33
+ | % `nosubs` | Specifies that no sub-expressions shall be considered to be marked, so that when a regular expression is matched against a character container sequence, no sub-expression matches shall be stored in the supplied `match_results` structure. \indexlibrary{\idxcode{syntax_option_type}!\idxcode{nosubs}}% |
34
+ | % `optimize` | Specifies that the regular expression engine should pay more attention to the speed with which regular expressions are matched, and less to the speed with which regular expression objects are constructed. Otherwise it has no detectable effect on the program output. \indexlibrary{\idxcode{syntax_option_type}!\idxcode{optimize}}% |
35
+ | % `collate` | Specifies that character ranges of the form `"[a-b]"` shall be locale sensitive. \indexlibrary{\idxcode{syntax_option_type}!\idxcode{collate}}% \indextext{locale}% |
36
+ | % `ECMAScript` | Specifies that the grammar recognized by the regular expression engine shall be that used by ECMAScript in ECMA-262, as modified in~ [[re.grammar]]. \indextext{ECMAScript}% \indexlibrary{\idxcode{syntax_option_type}!\idxcode{ECMAScript}}% |
37
+ | % `basic` | Specifies that the grammar recognized by the regular expression engine shall be that used by basic regular expressions in POSIX, Base Definitions and Headers, Section 9, Regular Expressions. \indextext{POSIX!regular expressions}% \indexlibrary{\idxcode{syntax_option_type}!\idxcode{basic}}% |
38
+ | % `extended` | Specifies that the grammar recognized by the regular expression engine shall be that used by extended regular expressions in POSIX, Base Definitions and Headers, Section 9, Regular Expressions. \indextext{POSIX!extended regular expressions}% \indexlibrary{\idxcode{syntax_option_type}!\idxcode{extended}}% |
39
+ | % `awk` | Specifies that the grammar recognized by the regular expression engine shall be that used by the utility awk in POSIX. \indextext{\idxcode{awk}}% \indexlibrary{\idxcode{syntax_option_type}!\idxcode{awk}}% |
40
+ | % `grep` | Specifies that the grammar recognized by the regular expression engine shall be that used by the utility grep in POSIX. \indextext{\idxcode{grep}}% \indexlibrary{\idxcode{syntax_option_type}!\idxcode{grep}}% |
41
+ | % `egrep` | Specifies that the grammar recognized by the regular expression engine shall be that used by the utility grep when given the -E option in POSIX. \indextext{\idxcode{egrep}}% \indexlibrary{\idxcode{syntax_option_type}!\idxcode{egrep}}% |
42
 
43