Util+Test: Separate formatting and printing into different files
This commit is contained in:
@@ -12,7 +12,7 @@
|
||||
#include <string>
|
||||
#include <utility> // move, swap
|
||||
|
||||
#include "util/format/format.h"
|
||||
#include "util/format/builder.h"
|
||||
#include "util/json/array.h"
|
||||
#include "util/json/job.h"
|
||||
#include "util/json/object.h"
|
||||
@@ -332,7 +332,7 @@ std::ostream& operator<<(std::ostream& output, const Value& value)
|
||||
return output << value.dump(4);
|
||||
}
|
||||
|
||||
void format(FormatBuilder& builder, const Value& value)
|
||||
void format(Util::Format::Builder& builder, const Value& value)
|
||||
{
|
||||
builder.putString(value.dump(4));
|
||||
}
|
||||
|
||||
@@ -13,7 +13,7 @@
|
||||
#include <string>
|
||||
#include <utility> // forward
|
||||
|
||||
#include "util/format/format.h"
|
||||
#include "util/format/builder.h"
|
||||
#include "util/json/fromjson.h"
|
||||
#include "util/json/tojson.h"
|
||||
|
||||
@@ -134,7 +134,7 @@ private:
|
||||
std::istream& operator>>(std::istream& input, Value& value);
|
||||
std::ostream& operator<<(std::ostream& output, const Value& value);
|
||||
|
||||
void format(FormatBuilder& builder, const Value& value);
|
||||
void format(Util::Format::Builder& builder, const Value& value);
|
||||
|
||||
} // namespace Util::JSON
|
||||
|
||||
|
||||
Reference in New Issue
Block a user