tmp/tmpkc730gxv/{from.md → to.md}
RENAMED
|
@@ -1,28 +1,27 @@
|
|
| 1 |
### Bitmask type `syntax_option_type` <a id="re.synopt">[[re.synopt]]</a>
|
| 2 |
|
| 3 |
``` cpp
|
| 4 |
-
namespace std {
|
| 5 |
-
|
| 6 |
-
|
| 7 |
-
|
| 8 |
-
|
| 9 |
-
|
| 10 |
-
|
| 11 |
-
|
| 12 |
-
|
| 13 |
-
|
| 14 |
-
|
| 15 |
-
|
| 16 |
-
|
| 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
|
| 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>
|
|
@@ -37,7 +36,8 @@ grammar element is set, the default grammar is `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 |
|
|
|
|
| 1 |
### Bitmask type `syntax_option_type` <a id="re.synopt">[[re.synopt]]</a>
|
| 2 |
|
| 3 |
``` cpp
|
| 4 |
+
namespace std::regex_constants {
|
| 5 |
+
using syntax_option_type = T1;
|
| 6 |
+
inline constexpr syntax_option_type icase = unspecified;
|
| 7 |
+
inline constexpr syntax_option_type nosubs = unspecified;
|
| 8 |
+
inline constexpr syntax_option_type optimize = unspecified;
|
| 9 |
+
inline constexpr syntax_option_type collate = unspecified;
|
| 10 |
+
inline constexpr syntax_option_type ECMAScript = unspecified;
|
| 11 |
+
inline constexpr syntax_option_type basic = unspecified;
|
| 12 |
+
inline constexpr syntax_option_type extended = unspecified;
|
| 13 |
+
inline constexpr syntax_option_type awk = unspecified;
|
| 14 |
+
inline constexpr syntax_option_type grep = unspecified;
|
| 15 |
+
inline constexpr syntax_option_type egrep = unspecified;
|
| 16 |
+
inline constexpr syntax_option_type multiline = unspecified;
|
|
|
|
| 17 |
}
|
| 18 |
```
|
| 19 |
|
| 20 |
+
The type `syntax_option_type` is an *implementation-defined* bitmask
|
| 21 |
type ([[bitmask.types]]). Setting its elements has the effects listed
|
| 22 |
+
in Table [[tab:re:syntaxoption]]. A valid value of type
|
| 23 |
`syntax_option_type` shall have at most one of the grammar elements
|
| 24 |
`ECMAScript`, `basic`, `extended`, `awk`, `grep`, `egrep`, set. If no
|
| 25 |
grammar element is set, the default grammar is `ECMAScript`.
|
| 26 |
|
| 27 |
**Table: `syntax_option_type` effects** <a id="tab:re:syntaxoption">[tab:re:syntaxoption]</a>
|
|
|
|
| 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 |
+
| % `multiline` | Specifies that `\^` shall match the beginning of a line and `$` shall match the end of a line, if the `ECMAScript` engine is selected. \indextext{\idxcode{multiline}}% \indexlibrary{\idxcode{syntax_option_type}!\idxcode{multiline}}% |
|
| 42 |
|
| 43 |
|