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

/freebsd-current/contrib/llvm-project/llvm/lib/Support/
H A DYAMLParser.cpp579 /// encodeUTF8 - Encode \a UnicodeScalarValue in UTF-8 and append it to result.
580 static void encodeUTF8( uint32_t UnicodeScalarValue
582 if (UnicodeScalarValue <= 0x7F) {
583 Result.push_back(UnicodeScalarValue & 0x7F);
584 } else if (UnicodeScalarValue <= 0x7FF) {
585 uint8_t FirstByte = 0xC0 | ((UnicodeScalarValue & 0x7C0) >> 6);
586 uint8_t SecondByte = 0x80 | (UnicodeScalarValue & 0x3F);
589 } else if (UnicodeScalarValue <= 0xFFFF) {
590 uint8_t FirstByte = 0xE0 | ((UnicodeScalarValue & 0xF000) >> 12);
591 uint8_t SecondByte = 0x80 | ((UnicodeScalarValue
734 UTF8Decoded UnicodeScalarValue local
[all...]

Completed in 165 milliseconds