| 4991 | }; |
| 4992 | |
| 4993 | struct BuiltStyledStreamWriter : public StreamWriter |
| 4994 | { |
| 4995 | BuiltStyledStreamWriter( |
| 4996 | JSONCPP_STRING const& indentation, |
| 4997 | CommentStyle::Enum cs, |
| 4998 | JSONCPP_STRING const& colonSymbol, |
| 4999 | JSONCPP_STRING const& nullSymbol, |
| 5000 | JSONCPP_STRING const& endingLineFeedSymbol, |
| 5001 | bool useSpecialFloats, |
| 5002 | unsigned int precision); |
| 5003 | int write(Value const& root, JSONCPP_OSTREAM* sout) JSONCPP_OVERRIDE; |
| 5004 | private: |
| 5005 | void writeValue(Value const& value); |
| 5006 | void writeArrayValue(Value const& value); |
| 5007 | bool isMultilineArray(Value const& value); |
| 5008 | void pushValue(JSONCPP_STRING const& value); |
| 5009 | void writeIndent(); |
| 5010 | void writeWithIndent(JSONCPP_STRING const& value); |
| 5011 | void indent(); |
| 5012 | void unindent(); |
| 5013 | void writeCommentBeforeValue(Value const& root); |
| 5014 | void writeCommentAfterValueOnSameLine(Value const& root); |
| 5015 | static bool hasCommentForValue(const Value& value); |
| 5016 | |
| 5017 | typedef std::vector<JSONCPP_STRING> ChildValues; |
| 5018 | |
| 5019 | ChildValues childValues_; |
| 5020 | JSONCPP_STRING indentString_; |
| 5021 | unsigned int rightMargin_; |
| 5022 | JSONCPP_STRING indentation_; |
| 5023 | CommentStyle::Enum cs_; |
| 5024 | JSONCPP_STRING colonSymbol_; |
| 5025 | JSONCPP_STRING nullSymbol_; |
| 5026 | JSONCPP_STRING endingLineFeedSymbol_; |
| 5027 | bool addChildValues_ : 1; |
| 5028 | bool indented_ : 1; |
| 5029 | bool useSpecialFloats_ : 1; |
| 5030 | unsigned int precision_; |
| 5031 | }; |
| 5032 | BuiltStyledStreamWriter::BuiltStyledStreamWriter( |
| 5033 | JSONCPP_STRING const& indentation, |
| 5034 | CommentStyle::Enum cs, |
nothing calls this directly
no outgoing calls
no test coverage detected