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

◆ InvariantGetSortKey()

static int System.Globalization.CompareInfo.InvariantGetSortKey ( ReadOnlySpan< char > source,
Span< byte > destination,
CompareOptions options )
inlinestaticprivate

Definition at line 1865 of file CompareInfo.cs.

1866 {
1867 if ((uint)destination.Length < (uint)(source.Length * 2))
1868 {
1869 ThrowHelper.ThrowArgumentException_DestinationTooShort();
1870 }
1871 if ((options & CompareOptions.IgnoreCase) == 0)
1872 {
1874 }
1875 else
1876 {
1878 }
1879 return source.Length * 2;
1880 }
static void InvariantCreateSortKeyOrdinal(ReadOnlySpan< char > source, Span< byte > sortKey)
static void InvariantCreateSortKeyOrdinalIgnoreCase(ReadOnlySpan< char > source, Span< byte > sortKey)

References System.destination, System.Runtime.Serialization.Dictionary, System.Globalization.CompareInfo.InvariantCreateSortKeyOrdinal(), System.Globalization.CompareInfo.InvariantCreateSortKeyOrdinalIgnoreCase(), System.options, System.source, and System.ThrowHelper.ThrowArgumentException_DestinationTooShort().

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