Fixed JSON string escaping to support non-printable characters, made some JSON lib private functions static in the .cpp file instead.
This commit is contained in:
parent
f48833343a
commit
2769d3cc6c
2 changed files with 18 additions and 9 deletions
|
@ -35,10 +35,6 @@ namespace JSON {
|
|||
std::string strVal;
|
||||
std::deque<Value> arrVal;
|
||||
std::map<std::string, Value> objVal;
|
||||
std::string read_string(int separator, std::istream & fromstream);
|
||||
static std::string string_escape(const std::string val);
|
||||
int c2hex(int c);
|
||||
static void skipToEnd(std::istream & fromstream);
|
||||
public:
|
||||
//friends
|
||||
friend class DTSC::Stream; //for access to strVal
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue