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

◆ IcuGetSortKey()

unsafe int System.Globalization.CompareInfo.IcuGetSortKey ( ReadOnlySpan< char > source,
Span< byte > destination,
CompareOptions options )
inlineprivate

Definition at line 1707 of file CompareInfo.cs.

1708 {
1709 int sortKey2;
1710 fixed (char* str = &MemoryMarshal.GetReference(source))
1711 {
1712 fixed (byte* sortKey = &MemoryMarshal.GetReference(destination))
1713 {
1715 }
1716 }
1717 if ((uint)sortKey2 > (uint)destination.Length)
1718 {
1719 if (sortKey2 <= destination.Length)
1720 {
1721 throw new ArgumentException(SR.Arg_ExternalException);
1722 }
1723 ThrowHelper.ThrowArgumentException_DestinationTooShort();
1724 }
1725 return sortKey2;
1726 }
static unsafe int GetSortKey(IntPtr sortHandle, char *str, int strLength, byte *sortKey, int sortKeyLength, CompareOptions options)

References System.Globalization.CompareInfo._sortHandle, System.SR.Arg_ExternalException, System.destination, System.Runtime.Serialization.Dictionary, Interop.Globalization.GetSortKey(), System.options, System.source, System.str, and System.ThrowHelper.ThrowArgumentException_DestinationTooShort().

Referenced by System.Globalization.CompareInfo.GetSortKeyCore().