Terraria v1.4.4.9
Terraria source code documentation
Loading...
Searching...
No Matches
SurrogateCasing.cs
Go to the documentation of this file.
2using System.Text;
3
5
6internal static class SurrogateCasing
7{
8 [MethodImpl(MethodImplOptions.AggressiveInlining)]
9 internal static void ToUpper(char h, char l, out char hr, out char lr)
10 {
12 }
13
14 [MethodImpl(MethodImplOptions.AggressiveInlining)]
15 internal static void ToLower(char h, char l, out char hr, out char lr)
16 {
18 }
19
20 [MethodImpl(MethodImplOptions.AggressiveInlining)]
21 internal static bool Equal(char h1, char l1, char h2, char l2)
22 {
23 ToUpper(h1, l1, out var hr, out var lr);
24 ToUpper(h2, l2, out var hr2, out var lr2);
25 if (hr == hr2)
26 {
27 return lr == lr2;
28 }
29 return false;
30 }
31}
static char ToLower(char codePoint)
static char ToUpper(char codePoint)
static void ToLower(char h, char l, out char hr, out char lr)
static void ToUpper(char h, char l, out char hr, out char lr)
static bool Equal(char h1, char l1, char h2, char l2)
static void GetUtf16SurrogatesFromSupplementaryPlaneScalar(uint value, out char highSurrogateCodePoint, out char lowSurrogateCodePoint)
static uint GetScalarFromUtf16SurrogatePair(uint highSurrogateCodePoint, uint lowSurrogateCodePoint)