reference, declaration → definition definition → references, declarations, derived classes, virtual overrides reference to multiple definitions → definitions unreferenced |
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); // 110xxxxx 1772 } else if (code_point <= kMaxCodePoint3) { 1774 str[2] = static_cast<char>(0x80 | ChopLowBits(&code_point, 6)); // 10xxxxxx 1775 str[1] = static_cast<char>(0x80 | ChopLowBits(&code_point, 6)); // 10xxxxxx 1776 str[0] = static_cast<char>(0xE0 | code_point); // 1110xxxx 1779 str[3] = static_cast<char>(0x80 | ChopLowBits(&code_point, 6)); // 10xxxxxx 1780 str[2] = static_cast<char>(0x80 | ChopLowBits(&code_point, 6)); // 10xxxxxx 1781 str[1] = static_cast<char>(0x80 | ChopLowBits(&code_point, 6)); // 10xxxxxx 1782 str[0] = static_cast<char>(0xF0 | code_point); // 11110xxx