ReadOnlySpanSlicing Class

Namespace
Kampute.DocToolkit.Support
Assembly
  • Kampute.DocToolkit.dll

Definition

Provides extension methods for ReadOnlySpan<T> to slice the span based on a separator.
public static class ReadOnlySpanSlicing
Inheritance

Methods

SliceAfter<T>(this ReadOnlySpan<T>, T)Gets a slice of the span after the first occurrence of the specified separator.
SliceAfterLast<T>(this ReadOnlySpan<T>, T)Gets a slice of the span after the last occurrence of the specified separator.
SliceAfterLastOrSelf<T>(this ReadOnlySpan<T>, T)Gets a slice of the span after the last occurrence of the specified separator.
SliceAfterOrSelf<T>(this ReadOnlySpan<T>, T)Gets a slice of the span after the first occurrence of the specified separator.
SliceBefore<T>(this ReadOnlySpan<T>, T)Gets a slice of the span before the first occurrence of the specified separator.
SliceBeforeLast<T>(this ReadOnlySpan<T>, T)Gets a slice of the span before the last occurrence of the specified separator.
SliceBeforeLastOrSelf<T>(this ReadOnlySpan<T>, T)Gets a slice of the span before the last occurrence of the specified separator.
SliceBeforeOrSelf<T>(this ReadOnlySpan<T>, T)Gets a slice of the span before the first occurrence of the specified separator.