• Home
  • Raw
  • Download

Lines Matching refs:dest

31 bool EscapeSpecialCodePoint(uint32 code_point, std::string* dest) {  in EscapeSpecialCodePoint()  argument
37 dest->append("\\b"); in EscapeSpecialCodePoint()
40 dest->append("\\f"); in EscapeSpecialCodePoint()
43 dest->append("\\n"); in EscapeSpecialCodePoint()
46 dest->append("\\r"); in EscapeSpecialCodePoint()
49 dest->append("\\t"); in EscapeSpecialCodePoint()
52 dest->append("\\\\"); in EscapeSpecialCodePoint()
55 dest->append("\\\""); in EscapeSpecialCodePoint()
60 dest->append("\\u003C"); in EscapeSpecialCodePoint()
69 bool EscapeJSONStringImpl(const S& str, bool put_in_quotes, std::string* dest) { in EscapeJSONStringImpl() argument
73 dest->push_back('"'); in EscapeJSONStringImpl()
86 if (EscapeSpecialCodePoint(code_point, dest)) in EscapeJSONStringImpl()
91 base::StringAppendF(dest, kU16EscapeFormat, code_point); in EscapeJSONStringImpl()
93 WriteUnicodeCharacter(code_point, dest); in EscapeJSONStringImpl()
97 dest->push_back('"'); in EscapeJSONStringImpl()
106 std::string* dest) { in EscapeJSONString() argument
107 return EscapeJSONStringImpl(str, put_in_quotes, dest); in EscapeJSONString()
112 std::string* dest) { in EscapeJSONString() argument
113 return EscapeJSONStringImpl(str, put_in_quotes, dest); in EscapeJSONString()
117 std::string dest; in GetQuotedJSONString() local
118 bool ok = EscapeJSONStringImpl(str, true, &dest); in GetQuotedJSONString()
120 return dest; in GetQuotedJSONString()
124 std::string dest; in GetQuotedJSONString() local
125 bool ok = EscapeJSONStringImpl(str, true, &dest); in GetQuotedJSONString()
127 return dest; in GetQuotedJSONString()
132 std::string dest; in EscapeBytesAsInvalidJSONString() local
135 dest.push_back('"'); in EscapeBytesAsInvalidJSONString()
139 if (EscapeSpecialCodePoint(c, &dest)) in EscapeBytesAsInvalidJSONString()
143 base::StringAppendF(&dest, kU16EscapeFormat, c); in EscapeBytesAsInvalidJSONString()
145 dest.push_back(*it); in EscapeBytesAsInvalidJSONString()
149 dest.push_back('"'); in EscapeBytesAsInvalidJSONString()
151 return dest; in EscapeBytesAsInvalidJSONString()