Home
last modified time | relevance | path

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

/netbsd-src/external/apache2/llvm/dist/llvm/lib/Support/
H A DYAMLParser.cpp558 static void encodeUTF8( uint32_t UnicodeScalarValue in encodeUTF8() argument
560 if (UnicodeScalarValue <= 0x7F) { in encodeUTF8()
561 Result.push_back(UnicodeScalarValue & 0x7F); in encodeUTF8()
562 } else if (UnicodeScalarValue <= 0x7FF) { in encodeUTF8()
563 uint8_t FirstByte = 0xC0 | ((UnicodeScalarValue & 0x7C0) >> 6); in encodeUTF8()
564 uint8_t SecondByte = 0x80 | (UnicodeScalarValue & 0x3F); in encodeUTF8()
567 } else if (UnicodeScalarValue <= 0xFFFF) { in encodeUTF8()
568 uint8_t FirstByte = 0xE0 | ((UnicodeScalarValue & 0xF000) >> 12); in encodeUTF8()
569 uint8_t SecondByte = 0x80 | ((UnicodeScalarValue & 0xFC0) >> 6); in encodeUTF8()
570 uint8_t ThirdByte = 0x80 | (UnicodeScalarValue & 0x3F); in encodeUTF8()
[all …]