Home
last modified time | relevance | path

Searched refs:code_point (Results 1 – 3 of 3) sorted by relevance

/llvm-project/libcxx/utils/
H A Dgenerate_extended_grapheme_cluster_test.py41 code_point = -1
50 if code_point != -1:
51 result.code_points.append(code_point)
52 code_point = -1
70 if code_point == -1:
71 code_point = i
/llvm-project/third-party/unittest/googletest/src/
H A Dgtest.cc1989 std::string CodePointToUtf8(uint32_t code_point) { in CodePointToUtf8() argument
1990 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 …]
H A Dgtest-internal-inl.h225 GTEST_API_ std::string CodePointToUtf8(uint32_t code_point);