mirror of
https://github.com/pocoproject/poco.git
synced 2025-10-15 07:14:46 +02:00

committed by
Alex Fabijanic

parent
bd81aec779
commit
fbd229ee4a
@@ -24,16 +24,16 @@
|
||||
namespace Poco {
|
||||
|
||||
|
||||
enum JSONOptions
|
||||
{
|
||||
JSON_PRESERVE_KEY_ORDER = 1,
|
||||
enum JSONOptions
|
||||
{
|
||||
JSON_PRESERVE_KEY_ORDER = 1,
|
||||
/// Applies to JSON::Object. If specified, the Object will
|
||||
/// preserve the items insertion order. Otherwise, items
|
||||
/// will be sorted by keys.
|
||||
///
|
||||
/// Has no effect on toJSON() function.
|
||||
|
||||
JSON_ESCAPE_UNICODE = 2,
|
||||
JSON_ESCAPE_UNICODE = 2,
|
||||
/// If specified, when the object is stringified, all
|
||||
/// unicode characters will be escaped in the resulting
|
||||
/// string.
|
||||
@@ -45,8 +45,8 @@ namespace Poco {
|
||||
};
|
||||
|
||||
|
||||
//@ deprecated
|
||||
void Foundation_API toJSON(const std::string& value, std::ostream& out, bool wrap = true);
|
||||
//@ deprecated
|
||||
void Foundation_API toJSON(const std::string& value, std::ostream& out, bool wrap = true);
|
||||
/// Formats string value into the supplied output stream by
|
||||
/// escaping control and ALL Unicode characters.
|
||||
/// If wrap is true, the resulting string is enclosed in double quotes.
|
||||
@@ -56,8 +56,8 @@ namespace Poco {
|
||||
/// void Poco::toJSON(const std::string&, std::ostream&, int)
|
||||
|
||||
|
||||
//@ deprecated
|
||||
std::string Foundation_API toJSON(const std::string& value, bool wrap = true);
|
||||
//@ deprecated
|
||||
std::string Foundation_API toJSON(const std::string& value, bool wrap = true);
|
||||
/// Formats string value by escaping control and ALL Unicode characters.
|
||||
/// If wrap is true, the resulting string is enclosed in double quotes
|
||||
///
|
||||
@@ -68,7 +68,7 @@ namespace Poco {
|
||||
/// std::string Poco::toJSON(const std::string&, int)
|
||||
|
||||
|
||||
void Foundation_API toJSON(const std::string& value, std::ostream& out, int options);
|
||||
void Foundation_API toJSON(const std::string& value, std::ostream& out, int options);
|
||||
/// Formats string value into the supplied output stream by
|
||||
/// escaping control characters.
|
||||
/// If JSON_WRAP_STRINGS is in options, the resulting strings is enclosed in double quotes
|
||||
@@ -76,7 +76,7 @@ namespace Poco {
|
||||
/// only the compulsory ones.
|
||||
|
||||
|
||||
std::string Foundation_API toJSON(const std::string& value, int options);
|
||||
std::string Foundation_API toJSON(const std::string& value, int options);
|
||||
/// Formats string value by escaping control characters.
|
||||
/// If JSON_WRAP_STRINGS is in options, the resulting string is enclosed in double quotes
|
||||
/// If JSON_ESCAPE_UNICODE is in options, all unicode characters will be escaped, otherwise
|
||||
|
Reference in New Issue
Block a user