X-Git-Url: http://plrg.eecs.uci.edu/git/?p=folly.git;a=blobdiff_plain;f=folly%2Fjson.cpp;h=029278e245f5a16b506a21a8e93e9d64a8a4ff00;hp=07db1c330e9249a7864eabcc2204ecdc4269d549;hb=ef20f6380813110434dae416f0abe964e476c8c6;hpb=fbfe105970bcf88e8c123046f84bebdfe24f8801 diff --git a/folly/json.cpp b/folly/json.cpp index 07db1c33..029278e2 100644 --- a/folly/json.cpp +++ b/folly/json.cpp @@ -85,7 +85,7 @@ struct Printer { } } -private: + private: void printKV(const std::pair& p) const { if (!opts_.allow_non_string_keys && !p.first.isString()) { throw std::runtime_error("folly::toJson: JSON object key was not a " @@ -156,7 +156,7 @@ private: out_ += ']'; } -private: + private: void outdent() const { if (indentLevel_) { --*indentLevel_; @@ -179,10 +179,10 @@ private: out_ += indentLevel_ ? " : " : ":"; } -private: - std::string& out_; - unsigned* const indentLevel_; - serialization_opts const& opts_; + private: + std::string& out_; + unsigned* const indentLevel_; + serialization_opts const& opts_; }; ////////////////////////////////////////////////////////////////////// @@ -319,7 +319,7 @@ struct Input { current_ = range_.empty() ? EOF : range_.front(); } -private: + private: StringPiece range_; json::serialization_opts const& opts_; unsigned lineNum_; @@ -597,7 +597,7 @@ dynamic parseValue(Input& in) { in.error("expected json value"); } -} +} // namespace ////////////////////////////////////////////////////////////////////// @@ -813,7 +813,7 @@ std::string stripComments(StringPiece jsonC) { return result; } -} +} // namespace json ////////////////////////////////////////////////////////////////////// @@ -868,4 +868,4 @@ void PrintTo(const dynamic& dyn, std::ostream* os) { ////////////////////////////////////////////////////////////////////// -} +} // namespace folly