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

◆ IcuCreateSortKey()

unsafe SortKey System.Globalization.CompareInfo.IcuCreateSortKey ( string source,
CompareOptions options )
inlineprivate

Definition at line 1680 of file CompareInfo.cs.

1681 {
1682 if (source == null)
1683 {
1684 throw new ArgumentNullException("source");
1685 }
1686 if (((uint)options & 0xDFFFFFE0u) != 0)
1687 {
1688 throw new ArgumentException(SR.Argument_InvalidFlag, "options");
1689 }
1690 byte[] array;
1691 fixed (char* str = source)
1692 {
1694 array = new byte[sortKey];
1695 fixed (byte[] array2 = array)
1696 {
1698 {
1699 throw new ArgumentException(SR.Arg_ExternalException);
1700 }
1701 }
1702 array2 = null;
1703 }
1704 return new SortKey(this, source, options, array);
1705 }
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.SR.Argument_InvalidFlag, System.array, System.Runtime.Serialization.Dictionary, Interop.Globalization.GetSortKey(), System.options, System.source, and System.str.

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