Lines Matching refs:value
40 * Output human-readable JSON, with indented objects and arrays, and one value per line.
79 * endObject(). If you have both the name and value of an object member, you can simply call
101 * By default, objects are written out with one named value per line (when in kPretty mode).
133 * By default, arrays are written out with one value per line (when in kPretty mode).
168 void appendString(const char* value) {
171 if (value) {
172 while (*value) {
173 switch (*value) {
181 default: this->write(value, 1); break;
183 value++;
189 void appendPointer(const void* value) { this->beginValue(); this->appendf("\"%p\"", value); }
190 void appendBool(bool value) {
192 if (value) {
198 void appendS32(int32_t value) { this->beginValue(); this->appendf("%d", value); }
199 void appendS64(int64_t value);
200 void appendU32(uint32_t value) { this->beginValue(); this->appendf("%u", value); }
201 void appendU64(uint64_t value);
202 void appendFloat(float value) { this->beginValue(); this->appendf("%g", value); }
203 void appendDouble(double value) { this->beginValue(); this->appendf("%g", value); }
204 void appendFloatDigits(float value, int digits) {
206 this->appendf("%.*g", digits, value);
208 void appendDoubleDigits(double value, int digits) {
210 this->appendf("%.*g", digits, value);
212 void appendHexU32(uint32_t value) { this->beginValue(); this->appendf("\"0x%x\"", value); }
213 void appendHexU64(uint64_t value);
216 void function(const char* name, type value) { this->appendName(name); this->function(value); }
236 void appendFloatDigits(const char* name, float value, int digits) {
238 this->appendFloatDigits(value, digits);
240 void appendDoubleDigits(const char* name, double value, int digits) {
242 this->appendDoubleDigits(value, digits);
284 // We haven't added the value yet, but all (non-structure) callers emit something