Lines Matching defs:out
35 static ssize_t parseInt32(const char *data, size_t numDigits, int32_t *out) {
50 *out = x;
55 ssize_t JSONValue::Parse(const char *data, size_t size, JSONValue *out) {
109 out->setArray(array);
182 out->setObject(obj);
236 out->setString(s);
314 out->setInt32(negate ? -x : x);
338 out->setFloat(negate ? -x : x);
343 out->unset();
346 out->setBoolean(true);
349 out->setBoolean(false);
525 static void EscapeString(const char *in, size_t inSize, AString *out) {
526 CHECK(in != out->c_str());
527 out->clear();
533 out->append("\\\"");
536 out->append("\\\\");
539 out->append("\\/");
542 out->append("\\b");
545 out->append("\\f");
548 out->append("\\n");
551 out->append("\\r");
554 out->append("\\t");
557 out->append(c);
566 AString out;
575 out.append("\"");
576 out.append(escaped);
577 out.append("\"");
583 out = AStringPrintf("%d", mValue.mInt32);
589 out = AStringPrintf("%f", mValue.mFloat);
595 out = mValue.mBoolean ? "true" : "false";
601 out = "null";
608 out = (mType == TYPE_OBJECT) ? "{\n" : "[\n";
609 out.append(mValue.mObjectOrArray->internalToString(depth + 1));
610 out.append("\n");
611 out.append(kIndent, 2 * depth);
612 out.append(mType == TYPE_OBJECT ? "}" : "]");
621 out.insert(kIndent, 2 * depth, 0);
624 return out;
689 AString out;
695 out.append(kIndent, 2 * depth);
696 out.append("\"");
697 out.append(escapedKey);
698 out.append("\": ");
700 out.append(mValues.valueAt(i).toString(depth + 1, false));
703 out.append(",\n");
707 return out;
739 AString out;
741 out.append(mValues.itemAt(i).toString(depth));
744 out.append(",\n");
748 return out;