Lines Matching defs:code_point
60 // Try to escape the |code_point| if it is a known special character. If
63 bool EscapeSpecialCodePoint(uint32_t code_point, std::string* dest) {
67 switch (code_point) {
103 if (code_point >= 32)
106 base::StringAppendF(dest, kU16EscapeFormat, code_point);
141 uint32_t code_point;
142 if (!ReadUnicodeCharacter(str.data(), length, &i, &code_point) ||
143 code_point == static_cast<decltype(code_point)>(CBU_SENTINEL) ||
144 !IsValidCharacter(code_point)) {
145 code_point = kReplacementCodePoint;
149 if (!EscapeSpecialCodePoint(code_point, dest))
150 WriteUnicodeCharacter(code_point, dest);