SplitAnyNonAlloc Method
- Namespace
- SatorImaging.UnityFundamentals
SplitAnyNonAlloc(ReadOnlySpan<char>, ReadOnlySpan<char>)
public static NonAllocStringSplitter SplitAnyNonAlloc(this ReadOnlySpan<char> text, ReadOnlySpan<char> splitAny)
Non-allocation string splitter.
Parameters
text
ReadOnlySpan<char>splitAny
ReadOnlySpan<char>
Returns
- NonAllocStringSplitter
use
.Count
and indexer[int]
to enumerate splitted spans.
Remarks
NOTE: max 10 items are allowed to be splitted otherwise throws IndexOutOfRangeException.
- able to retrieve error position in input text by splitting exception message with
'@'
.
SplitAnyNonAlloc(string, ReadOnlySpan<char>)
public static NonAllocStringSplitter SplitAnyNonAlloc(this string text, ReadOnlySpan<char> splitAny)
Non-allocation string splitter.
Parameters
text
stringsplitAny
ReadOnlySpan<char>
Returns
- NonAllocStringSplitter
use
.Count
and indexer[int]
to enumerate splitted spans.
Remarks
NOTE: max 10 items are allowed to be splitted otherwise throws IndexOutOfRangeException.
- able to retrieve error position in input text by splitting exception message with
'@'
.