Home
last modified time | relevance | path

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

/external/llvm/lib/Support/
DYAMLParser.cpp573 static void encodeUTF8( uint32_t UnicodeScalarValue in encodeUTF8() argument
575 if (UnicodeScalarValue <= 0x7F) { in encodeUTF8()
576 Result.push_back(UnicodeScalarValue & 0x7F); in encodeUTF8()
577 } else if (UnicodeScalarValue <= 0x7FF) { in encodeUTF8()
578 uint8_t FirstByte = 0xC0 | ((UnicodeScalarValue & 0x7C0) >> 6); in encodeUTF8()
579 uint8_t SecondByte = 0x80 | (UnicodeScalarValue & 0x3F); in encodeUTF8()
582 } else if (UnicodeScalarValue <= 0xFFFF) { in encodeUTF8()
583 uint8_t FirstByte = 0xE0 | ((UnicodeScalarValue & 0xF000) >> 12); in encodeUTF8()
584 uint8_t SecondByte = 0x80 | ((UnicodeScalarValue & 0xFC0) >> 6); in encodeUTF8()
585 uint8_t ThirdByte = 0x80 | (UnicodeScalarValue & 0x3F); in encodeUTF8()
[all …]