Class ExMemoryExtensions
Provides extension methods for the span-related types, such as ExSpan<T> and ReadOnlyExSpan<T>. It can be regarded as the MemoryExtensions of nint index range (提供跨度相关类型的扩展方法,例如 ExSpan<T> 和 ReadOnlyExSpan<T>. 它可以被视为 nint 索引范围的 MemoryExtensions).
public static class ExMemoryExtensions
- Inheritance
-
ExMemoryExtensions
- Inherited Members
Remarks
Commonly extension methods such as AsExSpan are located in ExSpanExtensions (AsExSpan 等常用扩展方法位于 ExSpanExtensions).
Methods
- BinarySearch<T>(ExSpan<T>, IComparable<T>)
Searches an entire sorted ExSpan<T> for a value using the specified IComparable<T> generic interface.
- BinarySearch<T>(ReadOnlyExSpan<T>, IComparable<T>)
Searches an entire sorted ReadOnlyExSpan<T> for a value using the specified IComparable<T> generic interface.
- BinarySearch<T, TComparer>(ExSpan<T>, T, TComparer)
Searches an entire sorted ExSpan<T> for the specified
value
using the specifiedTComparer
generic type.
- BinarySearch<T, TComparable>(ExSpan<T>, TComparable)
Searches an entire sorted ExSpan<T> for a value using the specified
TComparable
generic type.
- BinarySearch<T, TComparer>(ReadOnlyExSpan<T>, T, TComparer)
Searches an entire sorted ReadOnlyExSpan<T> for the specified
value
using the specifiedTComparer
generic type.
- BinarySearch<T, TComparable>(ReadOnlyExSpan<T>, TComparable)
Searches an entire sorted ReadOnlyExSpan<T> for a value using the specified
TComparable
generic type.
- CommonPrefixLength<T>(ExSpan<T>, ReadOnlyExSpan<T>)
Finds the length of any common prefix shared between
span
andother
.
- CommonPrefixLength<T>(ExSpan<T>, ReadOnlyExSpan<T>, IEqualityComparer<T>?)
Finds the length of any common prefix shared between
span
andother
.
- CommonPrefixLength<T>(ReadOnlyExSpan<T>, ReadOnlyExSpan<T>)
Finds the length of any common prefix shared between
span
andother
.
- CommonPrefixLength<T>(ReadOnlyExSpan<T>, ReadOnlyExSpan<T>, IEqualityComparer<T>?)
Determines the length of any common prefix shared between
span
andother
.
- CompareTo(ReadOnlyExSpan<char>, ReadOnlyExSpan<char>, StringComparison)
Compares the specified
span
andother
using the specifiedcomparisonType
, and returns an integer that indicates their relative position in the sort order.
- Contains(ReadOnlyExSpan<char>, ReadOnlyExSpan<char>, StringComparison)
Returns a value indicating whether the specified
value
occurs within thespan
.
- ContainsAnyExceptInRange<T>(ExSpan<T>, T, T)
Searches for any value outside of the range between
lowInclusive
andhighInclusive
, inclusive.
- ContainsAnyExceptInRange<T>(ReadOnlyExSpan<T>, T, T)
Searches for any value outside of the range between
lowInclusive
andhighInclusive
, inclusive.
- ContainsAnyExcept<T>(ExSpan<T>, ReadOnlyExSpan<T>)
Searches for any value other than the specified
values
.
- ContainsAnyExcept<T>(ExSpan<T>, T)
Searches for any value other than the specified
value
.
- ContainsAnyExcept<T>(ExSpan<T>, T, T)
Searches for any value other than the specified
value0
orvalue1
.
- ContainsAnyExcept<T>(ExSpan<T>, T, T, T)
Searches for any value other than the specified
value0
,value1
, orvalue2
.
- ContainsAnyExcept<T>(ReadOnlyExSpan<T>, ReadOnlyExSpan<T>)
Searches for any value other than the specified
values
.
- ContainsAnyExcept<T>(ReadOnlyExSpan<T>, ReadOnlyExSpan<T>, IEqualityComparer<T>?)
Searches for any value other than the specified
values
.
- ContainsAnyExcept<T>(ReadOnlyExSpan<T>, T)
Searches for any value other than the specified
value
.
- ContainsAnyExcept<T>(ReadOnlyExSpan<T>, T, IEqualityComparer<T>?)
Searches for any value other than the specified
value
.
- ContainsAnyExcept<T>(ReadOnlyExSpan<T>, T, T)
Searches for any value other than the specified
value0
orvalue1
.
- ContainsAnyExcept<T>(ReadOnlyExSpan<T>, T, T, IEqualityComparer<T>?)
Searches for any value other than the specified
value0
orvalue1
.
- ContainsAnyExcept<T>(ReadOnlyExSpan<T>, T, T, T)
Searches for any value other than the specified
value0
,value1
, orvalue2
.
- ContainsAnyExcept<T>(ReadOnlyExSpan<T>, T, T, T, IEqualityComparer<T>?)
Searches for any value other than the specified
value0
,value1
, orvalue2
.
- ContainsAnyInRange<T>(ExSpan<T>, T, T)
Searches for any value in the range between
lowInclusive
andhighInclusive
, inclusive, and returns true if found. If not found, returns false.
- ContainsAnyInRange<T>(ReadOnlyExSpan<T>, T, T)
Searches for any value in the range between
lowInclusive
andhighInclusive
, inclusive, and returns true if found. If not found, returns false.
- ContainsAny<T>(ExSpan<T>, ReadOnlyExSpan<T>)
Searches for any occurrence of any of the specified
values
and returns true if found. If not found, returns false.
- ContainsAny<T>(ExSpan<T>, T, T)
Searches for any occurrence of the specified
value0
orvalue1
, and returns true if found. If not found, returns false.
- ContainsAny<T>(ExSpan<T>, T, T, T)
Searches for any occurrence of the specified
value0
,value1
, orvalue2
, and returns true if found. If not found, returns false.
- ContainsAny<T>(ReadOnlyExSpan<T>, ReadOnlyExSpan<T>)
Searches for any occurrence of any of the specified
values
and returns true if found. If not found, returns false.
- ContainsAny<T>(ReadOnlyExSpan<T>, ReadOnlyExSpan<T>, IEqualityComparer<T>?)
Searches for any occurrence of any of the specified
values
and returns true if found. If not found, returns false.
- ContainsAny<T>(ReadOnlyExSpan<T>, T, T)
Searches for any occurrence of the specified
value0
orvalue1
, and returns true if found. If not found, returns false.
- ContainsAny<T>(ReadOnlyExSpan<T>, T, T, IEqualityComparer<T>?)
Searches for any occurrence of the specified
value0
orvalue1
, and returns true if found. If not found, returns false.
- ContainsAny<T>(ReadOnlyExSpan<T>, T, T, T)
Searches for any occurrence of the specified
value0
,value1
, orvalue2
, and returns true if found. If not found, returns false.
- ContainsAny<T>(ReadOnlyExSpan<T>, T, T, T, IEqualityComparer<T>?)
Searches for any occurrence of the specified
value0
,value1
, orvalue2
, and returns true if found. If not found, returns false.
- Contains<T>(ExSpan<T>, T)
Searches for the specified value and returns true if found. If not found, returns false. Values are compared using IEquatable{T}.Equals(T).
- Contains<T>(ReadOnlyExSpan<T>, T)
Searches for the specified value and returns true if found. If not found, returns false. Values are compared using IEquatable{T}.Equals(T).
- Contains<T>(ReadOnlyExSpan<T>, T, IEqualityComparer<T>?)
Searches for the specified value and returns true if found. If not found, returns false.
- CountAny<T>(ReadOnlyExSpan<T>, ReadOnlyExSpan<T>)
Counts the number of times any of the specified
values
occurs in thespan
.
- CountAny<T>(ReadOnlyExSpan<T>, ReadOnlyExSpan<T>, IEqualityComparer<T>?)
Counts the number of times any of the specified
values
occurs in thespan
.
- Count<T>(ExSpan<T>, ReadOnlyExSpan<T>)
Counts the number of times the specified
value
occurs in thespan
.
- Count<T>(ExSpan<T>, T)
Counts the number of times the specified
value
occurs in thespan
.
- Count<T>(ReadOnlyExSpan<T>, ReadOnlyExSpan<T>)
Counts the number of times the specified
value
occurs in thespan
.
- Count<T>(ReadOnlyExSpan<T>, ReadOnlyExSpan<T>, IEqualityComparer<T>?)
Counts the number of times the specified
value
occurs in thespan
.
- Count<T>(ReadOnlyExSpan<T>, T)
Counts the number of times the specified
value
occurs in thespan
.
- Count<T>(ReadOnlyExSpan<T>, T, IEqualityComparer<T>?)
Counts the number of times the specified
value
occurs in thespan
.
- EndsWith(ReadOnlyExSpan<char>, ReadOnlyExSpan<char>, StringComparison)
Determines whether the end of the
span
matches the specifiedvalue
when compared using the specifiedcomparisonType
option.
- EndsWith<T>(ExSpan<T>, ReadOnlyExSpan<T>)
Determines whether the specified sequence appears at the end of the span.
- EndsWith<T>(ReadOnlyExSpan<T>, ReadOnlyExSpan<T>)
Determines whether the specified sequence appears at the end of the span.
- EndsWith<T>(ReadOnlyExSpan<T>, ReadOnlyExSpan<T>, IEqualityComparer<T>?)
Determines whether the specified sequence appears at the end of the read-only span.
- EndsWith<T>(ReadOnlyExSpan<T>, T)
Determines whether the specified value appears at the end of the span.
- EndsWith<T>(ReadOnlyExSpan<T>, T, IEqualityComparer<T>?)
Determines whether the specified value appears at the end of the span.
- EnumerateLines(ExSpan<char>)
Returns an enumeration of lines over the provided span.
- EnumerateLines(ReadOnlyExSpan<char>)
Returns an enumeration of lines over the provided span.
- EnumerateRunes(ExSpan<char>)
Returns an enumeration of Rune from the provided span.
- EnumerateRunes(ReadOnlyExSpan<char>)
Returns an enumeration of Rune from the provided span.
- Equals(ReadOnlyExSpan<char>, ReadOnlyExSpan<char>, StringComparison)
Determines whether this
span
and the specifiedother
span have the same characters when compared using the specifiedcomparisonType
option.
- Fill<T>(ExSpan<T>, T)
Fills the contents of this span with the given value (用指定的值填充此跨度的内容).
- IndexOf(ReadOnlyExSpan<char>, ReadOnlyExSpan<char>, StringComparison)
Reports the zero-based index of the first occurrence of the specified
value
in the currentspan
.
- IndexOfAnyExceptInRange<T>(ExSpan<T>, T, T)
Searches for the first index of any value outside of the range between
lowInclusive
andhighInclusive
, inclusive.
- IndexOfAnyExceptInRange<T>(ReadOnlyExSpan<T>, T, T)
Searches for the first index of any value outside of the range between
lowInclusive
andhighInclusive
, inclusive.
- IndexOfAnyExcept<T>(ExSpan<T>, ReadOnlyExSpan<T>)
Searches for the first index of any value other than the specified
values
.
- IndexOfAnyExcept<T>(ExSpan<T>, T)
Searches for the first index of any value other than the specified
value
.
- IndexOfAnyExcept<T>(ExSpan<T>, T, T)
Searches for the first index of any value other than the specified
value0
orvalue1
.
- IndexOfAnyExcept<T>(ExSpan<T>, T, T, T)
Searches for the first index of any value other than the specified
value0
,value1
, orvalue2
.
- IndexOfAnyExcept<T>(ReadOnlyExSpan<T>, ReadOnlyExSpan<T>)
Searches for the first index of any value other than the specified
values
.
- IndexOfAnyExcept<T>(ReadOnlyExSpan<T>, ReadOnlyExSpan<T>, IEqualityComparer<T>?)
Searches for the first index of any value other than the specified
values
.
- IndexOfAnyExcept<T>(ReadOnlyExSpan<T>, T)
Searches for the first index of any value other than the specified
value
.
- IndexOfAnyExcept<T>(ReadOnlyExSpan<T>, T, IEqualityComparer<T>?)
Searches for the first index of any value other than the specified
value
.
- IndexOfAnyExcept<T>(ReadOnlyExSpan<T>, T, T)
Searches for the first index of any value other than the specified
value0
orvalue1
.
- IndexOfAnyExcept<T>(ReadOnlyExSpan<T>, T, T, IEqualityComparer<T>?)
Searches for the first index of any value other than the specified
value0
orvalue1
.
- IndexOfAnyExcept<T>(ReadOnlyExSpan<T>, T, T, T)
Searches for the first index of any value other than the specified
value0
,value1
, orvalue2
.
- IndexOfAnyExcept<T>(ReadOnlyExSpan<T>, T, T, T, IEqualityComparer<T>?)
Searches for the first index of any value other than the specified
value0
,value1
, orvalue2
.
- IndexOfAnyInRange<T>(ExSpan<T>, T, T)
Searches for the first index of any value in the range between
lowInclusive
andhighInclusive
, inclusive.
- IndexOfAnyInRange<T>(ReadOnlyExSpan<T>, T, T)
Searches for the first index of any value in the range between
lowInclusive
andhighInclusive
, inclusive.
- IndexOfAny<T>(ExSpan<T>, ReadOnlyExSpan<T>)
Searches for the first index of any of the specified values similar to calling IndexOf several times with the logical OR operator. If not found, returns -1.
- IndexOfAny<T>(ExSpan<T>, T, T)
Searches for the first index of any of the specified values similar to calling IndexOf several times with the logical OR operator. If not found, returns -1.
- IndexOfAny<T>(ExSpan<T>, T, T, T)
Searches for the first index of any of the specified values similar to calling IndexOf several times with the logical OR operator. If not found, returns -1.
- IndexOfAny<T>(ReadOnlyExSpan<T>, ReadOnlyExSpan<T>)
Searches for the first index of any of the specified values similar to calling IndexOf several times with the logical OR operator. If not found, returns -1.
- IndexOfAny<T>(ReadOnlyExSpan<T>, ReadOnlyExSpan<T>, IEqualityComparer<T>?)
Searches for the first index of any of the specified values similar to calling IndexOf several times with the logical OR operator. If not found, returns -1.
- IndexOfAny<T>(ReadOnlyExSpan<T>, T, T)
Searches for the first index of any of the specified values similar to calling IndexOf several times with the logical OR operator. If not found, returns -1.
- IndexOfAny<T>(ReadOnlyExSpan<T>, T, T, IEqualityComparer<T>?)
Searches for the first index of any of the specified values similar to calling IndexOf several times with the logical OR operator. If not found, returns -1.
- IndexOfAny<T>(ReadOnlyExSpan<T>, T, T, T)
Searches for the first index of any of the specified values similar to calling IndexOf several times with the logical OR operator. If not found, returns -1.
- IndexOfAny<T>(ReadOnlyExSpan<T>, T, T, T, IEqualityComparer<T>?)
Searches for the first index of any of the specified values similar to calling IndexOf several times with the logical OR operator. If not found, returns -1.
- IndexOf<T>(ExSpan<T>, ReadOnlyExSpan<T>)
Searches for the specified sequence and returns the index of its first occurrence. If not found, returns -1. Values are compared using IEquatable{T}.Equals(T).
- IndexOf<T>(ExSpan<T>, T)
Searches for the specified value and returns the index of its first occurrence. If not found, returns -1. Values are compared using IEquatable{T}.Equals(T).
- IndexOf<T>(ReadOnlyExSpan<T>, ReadOnlyExSpan<T>)
Searches for the specified sequence and returns the index of its first occurrence. If not found, returns -1. Values are compared using IEquatable{T}.Equals(T).
- IndexOf<T>(ReadOnlyExSpan<T>, ReadOnlyExSpan<T>, IEqualityComparer<T>?)
Searches for the specified sequence and returns the index of its first occurrence. If not found, returns -1. Values are compared using IEquatable{T}.Equals(T).
- IndexOf<T>(ReadOnlyExSpan<T>, T)
Searches for the specified value and returns the index of its first occurrence. If not found, returns -1. Values are compared using IEquatable{T}.Equals(T).
- IndexOf<T>(ReadOnlyExSpan<T>, T, IEqualityComparer<T>?)
Searches for the specified value and returns the index of its first occurrence. If not found, returns -1. Values are compared using IEquatable{T}.Equals(T).
- IsWhiteSpace(ReadOnlyExSpan<char>)
Indicates whether the specified span contains only white-space characters.
- LastIndexOf(ReadOnlyExSpan<char>, ReadOnlyExSpan<char>, StringComparison)
Reports the zero-based index of the last occurrence of the specified
value
in the currentspan
.
- LastIndexOfAnyExceptInRange<T>(ExSpan<T>, T, T)
Searches for the last index of any value outside of the range between
lowInclusive
andhighInclusive
, inclusive.
- LastIndexOfAnyExceptInRange<T>(ReadOnlyExSpan<T>, T, T)
Searches for the last index of any value outside of the range between
lowInclusive
andhighInclusive
, inclusive.
- LastIndexOfAnyExcept<T>(ExSpan<T>, ReadOnlyExSpan<T>)
Searches for the last index of any value other than the specified
values
.
- LastIndexOfAnyExcept<T>(ExSpan<T>, T)
Searches for the last index of any value other than the specified
value
.
- LastIndexOfAnyExcept<T>(ExSpan<T>, T, T)
Searches for the last index of any value other than the specified
value0
orvalue1
.
- LastIndexOfAnyExcept<T>(ExSpan<T>, T, T, T)
Searches for the last index of any value other than the specified
value0
,value1
, orvalue2
.
- LastIndexOfAnyExcept<T>(ReadOnlyExSpan<T>, ReadOnlyExSpan<T>)
Searches for the last index of any value other than the specified
values
.
- LastIndexOfAnyExcept<T>(ReadOnlyExSpan<T>, ReadOnlyExSpan<T>, IEqualityComparer<T>?)
Searches for the last index of any value other than the specified
values
.
- LastIndexOfAnyExcept<T>(ReadOnlyExSpan<T>, T)
Searches for the last index of any value other than the specified
value
.
- LastIndexOfAnyExcept<T>(ReadOnlyExSpan<T>, T, IEqualityComparer<T>?)
Searches for the last index of any value other than the specified
value
.
- LastIndexOfAnyExcept<T>(ReadOnlyExSpan<T>, T, T)
Searches for the last index of any value other than the specified
value0
orvalue1
.
- LastIndexOfAnyExcept<T>(ReadOnlyExSpan<T>, T, T, IEqualityComparer<T>?)
Searches for the last index of any value other than the specified
value0
orvalue1
.
- LastIndexOfAnyExcept<T>(ReadOnlyExSpan<T>, T, T, T)
Searches for the last index of any value other than the specified
value0
,value1
, orvalue2
.
- LastIndexOfAnyExcept<T>(ReadOnlyExSpan<T>, T, T, T, IEqualityComparer<T>?)
Searches for the last index of any value other than the specified
value0
,value1
, orvalue2
.
- LastIndexOfAnyInRange<T>(ExSpan<T>, T, T)
Searches for the last index of any value in the range between
lowInclusive
andhighInclusive
, inclusive.
- LastIndexOfAnyInRange<T>(ReadOnlyExSpan<T>, T, T)
Searches for the last index of any value in the range between
lowInclusive
andhighInclusive
, inclusive.
- LastIndexOfAny<T>(ExSpan<T>, ReadOnlyExSpan<T>)
Searches for the last index of any of the specified values similar to calling LastIndexOf several times with the logical OR operator. If not found, returns -1.
- LastIndexOfAny<T>(ExSpan<T>, T, T)
Searches for the last index of any of the specified values similar to calling LastIndexOf several times with the logical OR operator. If not found, returns -1.
- LastIndexOfAny<T>(ExSpan<T>, T, T, T)
Searches for the last index of any of the specified values similar to calling LastIndexOf several times with the logical OR operator. If not found, returns -1.
- LastIndexOfAny<T>(ReadOnlyExSpan<T>, ReadOnlyExSpan<T>)
Searches for the last index of any of the specified values similar to calling LastIndexOf several times with the logical OR operator. If not found, returns -1.
- LastIndexOfAny<T>(ReadOnlyExSpan<T>, ReadOnlyExSpan<T>, IEqualityComparer<T>?)
Searches for the last index of any of the specified values similar to calling LastIndexOf several times with the logical OR operator. If not found, returns -1.
- LastIndexOfAny<T>(ReadOnlyExSpan<T>, T, T)
Searches for the last index of any of the specified values similar to calling LastIndexOf several times with the logical OR operator. If not found, returns -1.
- LastIndexOfAny<T>(ReadOnlyExSpan<T>, T, T, IEqualityComparer<T>?)
Searches for the last index of any of the specified values similar to calling LastIndexOf several times with the logical OR operator. If not found, returns -1.
- LastIndexOfAny<T>(ReadOnlyExSpan<T>, T, T, T)
Searches for the last index of any of the specified values similar to calling LastIndexOf several times with the logical OR operator. If not found, returns -1.
- LastIndexOfAny<T>(ReadOnlyExSpan<T>, T, T, T, IEqualityComparer<T>?)
Searches for the last index of any of the specified values similar to calling LastIndexOf several times with the logical OR operator. If not found, returns -1.
- LastIndexOf<T>(ExSpan<T>, ReadOnlyExSpan<T>)
Searches for the specified sequence and returns the index of its last occurrence. If not found, returns -1. Values are compared using IEquatable{T}.Equals(T).
- LastIndexOf<T>(ExSpan<T>, T)
Searches for the specified value and returns the index of its last occurrence. If not found, returns -1. Values are compared using IEquatable{T}.Equals(T).
- LastIndexOf<T>(ReadOnlyExSpan<T>, ReadOnlyExSpan<T>)
Searches for the specified sequence and returns the index of its last occurrence. If not found, returns -1. Values are compared using IEquatable{T}.Equals(T).
- LastIndexOf<T>(ReadOnlyExSpan<T>, ReadOnlyExSpan<T>, IEqualityComparer<T>?)
Searches for the specified sequence and returns the index of its last occurrence. If not found, returns -1. Values are compared using IEquatable{T}.Equals(T).
- LastIndexOf<T>(ReadOnlyExSpan<T>, T)
Searches for the specified value and returns the index of its last occurrence. If not found, returns -1. Values are compared using IEquatable{T}.Equals(T).
- LastIndexOf<T>(ReadOnlyExSpan<T>, T, IEqualityComparer<T>?)
Searches for the specified value and returns the index of its last occurrence. If not found, returns -1. Values are compared using IEquatable{T}.Equals(T).
- Overlaps<T>(ExSpan<T>, ReadOnlyExSpan<T>)
Determines whether two sequences overlap in memory.
- Overlaps<T>(ExSpan<T>, ReadOnlyExSpan<T>, out int)
Determines whether two sequences overlap in memory and outputs the element offset.
- Overlaps<T>(ReadOnlyExSpan<T>, ReadOnlyExSpan<T>)
Determines whether two sequences overlap in memory.
- Overlaps<T>(ReadOnlyExSpan<T>, ReadOnlyExSpan<T>, out int)
Determines whether two sequences overlap in memory and outputs the element offset.
- Replace<T>(ExSpan<T>, T, T)
Replaces all occurrences of
oldValue
withnewValue
.
- Replace<T>(ExSpan<T>, T, T, IEqualityComparer<T>?)
Replaces all occurrences of
oldValue
withnewValue
.
- Replace<T>(ReadOnlyExSpan<T>, ExSpan<T>, T, T)
Copies
source
todestination
, replacing all occurrences ofoldValue
withnewValue
.
- Replace<T>(ReadOnlyExSpan<T>, ExSpan<T>, T, T, IEqualityComparer<T>?)
Copies
source
todestination
, replacing all occurrences ofoldValue
withnewValue
.
- Reverse<T>(ExSpan<T>)
Reverses the sequence of the elements in the entire span.
- SequenceCompareTo<T>(ExSpan<T>, ReadOnlyExSpan<T>)
Determines the relative order of the sequences being compared by comparing the elements using IComparable{T}.CompareTo(T).
- SequenceCompareTo<T>(ExSpan<T>, ReadOnlyExSpan<T>, IComparer<T>?)
Determines the relative order of the sequences being compared by comparing the elements using IComparable{T}.CompareTo(T).
- SequenceCompareTo<T>(ReadOnlyExSpan<T>, ReadOnlyExSpan<T>)
Determines the relative order of the sequences being compared by comparing the elements using IComparable{T}.CompareTo(T).
- SequenceCompareTo<T>(ReadOnlyExSpan<T>, ReadOnlyExSpan<T>, IComparer<T>?)
Determines the relative order of the sequences being compared by comparing the elements using IComparable{T}.CompareTo(T).
- SequenceEqual<T>(ExSpan<T>, ReadOnlyExSpan<T>)
Determines whether a span and a read-only span are equal by comparing the elements using Equals(T) (通过使用 Equals(T) 比较元素, 确定跨度和只读跨度是否相等).
- SequenceEqual<T>(ExSpan<T>, ReadOnlyExSpan<T>, IEqualityComparer<T>?)
Determines whether a span and a read-only span are equal by comparing the elements using Equals(T) (通过使用 Equals(T) 比较元素, 确定跨度和只读跨度是否相等).
- SequenceEqual<T>(ReadOnlyExSpan<T>, ReadOnlyExSpan<T>)
Determines whether two read-only sequences are equal by comparing the elements using Equals(T) (通过使用 Equals(T) 比较元素, 确定两个只读序列是否相等).
- SequenceEqual<T>(ReadOnlyExSpan<T>, ReadOnlyExSpan<T>, IEqualityComparer<T>?)
Determines whether two read-only sequences are equal by comparing the elements using Equals(T) (通过使用 Equals(T) 比较元素, 确定两个只读序列是否相等).
- Sort<T>(ExSpan<T>)
Sorts the elements in the entire ExSpan<T> using the IComparable<T> implementation of each element of the ExSpan<T>
- Sort<T>(ExSpan<T>, Comparison<T>)
Sorts the elements in the entire ExSpan<T> using the specified Comparison<T>.
- Sort<TKey, TValue>(ExSpan<TKey>, ExSpan<TValue>)
Sorts a pair of ExSpans (one containing the keys and the other containing the corresponding items) based on the keys in the first ExSpan<T> using the IComparable<T> implementation of each key.
- Sort<TKey, TValue>(ExSpan<TKey>, ExSpan<TValue>, Comparison<TKey>)
Sorts a pair of ExSpans (one containing the keys and the other containing the corresponding items) based on the keys in the first ExSpan<T> using the specified comparison.
- Sort<T, TComparer>(ExSpan<T>, TComparer)
Sorts the elements in the entire ExSpan<T> using the
TComparer
.
- Sort<TKey, TValue, TComparer>(ExSpan<TKey>, ExSpan<TValue>, TComparer)
Sorts a pair of ExSpans (one containing the keys and the other containing the corresponding items) based on the keys in the first ExSpan<T> using the specified comparer.
- StartsWith(ReadOnlyExSpan<char>, ReadOnlyExSpan<char>, StringComparison)
Determines whether the beginning of the
span
matches the specifiedvalue
when compared using the specifiedcomparisonType
option.
- StartsWith<T>(ExSpan<T>, ReadOnlyExSpan<T>)
Determines whether the specified sequence appears at the start of the span.
- StartsWith<T>(ReadOnlyExSpan<T>, ReadOnlyExSpan<T>)
Determines whether the specified sequence appears at the start of the span.
- StartsWith<T>(ReadOnlyExSpan<T>, ReadOnlyExSpan<T>, IEqualityComparer<T>?)
Determines whether a specified sequence appears at the start of a read-only span.
- StartsWith<T>(ReadOnlyExSpan<T>, T)
Determines whether the specified value appears at the start of the span.
- StartsWith<T>(ReadOnlyExSpan<T>, T, IEqualityComparer<T>?)
Determines whether the specified value appears at the start of the span.
- ToLower(ReadOnlyExSpan<char>, ExSpan<char>, CultureInfo?)
Copies the characters from the source span into the destination, converting each character to lowercase, using the casing rules of the specified culture.
- ToLowerInvariant(ReadOnlyExSpan<char>, ExSpan<char>)
Copies the characters from the source span into the destination, converting each character to lowercase, using the casing rules of the invariant culture.
- ToUpper(ReadOnlyExSpan<char>, ExSpan<char>, CultureInfo?)
Copies the characters from the source span into the destination, converting each character to uppercase, using the casing rules of the specified culture.
- ToUpperInvariant(ReadOnlyExSpan<char>, ExSpan<char>)
Copies the characters from the source span into the destination, converting each character to uppercase using the casing rules of the invariant culture.
- Trim(ExSpan<char>)
Removes all leading and trailing white-space characters from the span.
- Trim(ReadOnlyExSpan<char>)
Removes all leading and trailing white-space characters from the span.
- Trim(ReadOnlyExSpan<char>, char)
Removes all leading and trailing occurrences of a specified character from the span.
- Trim(ReadOnlyExSpan<char>, ReadOnlyExSpan<char>)
Removes all leading and trailing occurrences of a set of characters specified in a readonly span from the span.
- TrimEnd(ExSpan<char>)
Removes all trailing white-space characters from the span.
- TrimEnd(ReadOnlyExSpan<char>)
Removes all trailing white-space characters from the span.
- TrimEnd(ReadOnlyExSpan<char>, char)
Removes all trailing occurrences of a specified character from the span.
- TrimEnd(ReadOnlyExSpan<char>, ReadOnlyExSpan<char>)
Removes all trailing occurrences of a set of characters specified in a readonly span from the span.
- TrimEnd<T>(ExSpan<T>, ReadOnlyExSpan<T>)
Removes all trailing occurrences of a set of elements specified in a readonly span from the span.
- TrimEnd<T>(ExSpan<T>, T)
Removes all trailing occurrences of a specified element from the span.
- TrimEnd<T>(ReadOnlyExSpan<T>, ReadOnlyExSpan<T>)
Removes all trailing occurrences of a set of elements specified in a readonly span from the span.
- TrimEnd<T>(ReadOnlyExSpan<T>, T)
Removes all trailing occurrences of a specified element from the span.
- TrimStart(ExSpan<char>)
Removes all leading white-space characters from the span.
- TrimStart(ReadOnlyExSpan<char>)
Removes all leading white-space characters from the span.
- TrimStart(ReadOnlyExSpan<char>, char)
Removes all leading occurrences of a specified character from the span.
- TrimStart(ReadOnlyExSpan<char>, ReadOnlyExSpan<char>)
Removes all leading occurrences of a set of characters specified in a readonly span from the span.
- TrimStart<T>(ExSpan<T>, ReadOnlyExSpan<T>)
Removes all leading occurrences of a set of elements specified in a readonly span from the span.
- TrimStart<T>(ExSpan<T>, T)
Removes all leading occurrences of a specified element from the span.
- TrimStart<T>(ReadOnlyExSpan<T>, ReadOnlyExSpan<T>)
Removes all leading occurrences of a set of elements specified in a readonly span from the span.
- TrimStart<T>(ReadOnlyExSpan<T>, T)
Removes all leading occurrences of a specified element from the span.
- Trim<T>(ExSpan<T>, ReadOnlyExSpan<T>)
Removes all leading and trailing occurrences of a set of elements specified in a readonly span from the span.
- Trim<T>(ExSpan<T>, T)
Removes all leading and trailing occurrences of a specified element from the span.
- Trim<T>(ReadOnlyExSpan<T>, ReadOnlyExSpan<T>)
Removes all leading and trailing occurrences of a set of elements specified in a readonly span from the span.
- Trim<T>(ReadOnlyExSpan<T>, T)
Removes all leading and trailing occurrences of a specified element from the span.
- TryCopyTo(string, ExSpan<char>)
Copies the contents of this string into the destination span.
- TryWrite(ExSpan<char>, IFormatProvider?, CompositeFormat, out nint, params object?[])
Writes the CompositeFormat string to the character span, substituting the format item or items with the string representation of the corresponding arguments.
- TryWrite(ExSpan<char>, IFormatProvider?, CompositeFormat, out nint, params ReadOnlySpan<object?>)
Writes the CompositeFormat string to the character span, substituting the format item or items with the string representation of the corresponding arguments.
- TryWrite(ExSpan<char>, IFormatProvider?, ref ExTryWriteInterpolatedStringHandler, out nint)
Writes the specified interpolated string to the character span.
- TryWrite(ExSpan<char>, ref ExTryWriteInterpolatedStringHandler, out nint)
Writes the specified interpolated string to the character span.
- TryWrite<TArg0>(ExSpan<char>, IFormatProvider?, CompositeFormat, out nint, TArg0)
Writes the CompositeFormat string to the character span, substituting the format item or items with the string representation of the corresponding arguments.
- TryWrite<TArg0, TArg1>(ExSpan<char>, IFormatProvider?, CompositeFormat, out nint, TArg0, TArg1)
Writes the CompositeFormat string to the character span, substituting the format item or items with the string representation of the corresponding arguments.
- TryWrite<TArg0, TArg1, TArg2>(ExSpan<char>, IFormatProvider?, CompositeFormat, out nint, TArg0, TArg1, TArg2)
Writes the CompositeFormat string to the character span, substituting the format item or items with the string representation of the corresponding arguments.