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

◆ IcuIndexOfCore()

unsafe int System.Globalization.CompareInfo.IcuIndexOfCore ( ReadOnlySpan< char > source,
ReadOnlySpan< char > target,
CompareOptions options,
int * matchLengthPtr,
bool fromBeginning )
inlineprivate

Definition at line 1132 of file CompareInfo.cs.

1133 {
1135 {
1136 if ((options & CompareOptions.IgnoreCase) != 0)
1137 {
1139 }
1141 }
1142 fixed (char* pSource = &MemoryMarshal.GetReference(source))
1143 {
1144 fixed (char* target2 = &MemoryMarshal.GetReference(target))
1145 {
1146 if (fromBeginning)
1147 {
1149 }
1151 }
1152 }
1153 }
static unsafe int IndexOf(IntPtr sortHandle, char *target, int cwTargetLength, char *pSource, int cwSourceLength, CompareOptions options, int *matchLengthPtr)
static unsafe int LastIndexOf(IntPtr sortHandle, char *target, int cwTargetLength, char *pSource, int cwSourceLength, CompareOptions options, int *matchLengthPtr)
unsafe int IndexOfOrdinalIgnoreCaseHelper(ReadOnlySpan< char > source, ReadOnlySpan< char > target, CompareOptions options, int *matchLengthPtr, bool fromBeginning)
static bool CanUseAsciiOrdinalForOptions(CompareOptions options)
unsafe int IndexOfOrdinalHelper(ReadOnlySpan< char > source, ReadOnlySpan< char > target, CompareOptions options, int *matchLengthPtr, bool fromBeginning)

References System.Globalization.CompareInfo._isAsciiEqualityOrdinal, System.Globalization.CompareInfo._sortHandle, System.Globalization.CompareInfo.CanUseAsciiOrdinalForOptions(), System.Runtime.Serialization.Dictionary, Interop.Globalization.IndexOf(), System.Globalization.CompareInfo.IndexOfOrdinalHelper(), System.Globalization.CompareInfo.IndexOfOrdinalIgnoreCaseHelper(), Interop.Globalization.LastIndexOf(), System.options, and System.source.

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