@@ -371,29 +371,29 @@ public static IReadOnlyList<string> Split(this ReadOnlySpan<char> source,
371371 return ImmutableArray < string > . Empty ;
372372
373373 case StringSplitOptions . RemoveEmptyEntries :
374- {
375- Debug . Assert ( ! source . IsEmpty ) ;
376- var list = new List < string > ( ) ;
377-
378- loop :
379- var result = source . FirstSplit ( splitCharacter , out var nextIndex ) ;
380- if ( ! result . IsEmpty ) list . Add ( result . ToString ( ) ) ;
381- if ( nextIndex == - 1 ) return list ;
382- source = source . Slice ( nextIndex ) ;
383- goto loop ;
384- }
374+ {
375+ Debug . Assert ( ! source . IsEmpty ) ;
376+ var list = new List < string > ( ) ;
377+
378+ loop :
379+ var result = source . FirstSplit ( splitCharacter , out var nextIndex ) ;
380+ if ( ! result . IsEmpty ) list . Add ( result . ToString ( ) ) ;
381+ if ( nextIndex == - 1 ) return list ;
382+ source = source . Slice ( nextIndex ) ;
383+ goto loop ;
384+ }
385385
386386 default :
387- {
388- Debug . Assert ( ! source . IsEmpty ) ;
389- var list = new List < string > ( ) ;
390- loop :
391- var result = source . FirstSplit ( splitCharacter , out var nextIndex ) ;
392- list . Add ( result . IsEmpty ? string . Empty : result . ToString ( ) ) ;
393- if ( nextIndex == - 1 ) return list ;
394- source = source . Slice ( nextIndex ) ;
395- goto loop ;
396- }
387+ {
388+ Debug . Assert ( ! source . IsEmpty ) ;
389+ var list = new List < string > ( ) ;
390+ loop :
391+ var result = source . FirstSplit ( splitCharacter , out var nextIndex ) ;
392+ list . Add ( result . IsEmpty ? string . Empty : result . ToString ( ) ) ;
393+ if ( nextIndex == - 1 ) return list ;
394+ source = source . Slice ( nextIndex ) ;
395+ goto loop ;
396+ }
397397 }
398398 }
399399
@@ -419,29 +419,29 @@ public static IReadOnlyList<string> Split(this ReadOnlySpan<char> source,
419419 return ImmutableArray < string > . Empty ;
420420
421421 case StringSplitOptions . RemoveEmptyEntries :
422- {
423- Debug . Assert ( ! source . IsEmpty ) ;
424- var list = new List < string > ( ) ;
425-
426- loop :
427- var result = source . FirstSplit ( splitSequence , out var nextIndex , comparisonType ) ;
428- if ( ! result . IsEmpty ) list . Add ( result . ToString ( ) ) ;
429- if ( nextIndex == - 1 ) return list ;
430- source = source . Slice ( nextIndex ) ;
431- goto loop ;
432- }
422+ {
423+ Debug . Assert ( ! source . IsEmpty ) ;
424+ var list = new List < string > ( ) ;
425+
426+ loop :
427+ var result = source . FirstSplit ( splitSequence , out var nextIndex , comparisonType ) ;
428+ if ( ! result . IsEmpty ) list . Add ( result . ToString ( ) ) ;
429+ if ( nextIndex == - 1 ) return list ;
430+ source = source . Slice ( nextIndex ) ;
431+ goto loop ;
432+ }
433433
434434 default :
435- {
436- Debug . Assert ( ! source . IsEmpty ) ;
437- var list = new List < string > ( ) ;
438- loop :
439- var result = source . FirstSplit ( splitSequence , out var nextIndex , comparisonType ) ;
440- list . Add ( result . IsEmpty ? string . Empty : result . ToString ( ) ) ;
441- if ( nextIndex == - 1 ) return list ;
442- source = source . Slice ( nextIndex ) ;
443- goto loop ;
444- }
435+ {
436+ Debug . Assert ( ! source . IsEmpty ) ;
437+ var list = new List < string > ( ) ;
438+ loop :
439+ var result = source . FirstSplit ( splitSequence , out var nextIndex , comparisonType ) ;
440+ list . Add ( result . IsEmpty ? string . Empty : result . ToString ( ) ) ;
441+ if ( nextIndex == - 1 ) return list ;
442+ source = source . Slice ( nextIndex ) ;
443+ goto loop ;
444+ }
445445 }
446446 }
447447 }
0 commit comments