Implement support for \u escapes

This commit is contained in:
Petri Lehtinen
2009-07-14 20:47:57 +03:00
parent a0435e3061
commit 9240146c10
5 changed files with 152 additions and 13 deletions

8
test/testdata/valid vendored
View File

@@ -8,6 +8,14 @@
========
["\"\\\/\b\f\n\r\t"]
========
["\u002c one-byte UTF-8"]
========
["\u0123 two-byte UTF-8"]
========
["\u0821 three-byte UTF-8"]
========
["\uD834\uDD1E surrogate, four-byte UTF-8"]
========
[0]
========
[1]