Lines Matching refs:Rune
564 static void encodeUtf8(uint32_t Rune, std::string &Out) { in encodeUtf8() argument
565 if (Rune < 0x80) { in encodeUtf8()
566 Out.push_back(Rune & 0x7F); in encodeUtf8()
567 } else if (Rune < 0x800) { in encodeUtf8()
568 uint8_t FirstByte = 0xC0 | ((Rune & 0x7C0) >> 6); in encodeUtf8()
569 uint8_t SecondByte = 0x80 | (Rune & 0x3F); in encodeUtf8()
572 } else if (Rune < 0x10000) { in encodeUtf8()
573 uint8_t FirstByte = 0xE0 | ((Rune & 0xF000) >> 12); in encodeUtf8()
574 uint8_t SecondByte = 0x80 | ((Rune & 0xFC0) >> 6); in encodeUtf8()
575 uint8_t ThirdByte = 0x80 | (Rune & 0x3F); in encodeUtf8()
579 } else if (Rune < 0x110000) { in encodeUtf8()
580 uint8_t FirstByte = 0xF0 | ((Rune & 0x1F0000) >> 18); in encodeUtf8()
581 uint8_t SecondByte = 0x80 | ((Rune & 0x3F000) >> 12); in encodeUtf8()
582 uint8_t ThirdByte = 0x80 | ((Rune & 0xFC0) >> 6); in encodeUtf8()
583 uint8_t FourthByte = 0x80 | (Rune & 0x3F); in encodeUtf8()