Home
last modified time | relevance | path

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

/rocksdb-6.9/third-party/gtest-1.8.1/fused-src/gtest/
Dgtest-all.cc633 GTEST_API_ std::string CodePointToUtf8(UInt32 code_point);
3260 std::string CodePointToUtf8(UInt32 code_point) { in CodePointToUtf8() argument
3261 if (code_point > kMaxCodePoint4) { in CodePointToUtf8()
3262 return "(Invalid Unicode 0x" + String::FormatHexInt(code_point) + ")"; in CodePointToUtf8()
3266 if (code_point <= kMaxCodePoint1) { in CodePointToUtf8()
3268 str[0] = static_cast<char>(code_point); // 0xxxxxxx in CodePointToUtf8()
3269 } else if (code_point <= kMaxCodePoint2) { in CodePointToUtf8()
3271 str[1] = static_cast<char>(0x80 | ChopLowBits(&code_point, 6)); // 10xxxxxx in CodePointToUtf8()
3272 str[0] = static_cast<char>(0xC0 | code_point); // 110xxxxx in CodePointToUtf8()
3273 } else if (code_point <= kMaxCodePoint3) { in CodePointToUtf8()
[all …]