ReadOnlySpan Struct (System) (original) (raw)
BinarySearch<T,TComparable>(ReadOnlySpan, TComparable)
Searches an entire sorted ReadOnlySpan for a value using the specified TComparable generic type.
BinarySearch<T,TComparer>(ReadOnlySpan, T, TComparer)
Searches an entire sorted ReadOnlySpan for a specified value using the specified TComparer generic type.
BinarySearch(ReadOnlySpan, IComparable)
Searches an entire sorted ReadOnlySpan for a value using the specified IComparable generic interface.
CommonPrefixLength(ReadOnlySpan, ReadOnlySpan, IEqualityComparer)
Determines the length of any common prefix shared between span and other.
CommonPrefixLength(ReadOnlySpan, ReadOnlySpan)
Finds the length of any common prefix shared between span and other.
Contains(ReadOnlySpan, T, IEqualityComparer)
Searches for the specified value and returns true if found. If not found, returns false.
Indicates whether a specified value is found in a read-only span.
ContainsAny(ReadOnlySpan, ReadOnlySpan, IEqualityComparer)
Searches for any occurrence of any of the specified values and returns true if found. If not found, returns false.
ContainsAny(ReadOnlySpan, ReadOnlySpan)
Searches for an occurrence of any of the specified values.
ContainsAny(ReadOnlySpan, SearchValues)
Searches for an occurrence of any of the specified values.
ContainsAny(ReadOnlySpan, T, T, IEqualityComparer)
Searches for an occurrence of either of the specified values.
ContainsAny(ReadOnlySpan, T, T, T, IEqualityComparer)
Searches for any occurrence of the specified values in the specified span.
ContainsAny(ReadOnlySpan, T, T, T)
Searches for an occurrence of value0, value1, or value2 in the specified span.
ContainsAny(ReadOnlySpan, T, T)
Searches for an occurrence of value0 or value1.
ContainsAnyExcept(ReadOnlySpan, ReadOnlySpan, IEqualityComparer)
Searches the specified span for any value other than the specified values.
ContainsAnyExcept(ReadOnlySpan, ReadOnlySpan)
Searches the specified span for any value other than the specified values.
ContainsAnyExcept(ReadOnlySpan, SearchValues)
Searches the specified span for any value other than the specified values.
ContainsAnyExcept(ReadOnlySpan, T, IEqualityComparer)
Searches the specified span for any value other than value.
ContainsAnyExcept(ReadOnlySpan, T, T, IEqualityComparer)
Searches for any value other than value0 or value1.
ContainsAnyExcept(ReadOnlySpan, T, T, T, IEqualityComparer)
Searches for any value other than value0, value1, or value2.
ContainsAnyExcept(ReadOnlySpan, T, T, T)
Searches for any value other than value0, value1, or value2.
ContainsAnyExcept(ReadOnlySpan, T, T)
Searches the specified span for any value other than value0 or value1.
ContainsAnyExcept(ReadOnlySpan, T)
Searches the specified span for any value other than the specified value.
ContainsAnyExceptInRange(ReadOnlySpan, T, T)
Searches for any value outside of the range between lowInclusive and highInclusive, inclusive.
ContainsAnyInRange(ReadOnlySpan, T, T)
Searches for any value in the range between lowInclusive and highInclusive, inclusive.
Count(ReadOnlySpan, ReadOnlySpan, IEqualityComparer)
Counts the number of times the specified value occurs in the span.
Count(ReadOnlySpan, ReadOnlySpan)
Counts the number of times value occurs in span.
Count(ReadOnlySpan, T, IEqualityComparer)
Counts the number of times the specified value occurs in the span.
Counts the number of times the specified value occurs in the span.
CountAny(ReadOnlySpan, ReadOnlySpan, IEqualityComparer)
Counts the number of times any of the specified values occurs in the span.
CountAny(ReadOnlySpan, ReadOnlySpan)
Counts the number of times any of the specified values occurs in the span.
CountAny(ReadOnlySpan, SearchValues)
Counts the number of times any of the specified values occurs in the span.
EndsWith(ReadOnlySpan, ReadOnlySpan, IEqualityComparer)
Determines whether the specified sequence appears at the end of the read-only span.
EndsWith(ReadOnlySpan, ReadOnlySpan)
Determines whether the specified sequence appears at the end of a read-only span.
EndsWith(ReadOnlySpan, T, IEqualityComparer)
Determines whether the specified value appears at the end of the span.
Determines whether the specified value appears at the end of the span.
IndexOf(ReadOnlySpan, ReadOnlySpan, IEqualityComparer)
Searches for the specified sequence and returns the index of its first occurrence.
IndexOf(ReadOnlySpan, ReadOnlySpan)
Searches for the specified sequence and returns the index of its first occurrence.
IndexOf(ReadOnlySpan, T, IEqualityComparer)
Searches for the specified value and returns the index of its first occurrence.
Searches for the specified value and returns the index of its first occurrence.
IndexOfAny(ReadOnlySpan, ReadOnlySpan, IEqualityComparer)
Searches for the first index of any of the specified values.
IndexOfAny(ReadOnlySpan, ReadOnlySpan)
Searches for the first index of any of the specified values.
IndexOfAny(ReadOnlySpan, SearchValues)
Searches for the first index of any of the specified values.
IndexOfAny(ReadOnlySpan, T, T, IEqualityComparer)
Searches for the first index of any of the specified values.
IndexOfAny(ReadOnlySpan, T, T, T, IEqualityComparer)
Searches for the first index of any of the specified values.
IndexOfAny(ReadOnlySpan, T, T, T)
Searches for the first index of any of the specified values.
IndexOfAny(ReadOnlySpan, T, T)
Searches for the first index of either of the specified values.
IndexOfAnyExcept(ReadOnlySpan, ReadOnlySpan, IEqualityComparer)
Searches for the first index of any value other than the specified values.
IndexOfAnyExcept(ReadOnlySpan, ReadOnlySpan)
Searches for the first index of any value other than the specified values.
IndexOfAnyExcept(ReadOnlySpan, SearchValues)
Searches for the first index of any value other than the specified values.
IndexOfAnyExcept(ReadOnlySpan, T, IEqualityComparer)
Searches for the first index of any value other than the specified value.
IndexOfAnyExcept(ReadOnlySpan, T, T, IEqualityComparer)
Searches for the first index of any value other than the two specified values.
IndexOfAnyExcept(ReadOnlySpan, T, T, T, IEqualityComparer)
Searches for the first index of any value other than value0, value1, or value2.
IndexOfAnyExcept(ReadOnlySpan, T, T, T)
Searches for the first index of any value other than value0, value1, or value2.
IndexOfAnyExcept(ReadOnlySpan, T, T)
Searches for the first index of any value other than the two specified values.
IndexOfAnyExcept(ReadOnlySpan, T)
Searches for the first index of any value other than the specified value.
IndexOfAnyExceptInRange(ReadOnlySpan, T, T)
Searches for the first index of any value outside of the range between lowInclusive and highInclusive, inclusive.
IndexOfAnyInRange(ReadOnlySpan, T, T)
Searches for the first index of any value in the range between lowInclusive and highInclusive, inclusive.
LastIndexOf(ReadOnlySpan, ReadOnlySpan, IEqualityComparer)
Searches for the specified sequence and returns the index of its last occurrence. If not found, returns -1.
LastIndexOf(ReadOnlySpan, ReadOnlySpan)
Searches for the specified sequence and returns the index of its last occurrence.
LastIndexOf(ReadOnlySpan, T, IEqualityComparer)
Searches for the specified value and returns the index of its last occurrence. If not found, returns -1.
Searches for the specified value and returns the index of its last occurrence.
LastIndexOfAny(ReadOnlySpan, ReadOnlySpan, IEqualityComparer)
Searches for the last index of any of the specified values.
LastIndexOfAny(ReadOnlySpan, ReadOnlySpan)
Searches for the last index of any of the specified values.
LastIndexOfAny(ReadOnlySpan, SearchValues)
Searches for the last index of any of the specified values.
LastIndexOfAny(ReadOnlySpan, T, T, IEqualityComparer)
Searches for the last index of any of the specified values.
LastIndexOfAny(ReadOnlySpan, T, T, T, IEqualityComparer)
Searches for the last index of any of the specified values.
LastIndexOfAny(ReadOnlySpan, T, T, T)
Searches for the last index of any of the specified values.
LastIndexOfAny(ReadOnlySpan, T, T)
Searches for the last index of any of the specified values.
LastIndexOfAnyExcept(ReadOnlySpan, ReadOnlySpan, IEqualityComparer)
Searches for the last index of any value other than the specified values.
LastIndexOfAnyExcept(ReadOnlySpan, ReadOnlySpan)
Searches for the last index of any value other than the specified values.
LastIndexOfAnyExcept(ReadOnlySpan, SearchValues)
Searches for the last index of any value other than the specified values.
LastIndexOfAnyExcept(ReadOnlySpan, T, IEqualityComparer)
Searches for the last index of any value other than the specified value.
LastIndexOfAnyExcept(ReadOnlySpan, T, T, IEqualityComparer)
Searches for the last index of any value other than the specified value0 or value1.
LastIndexOfAnyExcept(ReadOnlySpan, T, T, T, IEqualityComparer)
Searches for the last index of any value other than the specified value0, value1, or value2.
LastIndexOfAnyExcept(ReadOnlySpan, T, T, T)
Searches for the last index of any value other than the specified value0, value1, or value2.
LastIndexOfAnyExcept(ReadOnlySpan, T, T)
Searches for the last index of any value other than the specified value0 or value1.
LastIndexOfAnyExcept(ReadOnlySpan, T)
Searches for the last index of any value other than the specified value.
LastIndexOfAnyExceptInRange(ReadOnlySpan, T, T)
Searches for the last index of any value outside of the range between lowInclusive and highInclusive, inclusive.
LastIndexOfAnyInRange(ReadOnlySpan, T, T)
Searches for the last index of any value in the range between lowInclusive and highInclusive, inclusive.
Overlaps(ReadOnlySpan, ReadOnlySpan, Int32)
Determines whether two read-only sequences overlap in memory and outputs the element offset.
Overlaps(ReadOnlySpan, ReadOnlySpan)
Determines whether two read-only sequences overlap in memory.
Replace(ReadOnlySpan, Span, T, T, IEqualityComparer)
Copies source to destination, replacing all occurrences of oldValue with newValue.
Replace(ReadOnlySpan, Span, T, T)
Copies source to destination, replacing all occurrences of oldValue with newValue.
ReplaceAny(ReadOnlySpan, Span, SearchValues, T)
Copies source to destination, replacing all occurrences of any of the elements in values with newValue.
ReplaceAnyExcept(ReadOnlySpan, Span, SearchValues, T)
Copies source to destination, replacing all occurrences of any of the elements other than those in values with newValue.
SequenceCompareTo(ReadOnlySpan, ReadOnlySpan, IComparer)
Determines the relative order of the sequences being compared by comparing the elements using IComparable{T}.CompareTo(T).
SequenceCompareTo(ReadOnlySpan, ReadOnlySpan)
Determines the relative order of two read-only sequences by comparing their elements using IComparable{T}.CompareTo(T).
SequenceEqual(ReadOnlySpan, ReadOnlySpan, IEqualityComparer)
Determines whether two sequences are equal by comparing the elements using an IEqualityComparer.
SequenceEqual(ReadOnlySpan, ReadOnlySpan)
Determines whether two read-only sequences are equal by comparing the elements using IEquatable{T}.Equals(T).
Split(ReadOnlySpan, ReadOnlySpan)
Returns a type that allows for enumeration of each element within a split span using the provided separator span.
Returns a type that allows for enumeration of each element within a split span using the provided separator character.
SplitAny(ReadOnlySpan, ReadOnlySpan)
Returns a type that allows for enumeration of each element within a split span using any of the provided elements.
SplitAny(ReadOnlySpan, SearchValues)
Returns a type that allows for enumeration of each element within a split span using the provided separator characters.
StartsWith(ReadOnlySpan, ReadOnlySpan, IEqualityComparer)
Determines whether a specified sequence appears at the start of a read-only span.
StartsWith(ReadOnlySpan, ReadOnlySpan)
Determines whether a specified sequence appears at the start of a read-only span.
StartsWith(ReadOnlySpan, T, IEqualityComparer)
Determines whether the specified value appears at the start of the span.
Determines whether the specified value appears at the start of the span.
ToImmutableArray(ReadOnlySpan)
Produce an immutable array of contents from specified elements.
Trim(ReadOnlySpan, ReadOnlySpan)
Removes all leading and trailing occurrences of a set of elements specified in a read-only span from a read-only span.
Removes all leading and trailing occurrences of a specified element from a read-only span.
TrimEnd(ReadOnlySpan, ReadOnlySpan)
Removes all trailing occurrences of a set of elements specified in a read-only span from a read-only span.
Removes all trailing occurrences of a specified element from a read-only span.
TrimStart(ReadOnlySpan, ReadOnlySpan)
Removes all leading occurrences of a set of elements specified in a read-only span from the span.
Removes all leading occurrences of a specified element from the span.