NonAllocStringSplitterExtensions Class
- Namespace
- SatorImaging.UnityFundamentals
public static class NonAllocStringSplitterExtensions
Extension methods for NonAllocStringSplitter
- Inheritance
-
NonAllocStringSplitterExtensions
Methods
- SplitAnyNonAlloc(ReadOnlySpan<char>, ReadOnlySpan<char>)
Non-allocation string splitter.
- SplitAnyNonAlloc(string, ReadOnlySpan<char>)
Non-allocation string splitter.
- SplitEnumerator(ReadOnlySpan<char>, char)
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.
- SplitEnumerator(ReadOnlySpan<char>, ReadOnlySpan<char>, bool)
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.
- SplitEnumerator(string, char)
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.
- SplitEnumerator(string, ReadOnlySpan<char>, bool)
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.
- SplitNonAlloc(ReadOnlySpan<char>, char)
Non-allocation string splitter.
- SplitNonAlloc(ReadOnlySpan<char>, ReadOnlySpan<char>)
Non-allocation string splitter.
- SplitNonAlloc(string, char)
Non-allocation string splitter.
- SplitNonAlloc(string, ReadOnlySpan<char>)
Non-allocation string splitter.
- TrySplit(ReadOnlySpan<char>, char, out ReadOnlySpan<char>, out ReadOnlySpan<char>)
1. "0 1 2 " by ' ' --> "0" and "1 2 " (removes repeating split chars) 2. " 0 1 2 " by ' ' --> "" and "0 1 2 " (doesn't care about starting splitter. trim it before on your needs)
- TrySplit(string, char, out ReadOnlySpan<char>, out ReadOnlySpan<char>)
1. "0 1 2 " by ' ' --> "0" and "1 2 " (removes repeating split chars) 2. " 0 1 2 " by ' ' --> "" and "0 1 2 " (doesn't care about starting splitter. trim it before on your needs)
- TrySplitLast(ReadOnlySpan<char>, char, out ReadOnlySpan<char>, out ReadOnlySpan<char>)
1. " 0 1 2" by ' ' --> " 0 1" and "2" (removes repeating split chars) 2. " 0 1 2 " by ' ' --> " 0 1 2" and "" (doesn't care about ending splitter. trim it before on your needs)
- TrySplitLast(string, char, out ReadOnlySpan<char>, out ReadOnlySpan<char>)
1. " 0 1 2" by ' ' --> " 0 1" and "2" (removes repeating split chars) 2. " 0 1 2 " by ' ' --> " 0 1 2" and "" (doesn't care about ending splitter. trim it before on your needs)