Lines Matching refs:out

31 static ssize_t parseInt32(const char *data, size_t numDigits, int32_t *out) {  in parseInt32()  argument
46 *out = x; in parseInt32()
51 ssize_t JSONValue::Parse(const char *data, size_t size, JSONValue *out) { in Parse() argument
105 out->setArray(array); in Parse()
178 out->setObject(obj); in Parse()
232 out->setString(s); in Parse()
310 out->setInt32(negate ? -x : x); in Parse()
334 out->setFloat(negate ? -x : x); in Parse()
339 out->unset(); in Parse()
342 out->setBoolean(true); in Parse()
345 out->setBoolean(false); in Parse()
521 static void EscapeString(const char *in, size_t inSize, AString *out) { in EscapeString() argument
522 CHECK(in != out->c_str()); in EscapeString()
523 out->clear(); in EscapeString()
529 out->append("\\\""); in EscapeString()
532 out->append("\\\\"); in EscapeString()
535 out->append("\\/"); in EscapeString()
538 out->append("\\b"); in EscapeString()
541 out->append("\\f"); in EscapeString()
544 out->append("\\n"); in EscapeString()
547 out->append("\\r"); in EscapeString()
550 out->append("\\t"); in EscapeString()
553 out->append(c); in EscapeString()
562 AString out; in toString() local
571 out.append("\""); in toString()
572 out.append(escaped); in toString()
573 out.append("\""); in toString()
579 out = AStringPrintf("%d", mValue.mInt32); in toString()
585 out = AStringPrintf("%f", mValue.mFloat); in toString()
591 out = mValue.mBoolean ? "true" : "false"; in toString()
597 out = "null"; in toString()
604 out = (mType == TYPE_OBJECT) ? "{\n" : "[\n"; in toString()
605 out.append(mValue.mObjectOrArray->internalToString(depth + 1)); in toString()
606 out.append("\n"); in toString()
607 out.append(kIndent, 2 * depth); in toString()
608 out.append(mType == TYPE_OBJECT ? "}" : "]"); in toString()
617 out.insert(kIndent, 2 * depth, 0); in toString()
620 return out; in toString()
685 AString out; in internalToString() local
691 out.append(kIndent, 2 * depth); in internalToString()
692 out.append("\""); in internalToString()
693 out.append(escapedKey); in internalToString()
694 out.append("\": "); in internalToString()
696 out.append(mValues.valueAt(i).toString(depth + 1, false)); in internalToString()
699 out.append(",\n"); in internalToString()
703 return out; in internalToString()
735 AString out; in internalToString() local
737 out.append(mValues.itemAt(i).toString(depth)); in internalToString()
740 out.append(",\n"); in internalToString()
744 return out; in internalToString()