Skip to content

Commit dd93235

Browse files
committed
documentation formatting & swapped order of int and StringSplitOptions
1 parent 1c11078 commit dd93235

13 files changed

+56
-32
lines changed

src/Enumerators/Split/SpanSplitEnumerator.cs

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,9 @@ public SpanSplitEnumerator(ReadOnlySpan<T> source, T delimiter)
2828
Current = default;
2929
}
3030

31-
/// <summary>Returns an enumerator that iterates through a collection.</summary>
31+
/// <summary>
32+
/// Returns an enumerator that iterates through a collection.
33+
/// </summary>
3234
public readonly SpanSplitEnumerator<T> GetEnumerator()
3335
{
3436
return this;

src/Enumerators/Split/SpanSplitStringSplitOptionsEnumerator.cs

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,9 @@ public SpanSplitStringSplitOptionsEnumerator(ReadOnlySpan<char> source, char del
3030
Current = default;
3131
}
3232

33-
/// <summary>Returns an enumerator that iterates through a collection.</summary>
33+
/// <summary>
34+
/// Returns an enumerator that iterates through a collection.
35+
/// </summary>
3436
public readonly SpanSplitStringSplitOptionsEnumerator GetEnumerator()
3537
{
3638
return this;

src/Enumerators/Split/SpanSplitStringSplitOptionsWithCountEnumerator.cs

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -19,23 +19,25 @@ public ref struct SpanSplitStringSplitOptionsWithCountEnumerator
1919
public ReadOnlySpan<char> Current { get; internal set; }
2020

2121
/// <summary>
22-
/// Constructs a <see cref="SpanSplitStringSplitOptionsWithCountEnumerator"/> from a span and a delimiter. <strong>Only consume this class through <see cref="ReadOnlySpanExtensions.Split(ReadOnlySpan{char}, char, StringSplitOptions, int)"/></strong>.
22+
/// Constructs a <see cref="SpanSplitStringSplitOptionsWithCountEnumerator"/> from a span and a delimiter. <strong>Only consume this class through <see cref="ReadOnlySpanExtensions.Split(ReadOnlySpan{char}, char, int, StringSplitOptions)"/></strong>.
2323
/// </summary>
2424
/// <param name="source">The <see cref="ReadOnlySpan{Char}"/> to be split.</param>
2525
/// <param name="delimiter">A <see cref="char"/> that delimits the various sub-ReadOnlySpans in <paramref name="source"/>.</param>
26-
/// <param name="options">A bitwise combination of the enumeration values that specifies whether to trim results and include empty results.</param>
2726
/// <param name="count">The maximum number of sub-ReadOnlySpans to split into.</param>
28-
public SpanSplitStringSplitOptionsWithCountEnumerator(ReadOnlySpan<char> source, char delimiter, StringSplitOptions options, int count)
27+
/// <param name="options">A bitwise combination of the enumeration values that specifies whether to trim results and include empty results.</param>
28+
public SpanSplitStringSplitOptionsWithCountEnumerator(ReadOnlySpan<char> source, char delimiter, int count, StringSplitOptions options)
2929
{
3030
Span = source;
3131
Delimiter = delimiter;
32-
Options = options;
3332
Count = count;
33+
Options = options;
3434
Current = default;
3535
currentCount = 0;
3636
}
3737

38-
/// <summary>Returns an enumerator that iterates through a collection.</summary>
38+
/// <summary>
39+
/// Returns an enumerator that iterates through a collection.
40+
/// </summary>
3941
public readonly SpanSplitStringSplitOptionsWithCountEnumerator GetEnumerator()
4042
{
4143
return this;

src/Enumerators/Split/SpanSplitWithCountEnumerator.cs

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,9 @@ public SpanSplitWithCountEnumerator(ReadOnlySpan<T> source, T delimiter, int cou
3333
currentCount = 0;
3434
}
3535

36-
/// <summary>Returns an enumerator that iterates through a collection.</summary>
36+
/// <summary>
37+
/// Returns an enumerator that iterates through a collection.
38+
/// </summary>
3739
public readonly SpanSplitWithCountEnumerator<T> GetEnumerator()
3840
{
3941
return this;

src/Enumerators/SplitAny/SpanSplitAnyEnumerator.cs

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,9 @@ public SpanSplitAnyEnumerator(ReadOnlySpan<T> source, ReadOnlySpan<T> delimiters
2929
Current = default;
3030
}
3131

32-
/// <summary>Returns an enumerator that iterates through a collection.</summary>
32+
/// <summary>
33+
/// Returns an enumerator that iterates through a collection.
34+
/// </summary>
3335
public readonly SpanSplitAnyEnumerator<T> GetEnumerator()
3436
{
3537
return this;

src/Enumerators/SplitAny/SpanSplitAnyStringSplitOptionsEnumerator.cs

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,9 @@ public SpanSplitAnyStringSplitOptionsEnumerator(ReadOnlySpan<char> source, ReadO
3030
Current = default;
3131
}
3232

33-
/// <summary>Returns an enumerator that iterates through a collection.</summary>
33+
/// <summary>
34+
/// Returns an enumerator that iterates through a collection.
35+
/// </summary>
3436
public readonly SpanSplitAnyStringSplitOptionsEnumerator GetEnumerator()
3537
{
3638
return this;

src/Enumerators/SplitAny/SpanSplitAnyStringSplitOptionsWithCountEnumerator.cs

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -19,23 +19,25 @@ public ref struct SpanSplitAnyStringSplitOptionsWithCountEnumerator
1919
public ReadOnlySpan<char> Current { get; internal set; }
2020

2121
/// <summary>
22-
/// Constructs a <see cref="SpanSplitAnyStringSplitOptionsWithCountEnumerator"/> from a span and a delimiter. <strong>Only consume this class through <see cref="ReadOnlySpanExtensions.SplitAny(ReadOnlySpan{char}, ReadOnlySpan{char}, StringSplitOptions, int)"/></strong>.
22+
/// Constructs a <see cref="SpanSplitAnyStringSplitOptionsWithCountEnumerator"/> from a span and a delimiter. <strong>Only consume this class through <see cref="ReadOnlySpanExtensions.SplitAny(ReadOnlySpan{char}, ReadOnlySpan{char}, int, StringSplitOptions)"/></strong>.
2323
/// </summary>
2424
/// <param name="source">The <see cref="ReadOnlySpan{Char}"/> to be split.</param>
2525
/// <param name="delimiters">A <see cref="ReadOnlySpan{Char}"/> with the <see cref="char"/> elements that delimit the various sub-ReadOnlySpans in <paramref name="source"/>.</param>
26-
/// <param name="options">A bitwise combination of the enumeration values that specifies whether to trim results and include empty results.</param>
2726
/// <param name="count">The maximum number of sub-ReadOnlySpans to split into.</param>
28-
public SpanSplitAnyStringSplitOptionsWithCountEnumerator(ReadOnlySpan<char> source, ReadOnlySpan<char> delimiters, StringSplitOptions options, int count)
27+
/// <param name="options">A bitwise combination of the enumeration values that specifies whether to trim results and include empty results.</param>
28+
public SpanSplitAnyStringSplitOptionsWithCountEnumerator(ReadOnlySpan<char> source, ReadOnlySpan<char> delimiters, int count, StringSplitOptions options)
2929
{
3030
Span = source;
3131
Delimiters = delimiters;
32-
Options = options;
3332
Count = count;
33+
Options = options;
3434
Current = default;
3535
currentCount = 0;
3636
}
3737

38-
/// <summary>Returns an enumerator that iterates through a collection.</summary>
38+
/// <summary>
39+
/// Returns an enumerator that iterates through a collection.
40+
/// </summary>
3941
public readonly SpanSplitAnyStringSplitOptionsWithCountEnumerator GetEnumerator()
4042
{
4143
return this;

src/Enumerators/SplitAny/SpanSplitAnyWithCountEnumerator.cs

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,9 @@ public SpanSplitAnyWithCountEnumerator(ReadOnlySpan<T> source, ReadOnlySpan<T> d
3333
currentCount = 0;
3434
}
3535

36-
/// <summary>Returns an enumerator that iterates through a collection.</summary>
36+
/// <summary>
37+
/// Returns an enumerator that iterates through a collection.
38+
/// </summary>
3739
public readonly SpanSplitAnyWithCountEnumerator<T> GetEnumerator()
3840
{
3941
return this;

src/Enumerators/SplitSequence/SpanSplitSequenceEnumerator.cs

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,9 @@ public SpanSplitSequenceEnumerator(ReadOnlySpan<T> source, ReadOnlySpan<T> delim
2828
Current = default;
2929
}
3030

31-
/// <summary>Returns an enumerator that iterates through a collection.</summary>
31+
/// <summary>
32+
/// Returns an enumerator that iterates through a collection.
33+
/// </summary>
3234
public readonly SpanSplitSequenceEnumerator<T> GetEnumerator()
3335
{
3436
return this;

src/Enumerators/SplitSequence/SpanSplitSequenceStringSplitOptionsEnumerator.cs

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,9 @@ public SpanSplitSequenceStringSplitOptionsEnumerator(ReadOnlySpan<char> source,
3030
Current = default;
3131
}
3232

33-
/// <summary>Returns an enumerator that iterates through a collection.</summary>
33+
/// <summary>
34+
/// Returns an enumerator that iterates through a collection.
35+
/// </summary>
3436
public readonly SpanSplitSequenceStringSplitOptionsEnumerator GetEnumerator()
3537
{
3638
return this;

0 commit comments

Comments
 (0)