Fully implemented the JSON spec

This commit is contained in:
Raphael Isemann
2015-01-10 16:49:10 +01:00
parent 222aacc213
commit 5a54e46709
3 changed files with 232 additions and 62 deletions

View File

@@ -419,8 +419,10 @@ class json
/// parse a quoted string
inline std::string parseString();
/// transforms a unicode codepoint to it's UTF-8 presentation
inline std::string unicodeToUTF8(unsigned int codepoint);
/// parses a unicode escape sequence
inline std::string codepointToUTF8(unsigned int codepoint);
/// parses 4 hex characters that represent a unicode codepoint
inline unsigned int parse4HexCodepoint();
/// parses \uXXXX[\uXXXX] unicode escape characters
inline std::string parseUnicodeEscape();
/// parse a Boolean "true"
inline void parseTrue();