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

◆ GetCategoryCasingTableOffsetNoBoundsChecks()

static nuint System.Globalization.CharUnicodeInfo.GetCategoryCasingTableOffsetNoBoundsChecks ( uint codePoint)
inlinestaticprivate

Definition at line 3954 of file CharUnicodeInfo.cs.

3955 {
3956 uint num = Unsafe.AddByteOffset(ref MemoryMarshal.GetReference(CategoryCasingLevel1Index), codePoint >> 9);
3957 ref byte source = ref Unsafe.AddByteOffset(ref MemoryMarshal.GetReference(CategoryCasingLevel2Index), (num << 6) + ((codePoint >> 3) & 0x3E));
3958 _ = BitConverter.IsLittleEndian;
3959 num = Unsafe.ReadUnaligned<ushort>(ref source);
3960 return Unsafe.AddByteOffset(ref MemoryMarshal.GetReference(CategoryCasingLevel3Index), (num << 4) + (codePoint & 0xF));
3961 }
static ReadOnlySpan< byte > CategoryCasingLevel1Index
static ReadOnlySpan< byte > CategoryCasingLevel2Index
static ReadOnlySpan< byte > CategoryCasingLevel3Index

References System.Globalization.CharUnicodeInfo.CategoryCasingLevel1Index, System.Globalization.CharUnicodeInfo.CategoryCasingLevel2Index, System.Globalization.CharUnicodeInfo.CategoryCasingLevel3Index, System.codePoint, System.BitConverter.IsLittleEndian, and System.source.

Referenced by System.Globalization.CharUnicodeInfo.GetBidiCategoryNoBoundsChecks(), System.Globalization.CharUnicodeInfo.GetIsWhiteSpace(), System.Globalization.CharUnicodeInfo.GetUnicodeCategoryNoBoundsChecks(), System.Globalization.CharUnicodeInfo.ToLower(), System.Globalization.CharUnicodeInfo.ToLower(), System.Globalization.CharUnicodeInfo.ToUpper(), and System.Globalization.CharUnicodeInfo.ToUpper().