Lexer.scanEscapeSequence

Scans an escape sequence.

$(BNF /EscapeSequence := "\\" (BinaryEsc | UnicodeEsc | CEsc | HTMLEsc) /BinaryEsc := Octal{1,3} | "x" Hex{2} /UnicodeEsc := "u" Hex{4} | "U" Hex{8} /CEsc := "'" | '"' | "?" | "\\" | "a" | "b" | "f" | "n" | "r" | "t" | "v" /HTMLEsc := "&" EntityName ";" /EntityName := [a-zA-Z] [a-zA-Z\d]* /)

class Lexer
dchar
scanEscapeSequence
(
,
out bool isBinary
)
out (result) { assert (isValidChar(result)); }

Parameters

ref_p
Type: cchar*

Used to scan the sequence.

isBinary
Type: bool

Set to true for octal and hexadecimal escapes.

Return Value

Type: dchar

The escape value.

Meta