Lines Matching refs:this

61         this->flush();  in ~SkJSONWriter()
86 SkASSERT(Scope::kObject == this->scope()); in appendName()
89 this->write(",", 1); in appendName()
91 this->separator(this->multiline()); in appendName()
92 this->write("\"", 1); in appendName()
93 this->write(name, strlen(name)); in appendName()
94 this->write("\":", 2); in appendName()
107 this->appendName(name);
108 this->beginValue(true);
109 this->write("{", 1);
119 SkASSERT(Scope::kObject == this->scope()); in endObject()
122 bool wasMultiline = this->multiline(); in endObject()
123 this->popScope(); in endObject()
125 this->separator(wasMultiline); in endObject()
127 this->write("}", 1); in endObject()
139 this->appendName(name);
140 this->beginValue(true);
141 this->write("[", 1);
151 SkASSERT(Scope::kArray == this->scope()); in endArray()
154 bool wasMultiline = this->multiline(); in endArray()
155 this->popScope(); in endArray()
157 this->separator(wasMultiline); in endArray()
159 this->write("]", 1); in endArray()
169 this->beginValue(); in appendString()
170 this->write("\"", 1); in appendString()
174 case '"': this->write("\\\"", 2); break; in appendString()
175 case '\\': this->write("\\\\", 2); break; in appendString()
176 case '\b': this->write("\\b", 2); break; in appendString()
177 case '\f': this->write("\\f", 2); break; in appendString()
178 case '\n': this->write("\\n", 2); break; in appendString()
179 case '\r': this->write("\\r", 2); break; in appendString()
180 case '\t': this->write("\\t", 2); break; in appendString()
181 default: this->write(value, 1); break; in appendString()
186 this->write("\"", 1); in appendString()
189 void appendPointer(const void* value) { this->beginValue(); this->appendf("\"%p\"", value); } in appendPointer()
191 this->beginValue(); in appendBool()
193 this->write("true", 4); in appendBool()
195 this->write("false", 5); in appendBool()
198 void appendS32(int32_t value) { this->beginValue(); this->appendf("%d", value); } in appendS32()
200 void appendU32(uint32_t value) { this->beginValue(); this->appendf("%u", value); } in appendU32()
202 void appendFloat(float value) { this->beginValue(); this->appendf("%g", value); } in appendFloat()
203 void appendDouble(double value) { this->beginValue(); this->appendf("%g", value); } in appendDouble()
205 this->beginValue(); in appendFloatDigits()
206 this->appendf("%.*g", digits, value); in appendFloatDigits()
209 this->beginValue(); in appendDoubleDigits()
210 this->appendf("%.*g", digits, value); in appendDoubleDigits()
212 void appendHexU32(uint32_t value) { this->beginValue(); this->appendf("\"0x%x\"", value); } in appendHexU32()
216 void function(const char* name, type value) { this->appendName(name); this->function(value); }
237 this->appendName(name); in DEFINE_NAMED_APPEND()
238 this->appendFloatDigits(value, digits); in DEFINE_NAMED_APPEND()
241 this->appendName(name); in appendDoubleDigits()
242 this->appendDoubleDigits(value, digits); in appendDoubleDigits()
277 this->write(",", 1);
279 if (Scope::kArray == this->scope()) {
280 this->separator(this->multiline());
281 } else if (Scope::kObject == this->scope() && Mode::kPretty == fMode) {
282 this->write(" ", 1);
287 fState = Scope::kArray == this->scope() ? State::kArrayValue : State::kObjectValue;
294 this->write("\n", 1); in separator()
296 this->write(" ", 3); in separator()
299 this->write(" ", 1); in separator()
307 this->flush(); in write()
331 switch (this->scope()) { in popScope()