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

◆ IcuStartsWith()

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

Definition at line 1392 of file CompareInfo.cs.

1393 {
1395 {
1396 if ((options & CompareOptions.IgnoreCase) != 0)
1397 {
1399 }
1401 }
1402 fixed (char* source2 = &MemoryMarshal.GetReference(source))
1403 {
1404 fixed (char* target = &MemoryMarshal.GetReference(prefix))
1405 {
1407 }
1408 }
1409 }
static unsafe bool StartsWith(IntPtr sortHandle, char *target, int cwTargetLength, char *source, int cwSourceLength, CompareOptions options, int *matchedLength)
unsafe bool StartsWithOrdinalIgnoreCaseHelper(ReadOnlySpan< char > source, ReadOnlySpan< char > prefix, CompareOptions options, int *matchLengthPtr)
unsafe bool StartsWithOrdinalHelper(ReadOnlySpan< char > source, ReadOnlySpan< char > prefix, CompareOptions options, int *matchLengthPtr)
static bool CanUseAsciiOrdinalForOptions(CompareOptions options)

References System.Globalization.CompareInfo._isAsciiEqualityOrdinal, System.Globalization.CompareInfo._sortHandle, System.Globalization.CompareInfo.CanUseAsciiOrdinalForOptions(), System.Runtime.Serialization.Dictionary, System.options, System.prefix, System.source, Interop.Globalization.StartsWith(), System.Globalization.CompareInfo.StartsWithOrdinalHelper(), and System.Globalization.CompareInfo.StartsWithOrdinalIgnoreCaseHelper().

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