Fixed dumping of strings

This commit is contained in:
Raphael Isemann
2015-01-10 22:04:57 +01:00
parent 0cd2ecf48f
commit 7b97ec884e
3 changed files with 59 additions and 2 deletions

View File

@@ -165,7 +165,10 @@ class json
/// dump the object (with pretty printer)
std::string dump(const bool, const unsigned int, unsigned int = 0) const noexcept;
/// replaced a character in a string with another string
void replaceChar(std::string& str, char c, const std::string& replacement) const;
/// escapes special characters to safely dump the string
std::string escapeString(const std::string&) const;
public:
/// explicit value conversion
template<typename T>