Lines Matching refs:code_point
35 bool EscapeSpecialCodePoint(uint32_t code_point, std::string* dest) { in EscapeSpecialCodePoint() argument
39 switch (code_point) { in EscapeSpecialCodePoint()
93 uint32_t code_point; in EscapeJSONStringImpl() local
94 if (!ReadUnicodeCharacter(str.data(), length, &i, &code_point) || in EscapeJSONStringImpl()
95 code_point == static_cast<decltype(code_point)>(CBU_SENTINEL) || in EscapeJSONStringImpl()
96 !IsValidCharacter(code_point)) { in EscapeJSONStringImpl()
97 code_point = kReplacementCodePoint; in EscapeJSONStringImpl()
101 if (EscapeSpecialCodePoint(code_point, dest)) in EscapeJSONStringImpl()
105 if (code_point < 32) in EscapeJSONStringImpl()
106 base::StringAppendF(dest, kU16EscapeFormat, code_point); in EscapeJSONStringImpl()
108 WriteUnicodeCharacter(code_point, dest); in EscapeJSONStringImpl()