@@ -80,7 +80,7 @@ internal static int LastIndexOfOrdinalCore(string source, string value, int star
8080 Debug . Assert ( value != null ) ;
8181
8282 int offset = startIndex - count + 1 ;
83- int retVal = IndexOfOrdinalCore ( source . AsSpan ( offset , count ) , value . AsSpan ( ) , ignoreCase , fromBegining : false ) ;
83+ int retVal = IndexOfOrdinalCore ( source . AsSpan ( offset , count ) , value . AsSpan ( ) , ignoreCase , fromBeginning : false ) ;
8484 if ( retVal >= 0 )
8585 {
8686 retVal += offset ;
@@ -252,7 +252,7 @@ private unsafe int IndexOfOrdinalIgnoreCaseHelper(ReadOnlySpan<char> source, Rea
252252 if ( fromBeginning )
253253 return Interop . Globalization . IndexOf ( _sortHandle , b , target . Length , a , source . Length , options , matchLengthPtr ) ;
254254 else
255- return Interop . Globalization . LastIndexOf ( _sortHandle , b , target . Length , a , source . Length , options ) ;
255+ return Interop . Globalization . LastIndexOf ( _sortHandle , b , target . Length , a , source . Length , options , matchLengthPtr ) ;
256256 }
257257 }
258258
@@ -347,7 +347,7 @@ private unsafe int IndexOfOrdinalHelper(ReadOnlySpan<char> source, ReadOnlySpan<
347347 if ( fromBeginning )
348348 return Interop . Globalization . IndexOf ( _sortHandle , b , target . Length , a , source . Length , options , matchLengthPtr ) ;
349349 else
350- return Interop . Globalization . LastIndexOf ( _sortHandle , b , target . Length , a , source . Length , options ) ;
350+ return Interop . Globalization . LastIndexOf ( _sortHandle , b , target . Length , a , source . Length , options , matchLengthPtr ) ;
351351 }
352352 }
353353
@@ -387,14 +387,14 @@ private unsafe int LastIndexOfCore(string source, string target, int startIndex,
387387 fixed ( char * pSource = source )
388388 fixed ( char * pTarget = target )
389389 {
390- lastIndex = Interop . Globalization . LastIndexOf ( _sortHandle , pTarget , target . Length , pSource + ( startIndex - count + 1 ) , count , options ) ;
390+ lastIndex = Interop . Globalization . LastIndexOf ( _sortHandle , pTarget , target . Length , pSource + ( startIndex - count + 1 ) , count , options , matchLengthPtr : null ) ;
391391 }
392392 }
393393
394394 return lastIndex != - 1 ? lastIndex + leftStartIndex : - 1 ;
395395 }
396396
397- private unsafe bool StartsWithInternal ( ReadOnlySpan < char > source , ReadOnlySpan < char > prefix , CompareOptions options )
397+ internal unsafe bool StartsWithInternal ( ReadOnlySpan < char > source , ReadOnlySpan < char > prefix , CompareOptions options )
398398 {
399399 Debug . Assert ( ! GlobalizationMode . Invariant ) ;
400400 Debug . Assert ( ! prefix . IsEmpty ) ;
@@ -548,7 +548,7 @@ private unsafe bool StartsWithOrdinalHelper(ReadOnlySpan<char> source, ReadOnlyS
548548 }
549549
550550 // Internal method which skips all parameter checks, for Framework use only
551- private unsafe bool EndsWithInternal ( ReadOnlySpan < char > source , ReadOnlySpan < char > suffix , CompareOptions options )
551+ internal unsafe bool EndsWithInternal ( ReadOnlySpan < char > source , ReadOnlySpan < char > suffix , CompareOptions options )
552552 {
553553 Debug . Assert ( ! GlobalizationMode . Invariant ) ;
554554 Debug . Assert ( ! suffix . IsEmpty ) ;
0 commit comments