Lines Matching refs:out

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