Table of Contents

SplitEnumerator Method

SplitEnumerator(ReadOnlySpan<char>, char)

public static NonAllocIncrementalStringSplitter SplitEnumerator(this ReadOnlySpan<char> text, char splitter)

Non-alloc, incremental string splitter designed for use with foreach statement. This enumerator searches text only when requested so good to use with larger text.

Parameters

text ReadOnlySpan<char>
splitter char

Returns

NonAllocIncrementalStringSplitter

Range enumerator

SplitEnumerator(string, char)

public static NonAllocIncrementalStringSplitter SplitEnumerator(this string text, char splitter)

Non-alloc, incremental string splitter designed for use with foreach statement. This enumerator searches text only when requested so good to use with larger text.

Parameters

text string
splitter char

Returns

NonAllocIncrementalStringSplitter

Range enumerator

SplitEnumerator(ReadOnlySpan<char>, ReadOnlySpan<char>, bool)

public static NonAllocIncrementalStringSplitter SplitEnumerator(this ReadOnlySpan<char> text, ReadOnlySpan<char> sequence, bool splitByAnyChar)

Non-alloc, incremental string splitter designed for use with foreach statement. This enumerator searches text only when requested so good to use with larger text.

Parameters

text ReadOnlySpan<char>
sequence ReadOnlySpan<char>
splitByAnyChar bool

Returns

NonAllocIncrementalStringSplitter

Range enumerator

SplitEnumerator(string, ReadOnlySpan<char>, bool)

public static NonAllocIncrementalStringSplitter SplitEnumerator(this string text, ReadOnlySpan<char> sequence, bool splitByAnyChar)

Non-alloc, incremental string splitter designed for use with foreach statement. This enumerator searches text only when requested so good to use with larger text.

Parameters

text string
sequence ReadOnlySpan<char>
splitByAnyChar bool

Returns

NonAllocIncrementalStringSplitter

Range enumerator