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

◆ GetUtf16SurrogatesFromSupplementaryPlaneScalar()

static void System.Text.UnicodeUtility.GetUtf16SurrogatesFromSupplementaryPlaneScalar ( uint value,
out char highSurrogateCodePoint,
out char lowSurrogateCodePoint )
inlinestatic

Definition at line 26 of file UnicodeUtility.cs.

27 {
28 highSurrogateCodePoint = (char)(value + 56557568 >> 10);
29 lowSurrogateCodePoint = (char)((value & 0x3FF) + 56320);
30 }

References System.value.

Referenced by System.Globalization.SurrogateCasing.ToLower(), System.Text.Rune.ToString(), System.Globalization.SurrogateCasing.ToUpper(), and System.Text.Rune.TryEncodeToUtf16().