Closed GoogleCodeExporter closed 9 years ago
The JSON escapes are
\"
\\
\/
\b
\f
\n
\r
\t
\u four-hex-digits
Original comment by westm...@gmail.com
on 30 Mar 2014 at 2:04
The Java escapes are:
EscapeSequence:
\ b /* \u0008: backspace BS */
\ t /* \u0009: horizontal tab HT */
\ n /* \u000a: linefeed LF */
\ f /* \u000c: form feed FF */
\ r /* \u000d: carriage return CR */
\ " /* \u0022: double quote " */
\ ' /* \u0027: single quote ' */
\ \ /* \u005c: backslash \ */
OctalEscape /* \u0000 to \u00ff: from octal value */
OctalEscape:
\ OctalDigit
\ OctalDigit OctalDigit
\ ZeroToThree OctalDigit OctalDigit
OctalDigit: one of
0 1 2 3 4 5 6 7
ZeroToThree: one of
0 1 2 3
Original comment by westm...@gmail.com
on 30 Mar 2014 at 2:04
In AQL we currently only escape \" in "-delimited strings and \' in '-delimited
strings.
Original comment by westm...@gmail.com
on 30 Mar 2014 at 2:05
There's a patch in branch westmann/issue748 that introduces an escape sequence
for \.
With this
{ "user": "a\" } returns a lexical error and
{ "user" : "a\\" } returns { "user": "a\\" }
The open question is, if we should also support other escape sequences
(analogously to JSON?) in string literals in AQL or if this minimal approach is
better.
Original comment by westm...@gmail.com
on 31 Mar 2014 at 5:32
The review for this change is now at http://codereview.appspot.com/84580043
Original comment by westm...@gmail.com
on 4 Apr 2014 at 4:24
Original comment by westm...@gmail.com
on 4 Apr 2014 at 4:25
Original comment by westm...@gmail.com
on 4 Apr 2014 at 7:03
This is extended by issue 753.
Original comment by ker...@gmail.com
on 4 Apr 2014 at 9:15
Original comment by westm...@gmail.com
on 4 Apr 2014 at 9:26
[deleted comment]
Could you verify that it works?
Original comment by westm...@gmail.com
on 4 Apr 2014 at 9:35
Original issue reported on code.google.com by
westm...@gmail.com
on 29 Mar 2014 at 3:46