tmp/tmp4dffxlkn/{from.md → to.md}
RENAMED
|
@@ -1,6 +1,6 @@
|
|
| 1 |
-
## Modified ECMAScript regular expression grammar <a id="re.grammar">[[re.grammar]]</a>
|
| 2 |
|
| 3 |
The regular expression grammar recognized by `basic_regex` objects
|
| 4 |
constructed with the ECMAScript flag is that specified by ECMA-262,
|
| 5 |
except as specified below.
|
| 6 |
|
|
@@ -106,12 +106,12 @@ exception object of type `regex_error`.
|
|
| 106 |
|
| 107 |
If the *CV* of a *UnicodeEscapeSequence* is greater than the largest
|
| 108 |
value that can be held in an object of type `charT` the translator shall
|
| 109 |
throw an exception object of type `regex_error`.
|
| 110 |
|
| 111 |
-
[*Note 1*: This means that values of the form `"uxxxx"` that do not
|
| 112 |
-
in a character are invalid. — *end note*]
|
| 113 |
|
| 114 |
Where the regular expression grammar requires the conversion of a
|
| 115 |
sequence of characters to an integral value, this is accomplished by
|
| 116 |
calling `traits_inst.value`.
|
| 117 |
|
|
@@ -165,77 +165,5 @@ as follows:
|
|
| 165 |
sequence of characters, a character `c` is a member of a character
|
| 166 |
class designated by an iterator range \[`first`, `last`) if
|
| 167 |
`traits_inst.isctype(c, traits_inst.lookup_classname(first, last, flags() & icase))`
|
| 168 |
is `true`.
|
| 169 |
|
| 170 |
-
ECMA-262 15.10
|
| 171 |
-
|
| 172 |
-
<!-- Link reference definitions -->
|
| 173 |
-
[algorithms]: algorithms.md#algorithms
|
| 174 |
-
[bitmask.types]: library.md#bitmask.types
|
| 175 |
-
[container.reqmts]: containers.md#container.reqmts
|
| 176 |
-
[container.requirements.general]: containers.md#container.requirements.general
|
| 177 |
-
[enumerated.types]: library.md#enumerated.types
|
| 178 |
-
[forward.iterators]: iterators.md#forward.iterators
|
| 179 |
-
[input.iterators]: iterators.md#input.iterators
|
| 180 |
-
[iterator.concept.bidir]: iterators.md#iterator.concept.bidir
|
| 181 |
-
[output.iterators]: iterators.md#output.iterators
|
| 182 |
-
[re]: #re
|
| 183 |
-
[re.alg]: #re.alg
|
| 184 |
-
[re.alg.match]: #re.alg.match
|
| 185 |
-
[re.alg.replace]: #re.alg.replace
|
| 186 |
-
[re.alg.search]: #re.alg.search
|
| 187 |
-
[re.badexp]: #re.badexp
|
| 188 |
-
[re.const]: #re.const
|
| 189 |
-
[re.const.general]: #re.const.general
|
| 190 |
-
[re.err]: #re.err
|
| 191 |
-
[re.except]: #re.except
|
| 192 |
-
[re.general]: #re.general
|
| 193 |
-
[re.grammar]: #re.grammar
|
| 194 |
-
[re.iter]: #re.iter
|
| 195 |
-
[re.matchflag]: #re.matchflag
|
| 196 |
-
[re.regex]: #re.regex
|
| 197 |
-
[re.regex.assign]: #re.regex.assign
|
| 198 |
-
[re.regex.construct]: #re.regex.construct
|
| 199 |
-
[re.regex.general]: #re.regex.general
|
| 200 |
-
[re.regex.locale]: #re.regex.locale
|
| 201 |
-
[re.regex.nonmemb]: #re.regex.nonmemb
|
| 202 |
-
[re.regex.operations]: #re.regex.operations
|
| 203 |
-
[re.regex.swap]: #re.regex.swap
|
| 204 |
-
[re.regiter]: #re.regiter
|
| 205 |
-
[re.regiter.cnstr]: #re.regiter.cnstr
|
| 206 |
-
[re.regiter.comp]: #re.regiter.comp
|
| 207 |
-
[re.regiter.deref]: #re.regiter.deref
|
| 208 |
-
[re.regiter.general]: #re.regiter.general
|
| 209 |
-
[re.regiter.incr]: #re.regiter.incr
|
| 210 |
-
[re.req]: #re.req
|
| 211 |
-
[re.results]: #re.results
|
| 212 |
-
[re.results.acc]: #re.results.acc
|
| 213 |
-
[re.results.all]: #re.results.all
|
| 214 |
-
[re.results.const]: #re.results.const
|
| 215 |
-
[re.results.form]: #re.results.form
|
| 216 |
-
[re.results.general]: #re.results.general
|
| 217 |
-
[re.results.nonmember]: #re.results.nonmember
|
| 218 |
-
[re.results.size]: #re.results.size
|
| 219 |
-
[re.results.state]: #re.results.state
|
| 220 |
-
[re.results.swap]: #re.results.swap
|
| 221 |
-
[re.submatch]: #re.submatch
|
| 222 |
-
[re.submatch.general]: #re.submatch.general
|
| 223 |
-
[re.submatch.members]: #re.submatch.members
|
| 224 |
-
[re.submatch.op]: #re.submatch.op
|
| 225 |
-
[re.summary]: #re.summary
|
| 226 |
-
[re.syn]: #re.syn
|
| 227 |
-
[re.synopt]: #re.synopt
|
| 228 |
-
[re.tokiter]: #re.tokiter
|
| 229 |
-
[re.tokiter.cnstr]: #re.tokiter.cnstr
|
| 230 |
-
[re.tokiter.comp]: #re.tokiter.comp
|
| 231 |
-
[re.tokiter.deref]: #re.tokiter.deref
|
| 232 |
-
[re.tokiter.general]: #re.tokiter.general
|
| 233 |
-
[re.tokiter.incr]: #re.tokiter.incr
|
| 234 |
-
[re.traits]: #re.traits
|
| 235 |
-
[re.traits.classnames]: #re.traits.classnames
|
| 236 |
-
[sequence.reqmts]: containers.md#sequence.reqmts
|
| 237 |
-
[strings.general]: strings.md#strings.general
|
| 238 |
-
[swappable.requirements]: library.md#swappable.requirements
|
| 239 |
-
|
| 240 |
-
[^1]: For example, if the parameter `icase` is `true` then `[[:lower:]]`
|
| 241 |
-
is the same as `[[:alpha:]]`.
|
|
|
|
| 1 |
+
### Modified ECMAScript regular expression grammar <a id="re.grammar">[[re.grammar]]</a>
|
| 2 |
|
| 3 |
The regular expression grammar recognized by `basic_regex` objects
|
| 4 |
constructed with the ECMAScript flag is that specified by ECMA-262,
|
| 5 |
except as specified below.
|
| 6 |
|
|
|
|
| 106 |
|
| 107 |
If the *CV* of a *UnicodeEscapeSequence* is greater than the largest
|
| 108 |
value that can be held in an object of type `charT` the translator shall
|
| 109 |
throw an exception object of type `regex_error`.
|
| 110 |
|
| 111 |
+
[*Note 1*: This means that values of the form `"\uxxxx"` that do not
|
| 112 |
+
fit in a character are invalid. — *end note*]
|
| 113 |
|
| 114 |
Where the regular expression grammar requires the conversion of a
|
| 115 |
sequence of characters to an integral value, this is accomplished by
|
| 116 |
calling `traits_inst.value`.
|
| 117 |
|
|
|
|
| 165 |
sequence of characters, a character `c` is a member of a character
|
| 166 |
class designated by an iterator range \[`first`, `last`) if
|
| 167 |
`traits_inst.isctype(c, traits_inst.lookup_classname(first, last, flags() & icase))`
|
| 168 |
is `true`.
|
| 169 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|