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
1989 std::string CodePointToUtf8(uint32_t code_point) { in CodePointToUtf8() argument1990 if (code_point > kMaxCodePoint4) { in CodePointToUtf8()1991 return "(Invalid Unicode 0x" + String::FormatHexUInt32(code_point) + ")"; in CodePointToUtf8()1995 if (code_point <= kMaxCodePoint1) { in CodePointToUtf8()1997 str[0] = static_cast<char>(code_point); // 0xxxxxxx in CodePointToUtf8()1998 } else if (code_point <= kMaxCodePoint2) { in CodePointToUtf8()2000 str[1] = static_cast<char>(0x80 | ChopLowBits(&code_point, 6)); // 10xxxxxx in CodePointToUtf8()2001 str[0] = static_cast<char>(0xC0 | code_point); // 110xxxxx in CodePointToUtf8()2002 } else if (code_point <= kMaxCodePoint3) { in CodePointToUtf8()2004 str[2] = static_cast<char>(0x80 | ChopLowBits(&code_point, 6)); // 10xxxxxx in CodePointToUtf8()[all …]
225 GTEST_API_ std::string CodePointToUtf8(uint32_t code_point);