Terraria v1.4.4.9
Terraria source code documentation
Loading...
Searching...
No Matches

◆ Ucs4ToUTF16()

void System.Xml.Ucs4Decoder.Ucs4ToUTF16 ( uint code,
char[] chars,
int charIndex )
inlinepackageinherited

Definition at line 112 of file Ucs4Decoder.cs.

113 {
114 chars[charIndex] = (char)(55296 + (ushort)((code >> 16) - 1) + (ushort)((code >> 10) & 0x3F));
115 chars[charIndex + 1] = (char)(56320 + (ushort)(code & 0x3FF));
116 }

References System.charIndex, System.chars, and System.Xml.Dictionary.

Referenced by System.Xml.Ucs4Decoder1234.GetFullChars(), System.Xml.Ucs4Decoder2143.GetFullChars(), System.Xml.Ucs4Decoder3412.GetFullChars(), and System.Xml.Ucs4Decoder4321.GetFullChars().