34 #include "support/json.h" 39 #include "llvm/raw_ostream.h" 57 : o(s), loc(
std::localeconv()),
58 thousands_sep(!loc->thousands_sep ?
'\0' : loc->thousands_sep[0]),
59 decimal_point(!loc->decimal_point ?
'\0' : loc->decimal_point[0])
80 const bool pretty_print,
81 const unsigned int indent_step,
82 const unsigned int current_indent = 0);
113 const std::lconv* loc =
nullptr;
115 const char thousands_sep =
'\0';
117 const char decimal_point =
'\0';
void dump(const json &val, const bool pretty_print, const unsigned int indent_step, const unsigned int current_indent=0)
internal implementation of the serialization function
Definition: json_serializer.cpp:44
Definition: json.cpp:1170
void dump_float(double x)
dump a floating-point number
Definition: json_serializer.cpp:325
serializer(llvm::raw_ostream &s)
Definition: json_serializer.h:56
Definition: SocketError.cpp:18
void dump_escaped(llvm::StringRef s) const
dump escaped string
Definition: json_serializer.cpp:224
wrapper around the serialization functions
Definition: json_serializer.h:46
a class to store JSON values
Definition: json.h:1201
This class implements an extremely fast bulk output stream that can only output to a stream...
Definition: raw_ostream.h:33
StringRef - Represent a constant reference to a string, i.e.
Definition: StringRef.h:42