Export (0) Print
Expand All
Expand Minimize
This topic has not yet been rated - Rate this topic

2.1.52 [ECMA-262/5] Section B.1.2, String Literals

V0041:

The specification states:

OctalEscapeSequence ::
   OctalDigit [lookahead  DecimalDigit] 
   ZeroToThree OctalDigit [lookahead  DecimalDigit] 
   FourToSeven OctalDigit 
   ZeroToThree OctalDigit OctalDigit

IE9 Mode, IE10 Mode, and IE11 Mode (All Versions)

The syntax of the OctalEscapeSequence literal can be extended only as follows, with the lookahead element characterized with respect to the OctalDigit set:

OctalEscapeSequence ::
   OctalDigit [lookahead  OctalDigit] 
   ZeroToThree OctalDigit [lookahead  OctalDigit] 
   FourToSeven OctalDigit 
   ZeroToThree OctalDigit OctalDigit

V0042:

The specification states:

The CV of OctalEscapeSequence :: OctalDigit [lookahead ∉ DecimalDigit] is the character whose code unit value is the MV of the OctalDigit.
The CV of OctalEscapeSequence :: ZeroToThree OctalDigit [lookahead ∉ DecimalDigit] is the character whose code unit value is (8 times the MV of the ZeroToThree) plus the MV of the OctalDigit.

IE9 Mode, IE10 Mode, and IE11 Mode (All Versions)

The semantics of the OctalEscapeSequence literal can be extended only as follows, with the lookahead element characterized with respect to the OctalDigit set:

  • The character value (CV) of OctalEscapeSequence :: OctalDigit [lookahead ∉ OctalDigit] is the character whose code unit value is the mathematical value (MV) of the OctalDigit element.

  • The CV of OctalEscapeSequence :: ZeroToThree OctalDigit [lookahead ∉ OctalDigit] is the character whose code unit value is 8 times the MV of the ZeroToThree element plus the MV of the OctalDigit element.

Did you find this helpful?
(1500 characters remaining)
Thank you for your feedback
Show:
© 2014 Microsoft. All rights reserved.