-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
a75d145
commit ffa77d6
Showing
6 changed files
with
70 additions
and
60 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
namespace Split.Extensions; | ||
|
||
public static partial class SpanExtensions | ||
{ | ||
public static SplitEnumerator<byte> SplitOn(this byte[] source, byte separator) => Span.Split(source, separator); | ||
|
||
public static SplitEnumerator<byte> SplitOn(this Span<byte> source, byte separator) => Span.Split(source, separator); | ||
|
||
public static SplitEnumerator<byte> SplitOn(this ReadOnlySpan<byte> source, byte separator) => Span.Split(source, separator); | ||
|
||
public static SplitEnumerator<byte> SplitOn(this byte[] source, ReadOnlySpan<byte> separator) => Span.Split(source, separator); | ||
|
||
public static SplitEnumerator<byte> SplitOn(this Span<byte> source, ReadOnlySpan<byte> separator) => Span.Split(source, separator); | ||
|
||
public static SplitEnumerator<byte> SplitOn(this ReadOnlySpan<byte> source, ReadOnlySpan<byte> separator) => Span.Split(source, separator); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
namespace Split.Extensions; | ||
|
||
public static partial class SpanExtensions | ||
{ | ||
public static SplitEnumerator<char> SplitOn(this string source, char separator) => Span.Split(source, separator); | ||
|
||
public static SplitEnumerator<char> SplitOn(this string source, ReadOnlySpan<char> separator) => Span.Split(source, separator); | ||
|
||
public static SplitEnumerator<char> SplitOn(this ReadOnlySpan<char> source, char separator) => Span.Split(source, separator); | ||
|
||
public static SplitEnumerator<char> SplitOn(this ReadOnlySpan<char> source, ReadOnlySpan<char> separator) => Span.Split(source, separator); | ||
|
||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
using System.Buffers; | ||
|
||
namespace Split.Extensions; | ||
|
||
public static partial class SpanExtensions | ||
{ | ||
public static SplitEnumerator<byte> SplitOnAny(this byte[] source, ReadOnlySpan<byte> separators) => Span.SplitAny(source, separators); | ||
|
||
public static SplitEnumerator<byte> SplitOnAny(this byte[] source, SearchValues<byte> separators) => Span.SplitAny(source, separators); | ||
|
||
public static SplitEnumerator<byte> SplitOnAny(this ReadOnlySpan<byte> source, ReadOnlySpan<byte> separators) => Span.SplitAny(source, separators); | ||
|
||
public static SplitEnumerator<byte> SplitOnAny(this ReadOnlySpan<byte> source, SearchValues<byte> separators) => Span.SplitAny(source, separators); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
using System.Buffers; | ||
|
||
namespace Split.Extensions; | ||
|
||
public static partial class SpanExtensions | ||
{ | ||
public static SplitEnumerator<char> SplitOnAny(this string source, ReadOnlySpan<char> separators) => Span.SplitAny(source, separators); | ||
|
||
public static SplitEnumerator<char> SplitOnAny(this string source, SearchValues<char> separators) => Span.SplitAny(source, separators); | ||
|
||
public static SplitEnumerator<char> SplitOnAny(this ReadOnlySpan<char> source, ReadOnlySpan<char> separators) => Span.SplitAny(source, separators); | ||
|
||
public static SplitEnumerator<char> SplitOnAny(this ReadOnlySpan<char> source, SearchValues<char> separators) => Span.SplitAny(source, separators); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters