Searched refs:UnicodeScalarValue (Results 1 – 1 of 1) sorted by relevance
520 static void encodeUTF8( uint32_t UnicodeScalarValue in encodeUTF8() argument522 if (UnicodeScalarValue <= 0x7F) { in encodeUTF8()523 Result.push_back(UnicodeScalarValue & 0x7F); in encodeUTF8()524 } else if (UnicodeScalarValue <= 0x7FF) { in encodeUTF8()525 uint8_t FirstByte = 0xC0 | ((UnicodeScalarValue & 0x7C0) >> 6); in encodeUTF8()526 uint8_t SecondByte = 0x80 | (UnicodeScalarValue & 0x3F); in encodeUTF8()529 } else if (UnicodeScalarValue <= 0xFFFF) { in encodeUTF8()530 uint8_t FirstByte = 0xE0 | ((UnicodeScalarValue & 0xF000) >> 12); in encodeUTF8()531 uint8_t SecondByte = 0x80 | ((UnicodeScalarValue & 0xFC0) >> 6); in encodeUTF8()532 uint8_t ThirdByte = 0x80 | (UnicodeScalarValue & 0x3F); in encodeUTF8()[all …]