Home
last modified time | relevance | path

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

/llvm-project-15.0.7/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-15.0.7/llvm/utils/unittest/googletest/src/
H A Dgtest.cc1764 std::string CodePointToUtf8(UInt32 code_point) { in CodePointToUtf8() argument
1765 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 …]
H A Dgtest-internal-inl.h230 GTEST_API_ std::string CodePointToUtf8(UInt32 code_point);