@@ -24,7 +24,7 @@ private void IcuInitSortHandle(string interopCultureName)
24
24
_isAsciiEqualityOrdinal = GetIsAsciiEqualityOrdinal ( interopCultureName ) ;
25
25
if ( ! GlobalizationMode . Invariant )
26
26
{
27
- #if TARGET_OSX || TARGET_MACCATALYST || TARGET_IOS || TARGET_TVOS || TARGET_BROWSER
27
+ #if TARGET_MACCATALYST || TARGET_IOS || TARGET_TVOS || TARGET_BROWSER
28
28
if ( GlobalizationMode . Hybrid )
29
29
return ;
30
30
#endif
@@ -84,7 +84,7 @@ private unsafe int IcuIndexOfCore(ReadOnlySpan<char> source, ReadOnlySpan<char>
84
84
fixed ( char * pSource = & MemoryMarshal . GetReference ( source ) )
85
85
fixed ( char * pTarget = & MemoryMarshal . GetReference ( target ) )
86
86
{
87
- #if TARGET_OSX || TARGET_MACCATALYST || TARGET_IOS || TARGET_TVOS
87
+ #if TARGET_MACCATALYST || TARGET_IOS || TARGET_TVOS
88
88
if ( GlobalizationMode . Hybrid )
89
89
return IndexOfCoreNative ( pTarget , target . Length , pSource , source . Length , options , fromBeginning , matchLengthPtr ) ;
90
90
#endif
@@ -203,7 +203,7 @@ private unsafe int IndexOfOrdinalIgnoreCaseHelper(ReadOnlySpan<char> source, Rea
203
203
throw new Exception ( ( string ) ex_result ) ;
204
204
return result ;
205
205
}
206
- #elif TARGET_OSX || TARGET_MACCATALYST || TARGET_IOS || TARGET_TVOS
206
+ #elif TARGET_MACCATALYST || TARGET_IOS || TARGET_TVOS
207
207
if ( GlobalizationMode . Hybrid )
208
208
return IndexOfCoreNative ( b , target . Length , a , source . Length , options , fromBeginning , matchLengthPtr ) ;
209
209
#endif
@@ -305,7 +305,7 @@ private unsafe int IndexOfOrdinalHelper(ReadOnlySpan<char> source, ReadOnlySpan<
305
305
throw new Exception ( ( string ) ex_result ) ;
306
306
return result ;
307
307
}
308
- #elif TARGET_OSX || TARGET_MACCATALYST || TARGET_IOS || TARGET_TVOS
308
+ #elif TARGET_MACCATALYST || TARGET_IOS || TARGET_TVOS
309
309
if ( GlobalizationMode . Hybrid )
310
310
return IndexOfCoreNative ( b , target . Length , a , source . Length , options , fromBeginning , matchLengthPtr ) ;
311
311
#endif
@@ -337,7 +337,7 @@ private unsafe bool IcuStartsWith(ReadOnlySpan<char> source, ReadOnlySpan<char>
337
337
fixed ( char * pSource = & MemoryMarshal . GetReference ( source ) ) // could be null (or otherwise unable to be dereferenced)
338
338
fixed ( char * pPrefix = & MemoryMarshal . GetReference ( prefix ) )
339
339
{
340
- #if TARGET_OSX || TARGET_MACCATALYST || TARGET_IOS || TARGET_TVOS
340
+ #if TARGET_MACCATALYST || TARGET_IOS || TARGET_TVOS
341
341
if ( GlobalizationMode . Hybrid )
342
342
return NativeStartsWith ( pPrefix , prefix . Length , pSource , source . Length , options ) ;
343
343
#endif
@@ -420,7 +420,7 @@ private unsafe bool StartsWithOrdinalIgnoreCaseHelper(ReadOnlySpan<char> source,
420
420
return true ;
421
421
422
422
InteropCall :
423
- #if TARGET_OSX || TARGET_MACCATALYST || TARGET_IOS || TARGET_TVOS
423
+ #if TARGET_MACCATALYST || TARGET_IOS || TARGET_TVOS
424
424
if ( GlobalizationMode . Hybrid )
425
425
return NativeStartsWith ( bp , prefix . Length , ap , source . Length , options ) ;
426
426
#endif
@@ -492,7 +492,7 @@ private unsafe bool StartsWithOrdinalHelper(ReadOnlySpan<char> source, ReadOnlyS
492
492
return true ;
493
493
494
494
InteropCall :
495
- #if TARGET_OSX || TARGET_MACCATALYST || TARGET_IOS || TARGET_TVOS
495
+ #if TARGET_MACCATALYST || TARGET_IOS || TARGET_TVOS
496
496
if ( GlobalizationMode . Hybrid )
497
497
return NativeStartsWith ( bp , prefix . Length , ap , source . Length , options ) ;
498
498
#endif
@@ -521,7 +521,7 @@ private unsafe bool IcuEndsWith(ReadOnlySpan<char> source, ReadOnlySpan<char> su
521
521
fixed ( char * pSource = & MemoryMarshal . GetReference ( source ) ) // could be null (or otherwise unable to be dereferenced)
522
522
fixed ( char * pSuffix = & MemoryMarshal . GetReference ( suffix ) )
523
523
{
524
- #if TARGET_OSX || TARGET_MACCATALYST || TARGET_IOS || TARGET_TVOS
524
+ #if TARGET_MACCATALYST || TARGET_IOS || TARGET_TVOS
525
525
if ( GlobalizationMode . Hybrid )
526
526
return NativeEndsWith ( pSuffix , suffix . Length , pSource , source . Length , options ) ;
527
527
#endif
@@ -605,7 +605,7 @@ private unsafe bool EndsWithOrdinalIgnoreCaseHelper(ReadOnlySpan<char> source, R
605
605
return true ;
606
606
607
607
InteropCall :
608
- #if TARGET_OSX || TARGET_MACCATALYST || TARGET_IOS || TARGET_TVOS
608
+ #if TARGET_MACCATALYST || TARGET_IOS || TARGET_TVOS
609
609
if ( GlobalizationMode . Hybrid )
610
610
return NativeEndsWith ( bp , suffix . Length , ap , source . Length , options ) ;
611
611
#endif
@@ -677,7 +677,7 @@ private unsafe bool EndsWithOrdinalHelper(ReadOnlySpan<char> source, ReadOnlySpa
677
677
return true ;
678
678
679
679
InteropCall :
680
- #if TARGET_OSX || TARGET_MACCATALYST || TARGET_IOS || TARGET_TVOS
680
+ #if TARGET_MACCATALYST || TARGET_IOS || TARGET_TVOS
681
681
if ( GlobalizationMode . Hybrid )
682
682
return NativeEndsWith ( bp , suffix . Length , ap , source . Length , options ) ;
683
683
#endif
0 commit comments