Searched refs:code_point (Results 1 – 3 of 3) sorted by relevance
41 code_point = -150 if code_point != -1:51 result.code_points.append(code_point)52 code_point = -170 if code_point == -1:71 code_point = i
1764 std::string CodePointToUtf8(UInt32 code_point) { in CodePointToUtf8() argument1765 if (code_point > kMaxCodePoint4) { in CodePointToUtf8()1766 return "(Invalid Unicode 0x" + String::FormatHexUInt32(code_point) + ")"; in CodePointToUtf8()1770 if (code_point <= kMaxCodePoint1) { in CodePointToUtf8()1772 str[0] = static_cast<char>(code_point); // 0xxxxxxx in CodePointToUtf8()1773 } else if (code_point <= kMaxCodePoint2) { in CodePointToUtf8()1775 str[1] = static_cast<char>(0x80 | ChopLowBits(&code_point, 6)); // 10xxxxxx in CodePointToUtf8()1776 str[0] = static_cast<char>(0xC0 | code_point); // 110xxxxx in CodePointToUtf8()1777 } else if (code_point <= kMaxCodePoint3) { in CodePointToUtf8()1779 str[2] = static_cast<char>(0x80 | ChopLowBits(&code_point, 6)); // 10xxxxxx in CodePointToUtf8()[all …]
230 GTEST_API_ std::string CodePointToUtf8(UInt32 code_point);