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

/gem5/ext/googletest/googletest/src/
H A Dgtest.cc1754 // code_point parameter is of type UInt32 because wchar_t may not be
1756 // If the code_point is not a valid Unicode code point
1759 std::string CodePointToUtf8(UInt32 code_point) { argument
1760 if (code_point > kMaxCodePoint4) {
1761 return "(Invalid Unicode 0x" + String::FormatHexInt(code_point) + ")";
1765 if (code_point <= kMaxCodePoint1) {
1767 str[0] = static_cast<char>(code_point); // 0xxxxxxx
1768 } else if (code_point <= kMaxCodePoint2) {
1770 str[1] = static_cast<char>(0x80 | ChopLowBits(&code_point, 6)); // 10xxxxxx
1771 str[0] = static_cast<char>(0xC0 | code_point); // 11
[all...]
H A Dgtest-internal-inl.h228 // code_point parameter is of type UInt32 because wchar_t may not be
230 // If the code_point is not a valid Unicode code point
233 GTEST_API_ std::string CodePointToUtf8(UInt32 code_point);

Completed in 21 milliseconds