Monobjc.Tools.Generator.Parsers.Sgml.Ucs4Decoder.UnicodeToUTF16 C# (CSharp) Method

UnicodeToUTF16() static private method

static private UnicodeToUTF16 ( UInt32 code ) : char
code System.UInt32
return char
        internal static char UnicodeToUTF16(UInt32 code)
        {
            byte lowerByte, higherByte;
            lowerByte = (byte) (0xD7C0 + (code >> 10));
            higherByte = (byte) (0xDC00 | code & 0x3ff);
            return ((char) ((higherByte << 8) | lowerByte));
        }