2676 {
2678 {
2679 throw new ArgumentOutOfRangeException("count", SR.ArgumentOutOfRange_NegativeCount);
2680 }
2684 {
2686 }
2687 while (true)
2688 {
2690 {
2693 {
2695 }
2697 {
2699 }
2701 {
2702 return new string[1] {
text };
2703 }
2704 return Array.Empty<
string>();
2705 }
2706 if (!flag)
2707 {
2708 break;
2709 }
2711 {
2713 continue;
2714 }
2716 }
2725 {
2726 return new string[1] { this };
2727 }
2731 return result;
2732 }
string[] SplitWithPostProcessing(ReadOnlySpan< int > sepList, ReadOnlySpan< int > lengthList, int defaultLength, int count, StringSplitOptions options)
string[] SplitWithoutPostProcessing(ReadOnlySpan< int > sepList, ReadOnlySpan< int > lengthList, int defaultLength, int count)
static void CheckStringSplitOptions(StringSplitOptions options)
unsafe void MakeSeparatorList(ReadOnlySpan< char > separators, ref ValueListBuilder< int > sepListBuilder)
string[] SplitInternal(ReadOnlySpan< char > separators, int count, StringSplitOptions options)