Core: CParser::UnicodeEscape - option to escape javascript's \u, used in JSON

git-svn-id: svn://ultimatepp.org/upp/trunk@4160 f0d560ea-af0d-0410-9eb7-867de7ffcac7
This commit is contained in:
cxl 2011-11-11 10:01:15 +00:00
parent e3034d31bd
commit 809cfe6d29
4 changed files with 70 additions and 58 deletions

View file

@ -4,6 +4,7 @@ NAMESPACE_UPP
Value ParseJSON(CParser& p)
{
p.UnicodeEscape();
if(p.IsNumber())
return p.ReadDouble();
if(p.IsString())