diff options
Diffstat (limited to 'src/utility.h')
-rw-r--r-- | src/utility.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/utility.h b/src/utility.h index 14b49772b..50f27c11b 100644 --- a/src/utility.h +++ b/src/utility.h @@ -1694,6 +1694,12 @@ inline std::string deSerializeLongString(std::istream &is) return s; } +// Creates a string encoded in JSON format (almost equivalent to a C string literal) +std::string serializeJsonString(const std::string &plain); + +// Reads a string encoded in JSON format +std::string deSerializeJsonString(std::istream &is); + // inline u32 time_to_daynight_ratio(u32 time_of_day) |