Lines Matching refs:out
33 void append(BASE_NS::string& out, const typename value_t<T>::string& string)
35 out += '"';
36 out.append(escape(string));
37 out += '"';
42 BASE_NS::string& out, const typename value_t<T>::object& object, const int indentation, int currentIndentation)
46 out.append("{}");
50 out += "{\n";
52 out.append(currentIndentation, ' ');
57 out += ",\n";
58 out.append(currentIndentation, ' ');
60 CORE_NS::append<T>(out, v.key);
61 out += ": ";
62 out += to_formatted_string(v.value, indentation, currentIndentation);
65 out += '\n';
66 out.append(currentIndentation, ' ');
67 out += '}';
72 BASE_NS::string& out, const typename value_t<T>::array& array, const int indentation, int currentIndentation)
76 out.append("[]");
80 out += "[\n";
82 out.append(currentIndentation, ' ');
86 out += ",\n";
87 out.append(currentIndentation, ' ');
89 out += to_formatted_string(v, indentation, currentIndentation);
92 out += '\n';
93 out.append(currentIndentation, ' ');
94 out += ']';
98 void append(BASE_NS::string& out, const double floatingPoint)
102 const size_t oldSize = out.size();
103 out.resize(oldSize + size);
104 const size_t newSize = out.size();
108 snprintf_s(out.data() + oldSize, newSize + 1 - oldSize, size, FLOATING_FORMAT_STR, floatingPoint);
114 BASE_NS::string out;
117 out += "{}";
121 append<T>(out, value.object_, indentation, currentIndentation);
125 append<T>(out, value.array_, indentation, currentIndentation);
129 CORE_NS::append<T>(out, value.string_);
133 CORE_NS::append<T>(out, value.float_);
137 out += BASE_NS::to_string(value.signed_);
141 out += BASE_NS::to_string(value.unsigned_);
146 out += "true";
148 out += "false";
153 out += "null";
159 return out;