You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
/// Returns a type that allows for enumeration of each element within a split span
55
+
/// using the provided <see cref="SpanSplitEnumerator{T}"/>.
56
+
/// </summary>
57
+
/// <typeparam name="T">The type of the elements.</typeparam>
58
+
/// <param name="source">The source span to be enumerated.</param>
59
+
/// <param name="separators">The <see cref="SpanSplitEnumerator{T}"/> to be used to split the provided span.</param>
60
+
/// <returns>Returns a <see cref="SpanSplitEnumerator{T}"/>.</returns>
61
+
/// <remarks>
62
+
/// Unlike <see cref="SplitAny{T}(ReadOnlySpan{T}, ReadOnlySpan{T})"/>, the <paramref name="separators"/> is not checked for being empty.
63
+
/// An empty <paramref name="separators"/> will result in no separators being found, regardless of the type of <typeparamref name="T"/>, whereas <see cref="SplitAny{T}(ReadOnlySpan{T}, ReadOnlySpan{T})"/> will use all Unicode whitespace characters as separators if <paramref name="separators"/> is empty and <typeparamref name="T"/> is <see cref="char"/>.
Copy file name to clipboardExpand all lines: src/Extensions/ReadOnlySpan/String/Split.cs
+4-4Lines changed: 4 additions & 4 deletions
Original file line number
Diff line number
Diff line change
@@ -13,7 +13,7 @@ public static partial class ReadOnlySpanExtensions
13
13
/// <param name="source">The <see cref="ReadOnlySpan{T}"/> to be split.</param>
14
14
/// <param name="delimiter">An instance of <typeparamref name="T"/> that delimits the various sub-ReadOnlySpans in <paramref name="source"/>.</param>
15
15
/// <returns>An instance of the ref struct <see cref="SpanSplitEnumerator{T}"/>, which works the same way as every <see cref="IEnumerator"/> does and can be used in a foreach construct.</returns>
@@ -27,7 +27,7 @@ public static SpanSplitEnumerator<T> Split<T>(this ReadOnlySpan<T> source, T del
27
27
/// <param name="count">The maximum number of sub-ReadOnlySpans to split into.</param>
28
28
/// <param name="countExceedingBehaviour">The handling of the instances more than count.</param>
29
29
/// <returns>An instance of the ref struct <see cref="SpanSplitWithCountEnumerator{T}"/>, which works the same way as every <see cref="IEnumerator"/> does and can be used in a foreach construct.</returns>
@@ -39,7 +39,7 @@ public static SpanSplitWithCountEnumerator<T> Split<T>(this ReadOnlySpan<T> sour
39
39
/// <param name="delimiter">A <see cref="char"/> that delimits the various sub-ReadOnlySpans in <paramref name="source"/>.</param>
40
40
/// <param name="options">A bitwise combination of the enumeration values that specifies whether to trim results and include empty results.</param>
41
41
/// <returns>An instance of the ref struct <see cref="SpanSplitStringSplitOptionsEnumerator"/>, which works the same way as every <see cref="IEnumerator"/> does and can be used in a foreach construct.</returns>
@@ -53,7 +53,7 @@ public static SpanSplitStringSplitOptionsEnumerator Split(this ReadOnlySpan<char
53
53
/// <param name="options">A bitwise combination of the enumeration values that specifies whether to trim results and include empty results.</param>
54
54
/// <param name="countExceedingBehaviour">The handling of the instances more than count.</param>
55
55
/// <returns>An instance of the ref struct <see cref="SpanSplitAnyStringSplitOptionsWithCountEnumerator"/>, which works the same way as every <see cref="IEnumerator"/> does and can be used in a foreach construct.</returns>
/// Returns a type that allows for enumeration of each element within a split span
55
+
/// using the provided <see cref="SpanSplitEnumerator{T}"/>.
56
+
/// </summary>
57
+
/// <typeparam name="T">The type of the elements.</typeparam>
58
+
/// <param name="source">The source span to be enumerated.</param>
59
+
/// <param name="separators">The <see cref="SpanSplitEnumerator{T}"/> to be used to split the provided span.</param>
60
+
/// <returns>Returns a <see cref="SpanSplitEnumerator{T}"/>.</returns>
61
+
/// <remarks>
62
+
/// Unlike <see cref="SplitAny{T}(Span{T}, ReadOnlySpan{T})"/>, the <paramref name="separators"/> is not checked for being empty.
63
+
/// An empty <paramref name="separators"/> will result in no separators being found, regardless of the type of <typeparamref name="T"/>, whereas <see cref="SplitAny{T}(Span{T}, ReadOnlySpan{T})"/> will use all Unicode whitespace characters as separators if <paramref name="separators"/> is empty and <typeparamref name="T"/> is <see cref="char"/>.
Copy file name to clipboardExpand all lines: src/Extensions/Span/String/SplitSequence.cs
+4-4Lines changed: 4 additions & 4 deletions
Original file line number
Diff line number
Diff line change
@@ -16,7 +16,7 @@ public static partial class SpanExtensions
16
16
/// <param name="source">The <see cref="Span{T}"/> to be split.</param>
17
17
/// <param name="delimiter">An instance of <see cref="ReadOnlySpan{T}"/> that delimits the various sub-ReadOnlySpans in <paramref name="source"/>.</param>
18
18
/// <returns>An instance of the ref struct <see cref="SpanSplitSequenceEnumerator{T}"/>, which works the same way as every <see cref="IEnumerator"/> does and can be used in a foreach construct.</returns>
/// <param name="count">The maximum number of sub-ReadOnlySpans to split into.</param>
31
31
/// <param name="countExceedingBehaviour">The handling of the instances more than count.</param>
32
32
/// <returns>An instance of the ref struct , which works the same way as every <see cref="IEnumerator"/> does and can be used in a foreach construct.</returns>
@@ -42,7 +42,7 @@ public static SpanSplitSequenceWithCountEnumerator<T> Split<T>(this Span<T> sour
42
42
/// <param name="delimiter">An instance of <see cref="ReadOnlySpan{Char}"/> that delimits the various sub-ReadOnlySpans in <paramref name="source"/>.</param>
43
43
/// <param name="options">A bitwise combination of the enumeration values that specifies whether to trim results and include empty results.</param>
44
44
/// <returns>An instance of the ref struct <see cref="SpanSplitSequenceStringSplitOptionsEnumerator"/>, which works the same way as every <see cref="IEnumerator"/> does and can be used in a foreach construct.</returns>
@@ -56,7 +56,7 @@ public static SpanSplitSequenceStringSplitOptionsEnumerator Split(this Span<char
56
56
/// <param name="options">A bitwise combination of the enumeration values that specifies whether to trim results and include empty results.</param>
57
57
/// <param name="countExceedingBehaviour">The handling of the instances more than count.</param>
58
58
/// <returns>An instance of the ref struct <see cref="SpanSplitSequenceStringSplitOptionsWithCountEnumerator"/>, which works the same way as every <see cref="IEnumerator"/> does and can be used in a foreach construct.</returns>
0 commit comments