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

◆ ToUpper() [2/2]

static uint System.Globalization.CharUnicodeInfo.ToUpper ( uint codePoint)
inlinestaticpackage

Definition at line 3843 of file CharUnicodeInfo.cs.

3844 {
3846 {
3847 ThrowHelper.ThrowArgumentOutOfRangeException(ExceptionArgument.codePoint);
3848 }
3849 nuint categoryCasingTableOffsetNoBoundsChecks = GetCategoryCasingTableOffsetNoBoundsChecks(codePoint);
3850 ref short reference = ref Unsafe.Add(ref Unsafe.As<byte, short>(ref MemoryMarshal.GetReference(UppercaseValues)), (nint)categoryCasingTableOffsetNoBoundsChecks);
3851 if (!BitConverter.IsLittleEndian)
3852 {
3853 }
3854 int num = reference;
3855 return (uint)num + codePoint;
3856 }
static ReadOnlySpan< byte > UppercaseValues
static nuint GetCategoryCasingTableOffsetNoBoundsChecks(uint codePoint)
static bool IsValidCodePoint(uint codePoint)

References System.codePoint, System.Globalization.CharUnicodeInfo.GetCategoryCasingTableOffsetNoBoundsChecks(), System.BitConverter.IsLittleEndian, System.Text.UnicodeUtility.IsValidCodePoint(), System.ThrowHelper.ThrowArgumentOutOfRangeException(), and System.Globalization.CharUnicodeInfo.UppercaseValues.