MemoryExtensions Class
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Provides extension methods for the memory-related and span-related types, such as Memory<T>, ReadOnlyMemory<T>, Span<T>, and ReadOnlySpan<T>.
public ref class MemoryExtensions abstract sealed
public static class MemoryExtensions
type MemoryExtensions = class
Public Module MemoryExtensions
- Inheritance
-
MemoryExtensions
Methods
AsMemory(String, Index) |
Creates a new |
AsMemory(String, Int32, Int32) |
Creates a new |
AsMemory(String, Int32) |
Creates a new |
AsMemory(String, Range) |
Creates a new |
AsMemory(String) |
Creates a new |
AsMemory<T>(ArraySegment<T>, Int32, Int32) |
Creates a new memory region over the portion of the target array segment beginning at a specified position with a specified length. |
AsMemory<T>(ArraySegment<T>, Int32) |
Creates a new memory region over the portion of the target array segment starting at a specified position to the end of the segment. |
AsMemory<T>(ArraySegment<T>) |
Creates a new memory region over the portion of the target array segment. |
AsMemory<T>(T[], Index) |
Creates a new memory region over the portion of the target array starting at a specified index to the end of the array. |
AsMemory<T>(T[], Int32, Int32) |
Creates a new memory region over the portion of the target array beginning at a specified position with a specified length. |
AsMemory<T>(T[], Int32) |
Creates a new memory region over the portion of the target array starting at a specified position to the end of the array. |
AsMemory<T>(T[], Range) |
Creates a new memory region over the portion of the target array beginning at inclusive start index of the range and ending at the exclusive end index of the range. |
AsMemory<T>(T[]) |
Creates a new memory region over the target array. |
AsSpan(String, Index) |
Creates a new ReadOnlySpan<T> over a portion of the target string from a specified position to the end of the string. |
AsSpan(String, Int32, Int32) |
Creates a new read-only span over a portion of the target string from a specified position for a specified number of characters. |
AsSpan(String, Int32) |
Creates a new read-only span over a portion of the target string from a specified position to the end of the string. |
AsSpan(String, Range) |
Creates a new ReadOnlySpan<T> over a portion of a target string using the range start and end indexes. |
AsSpan(String) |
Creates a new read-only span over a string. |
AsSpan<T>(ArraySegment<T>, Index) |
Creates a new span over a portion of the target array segment beginning at a specified index and ending at the end of the segment. |
AsSpan<T>(ArraySegment<T>, Int32, Int32) |
Creates a new span over a portion of a target array segment from a specified position for a specified length. |
AsSpan<T>(ArraySegment<T>, Int32) |
Creates a new span over a portion of a target array segment from a specified position to the end of the segment. |
AsSpan<T>(ArraySegment<T>, Range) |
Creates a new span over a portion of a target array segment using the range start and end indexes. |
AsSpan<T>(ArraySegment<T>) |
Creates a new span over a target array segment. |
AsSpan<T>(T[], Index) |
Creates a new span over the portion of the target array defined by an Index value. |
AsSpan<T>(T[], Int32, Int32) |
Creates a new span over the portion of the target array beginning at a specified position for a specified length. |
AsSpan<T>(T[], Int32) |
Creates a new span over a portion of the target array starting at a specified position to the end of the array. |
AsSpan<T>(T[], Range) |
Creates a new span over a portion of a target array defined by a Range value. |
AsSpan<T>(T[]) |
Creates a new span over a target array. |
BinarySearch<T,TComparable>(ReadOnlySpan<T>, TComparable) |
Searches an entire sorted ReadOnlySpan<T> for a value using the specified |
BinarySearch<T,TComparable>(Span<T>, TComparable) |
Searches an entire sorted Span<T> for a value using the specified |
BinarySearch<T,TComparer>(ReadOnlySpan<T>, T, TComparer) |
Searches an entire sorted ReadOnlySpan<T> for a specified value using the specified |
BinarySearch<T,TComparer>(Span<T>, T, TComparer) |
Searches an entire sorted Span<T> for a specified value using the specified |
BinarySearch<T>(ReadOnlySpan<T>, IComparable<T>) |
Searches an entire sorted ReadOnlySpan<T> for a value using the specified IComparable<T> generic interface. |
BinarySearch<T>(Span<T>, IComparable<T>) |
Searches an entire sorted Span<T> for a value using the specified IComparable<T> generic interface. |
CommonPrefixLength<T>(ReadOnlySpan<T>, ReadOnlySpan<T>, IEqualityComparer<T>) |
Determines the length of any common prefix shared between |
CommonPrefixLength<T>(ReadOnlySpan<T>, ReadOnlySpan<T>) |
Finds the length of any common prefix shared between |
CommonPrefixLength<T>(Span<T>, ReadOnlySpan<T>, IEqualityComparer<T>) |
Finds the length of any common prefix shared between |
CommonPrefixLength<T>(Span<T>, ReadOnlySpan<T>) |
Finds the length of any common prefix shared between |
CompareTo(ReadOnlySpan<Char>, ReadOnlySpan<Char>, StringComparison) |
Compares one character span with another using a specified string comparison, and returns an integer that indicates their relative position in the sort order. |
Contains(ReadOnlySpan<Char>, ReadOnlySpan<Char>, StringComparison) |
Indicates whether a specified value occurs within a read-only character span. |
Contains<T>(ReadOnlySpan<T>, T) |
Indicates whether a specified value is found in a read-only span. Values are compared using IEquatable{T}.Equals(T). |
Contains<T>(Span<T>, T) |
Indicates whether a specified value is found in a span. Values are compared using IEquatable{T}.Equals(T). |
ContainsAny(ReadOnlySpan<Char>, SearchValues<String>) |
Searches for any occurrence of any of the specified substring |
ContainsAny(Span<Char>, SearchValues<String>) |
Searches for any occurrence of any of the specified substring |
ContainsAny<T>(ReadOnlySpan<T>, ReadOnlySpan<T>) |
Searches for an occurrence of any of the specified |
ContainsAny<T>(ReadOnlySpan<T>, SearchValues<T>) |
Searches for an occurrence of any of the specified |
ContainsAny<T>(ReadOnlySpan<T>, T, T, T) |
Searches for an occurrence of |
ContainsAny<T>(ReadOnlySpan<T>, T, T) |
Searches for an occurrence of |
ContainsAny<T>(Span<T>, ReadOnlySpan<T>) |
Searches for an occurrence of any of the specified |
ContainsAny<T>(Span<T>, SearchValues<T>) |
Searches for an occurrence of any of the specified |
ContainsAny<T>(Span<T>, T, T, T) |
Searches for an occurrence of |
ContainsAny<T>(Span<T>, T, T) |
Searches for an occurrence of |
ContainsAnyExcept<T>(ReadOnlySpan<T>, ReadOnlySpan<T>) |
Searches for any value other than the specified |
ContainsAnyExcept<T>(ReadOnlySpan<T>, SearchValues<T>) |
Searches for any value other than the specified |
ContainsAnyExcept<T>(ReadOnlySpan<T>, T, T, T) |
Searches for any value other than |
ContainsAnyExcept<T>(ReadOnlySpan<T>, T, T) |
Searches for any value other than |
ContainsAnyExcept<T>(ReadOnlySpan<T>, T) |
Searches for any value other than the specified |
ContainsAnyExcept<T>(Span<T>, ReadOnlySpan<T>) |
Searches for any value other than the specified |
ContainsAnyExcept<T>(Span<T>, SearchValues<T>) |
Searches for any value other than the specified |
ContainsAnyExcept<T>(Span<T>, T, T, T) |
Searches for any value other than |
ContainsAnyExcept<T>(Span<T>, T, T) |
Searches for any value other than |
ContainsAnyExcept<T>(Span<T>, T) |
Searches for any value other than the specified |
ContainsAnyExceptInRange<T>(ReadOnlySpan<T>, T, T) |
Searches for any value outside of the range between |
ContainsAnyExceptInRange<T>(Span<T>, T, T) |
Searches for any value outside of the range between |
ContainsAnyInRange<T>(ReadOnlySpan<T>, T, T) |
Searches for any value in the range between |
ContainsAnyInRange<T>(Span<T>, T, T) |
Searches for any value in the range between |
CopyTo<T>(T[], Memory<T>) |
Copies the contents of the array into a memory region. |
CopyTo<T>(T[], Span<T>) |
Copies the contents of the array into the span. |
Count<T>(ReadOnlySpan<T>, ReadOnlySpan<T>) |
Counts the number of times |
Count<T>(ReadOnlySpan<T>, T) |
Counts the number of times the specified |
Count<T>(Span<T>, ReadOnlySpan<T>) |
Counts the number of times the specified |
Count<T>(Span<T>, T) |
Counts the number of times the specified |
EndsWith(ReadOnlySpan<Char>, ReadOnlySpan<Char>, StringComparison) |
Determines whether the end of the |
EndsWith<T>(ReadOnlySpan<T>, ReadOnlySpan<T>) |
Determines whether the specified sequence appears at the end of a read-only span. |
EndsWith<T>(ReadOnlySpan<T>, T) |
Determines whether the specified value appears at the end of the span. |
EndsWith<T>(Span<T>, ReadOnlySpan<T>) |
Determines whether the specified sequence appears at the end of a span. |
EnumerateLines(ReadOnlySpan<Char>) |
Returns an enumeration of lines over the provided span. |
EnumerateLines(Span<Char>) |
Returns an enumeration of lines over the provided span. |
EnumerateRunes(ReadOnlySpan<Char>) |
Returns an enumeration of Rune from the provided read-only span. |
EnumerateRunes(Span<Char>) |
Returns an enumeration of Rune from the provided span. |
Equals(ReadOnlySpan<Char>, ReadOnlySpan<Char>, StringComparison) |
Determines whether this |
IndexOf(ReadOnlySpan<Char>, ReadOnlySpan<Char>, StringComparison) |
Reports the zero-based index of the first occurrence of the specified |
IndexOf<T>(ReadOnlySpan<T>, ReadOnlySpan<T>) |
Searches for the specified sequence and returns the index of its first occurrence. Values are compared using IEquatable{T}.Equals(T). |
IndexOf<T>(ReadOnlySpan<T>, T) |
Searches for the specified value and returns the index of its first occurrence. Values are compared using IEquatable{T}.Equals(T). |
IndexOf<T>(Span<T>, ReadOnlySpan<T>) |
Searches for the specified sequence and returns the index of its first occurrence. Values are compared using IEquatable{T}.Equals(T). |
IndexOf<T>(Span<T>, T) |
Searches for the specified value and returns the index of its first occurrence. Values are compared using IEquatable{T}.Equals(T). |
IndexOfAny(ReadOnlySpan<Char>, SearchValues<String>) |
Searches for the first index of any of the specified substring values. |
IndexOfAny(Span<Char>, SearchValues<String>) |
Searches for the first index of any of the specified substring values. |
IndexOfAny<T>(ReadOnlySpan<T>, ReadOnlySpan<T>) |
Searches for the first index of any of the specified values similar to calling IndexOf several times with the logical OR operator. |
IndexOfAny<T>(ReadOnlySpan<T>, SearchValues<T>) |
Searches for the first index of any of the specified values. |
IndexOfAny<T>(ReadOnlySpan<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. |
IndexOfAny<T>(ReadOnlySpan<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. |
IndexOfAny<T>(Span<T>, ReadOnlySpan<T>) |
Searches for the first index of any of the specified values similar to calling IndexOf several times with the logical OR operator. |
IndexOfAny<T>(Span<T>, SearchValues<T>) |
Searches for the first index of any of the specified values. |
IndexOfAny<T>(Span<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. |
IndexOfAny<T>(Span<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. |
IndexOfAnyExcept<T>(ReadOnlySpan<T>, ReadOnlySpan<T>) |
Searches for the first index of any value other than the specified |
IndexOfAnyExcept<T>(ReadOnlySpan<T>, SearchValues<T>) |
Searches for the first index of any value other than the specified |
IndexOfAnyExcept<T>(ReadOnlySpan<T>, T, T, T) |
Searches for the first index of any value other than the specified |
IndexOfAnyExcept<T>(ReadOnlySpan<T>, T, T) |
Searches for the first index of any value other than the specified |
IndexOfAnyExcept<T>(ReadOnlySpan<T>, T) |
Searches for the first index of any value other than the specified |
IndexOfAnyExcept<T>(Span<T>, ReadOnlySpan<T>) |
Searches for the first index of any value other than the specified |
IndexOfAnyExcept<T>(Span<T>, SearchValues<T>) |
Searches for the first index of any value other than the specified |
IndexOfAnyExcept<T>(Span<T>, T, T, T) |
Searches for the first index of any value other than the specified |
IndexOfAnyExcept<T>(Span<T>, T, T) |
Searches for the first index of any value other than the specified |
IndexOfAnyExcept<T>(Span<T>, T) |
Searches for the first index of any value other than the specified |
IndexOfAnyExceptInRange<T>(ReadOnlySpan<T>, T, T) |
Searches for the first index of any value outside of the range between |
IndexOfAnyExceptInRange<T>(Span<T>, T, T) |
Searches for the first index of any value outside of the range between |
IndexOfAnyInRange<T>(ReadOnlySpan<T>, T, T) |
Searches for the first index of any value in the range between |
IndexOfAnyInRange<T>(Span<T>, T, T) |
Searches for the first index of any value in the range between |
IsWhiteSpace(ReadOnlySpan<Char>) |
Indicates whether the specified span contains only whitespace characters. |
LastIndexOf(ReadOnlySpan<Char>, ReadOnlySpan<Char>, StringComparison) |
Reports the zero-based index of the last occurrence of the specified |
LastIndexOf<T>(ReadOnlySpan<T>, ReadOnlySpan<T>) |
Searches for the specified sequence and returns the index of its last occurrence. Values are compared using IEquatable{T}.Equals(T). |
LastIndexOf<T>(ReadOnlySpan<T>, T) |
Searches for the specified value and returns the index of its last occurrence. Values are compared using IEquatable{T}.Equals(T). |
LastIndexOf<T>(Span<T>, ReadOnlySpan<T>) |
Searches for the specified sequence and returns the index of its last occurrence. Values are compared using IEquatable{T}.Equals(T). |
LastIndexOf<T>(Span<T>, T) |
Searches for the specified value and returns the index of its last occurrence. Values are compared using IEquatable{T}.Equals(T). |
LastIndexOfAny<T>(ReadOnlySpan<T>, ReadOnlySpan<T>) |
Searches for the last index of any of the specified values similar to calling LastIndexOf several times with the logical OR operator. |
LastIndexOfAny<T>(ReadOnlySpan<T>, SearchValues<T>) |
Searches for the last index of any of the specified values. |
LastIndexOfAny<T>(ReadOnlySpan<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. |
LastIndexOfAny<T>(ReadOnlySpan<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. |
LastIndexOfAny<T>(Span<T>, ReadOnlySpan<T>) |
Searches for the last index of any of the specified values similar to calling LastIndexOf several times with the logical OR operator. |
LastIndexOfAny<T>(Span<T>, SearchValues<T>) |
Searches for the last index of any of the specified values. |
LastIndexOfAny<T>(Span<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. |
LastIndexOfAny<T>(Span<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. |
LastIndexOfAnyExcept<T>(ReadOnlySpan<T>, ReadOnlySpan<T>) |
Searches for the last index of any value other than the specified |
LastIndexOfAnyExcept<T>(ReadOnlySpan<T>, SearchValues<T>) |
Searches for the last index of any value other than the specified |
LastIndexOfAnyExcept<T>(ReadOnlySpan<T>, T, T, T) |
Searches for the last index of any value other than the specified |
LastIndexOfAnyExcept<T>(ReadOnlySpan<T>, T, T) |
Searches for the last index of any value other than the specified |
LastIndexOfAnyExcept<T>(ReadOnlySpan<T>, T) |
Searches for the last index of any value other than the specified |
LastIndexOfAnyExcept<T>(Span<T>, ReadOnlySpan<T>) |
Searches for the last index of any value other than the specified |
LastIndexOfAnyExcept<T>(Span<T>, SearchValues<T>) |
Searches for the last index of any value other than the specified |
LastIndexOfAnyExcept<T>(Span<T>, T, T, T) |
Searches for the last index of any value other than the specified |
LastIndexOfAnyExcept<T>(Span<T>, T, T) |
Searches for the last index of any value other than the specified |
LastIndexOfAnyExcept<T>(Span<T>, T) |
Searches for the last index of any value other than the specified |
LastIndexOfAnyExceptInRange<T>(ReadOnlySpan<T>, T, T) |
Searches for the last index of any value outside of the range between |
LastIndexOfAnyExceptInRange<T>(Span<T>, T, T) |
Searches for the last index of any value outside of the range between |
LastIndexOfAnyInRange<T>(ReadOnlySpan<T>, T, T) |
Searches for the last index of any value in the range between |
LastIndexOfAnyInRange<T>(Span<T>, T, T) |
Searches for the last index of any value in the range between |
Overlaps<T>(ReadOnlySpan<T>, ReadOnlySpan<T>, Int32) |
Determines whether two read-only sequences overlap in memory and outputs the element offset. |
Overlaps<T>(ReadOnlySpan<T>, ReadOnlySpan<T>) |
Determines whether two read-only sequences overlap in memory. |
Overlaps<T>(Span<T>, ReadOnlySpan<T>, Int32) |
Determines whether a span and a read-only span overlap in memory and outputs the element offset. |
Overlaps<T>(Span<T>, ReadOnlySpan<T>) |
Determines whether a span and a read-only span overlap in memory. |
Replace<T>(ReadOnlySpan<T>, Span<T>, T, T) |
Copies |
Replace<T>(Span<T>, T, T) |
Replaces all occurrences of |
Reverse<T>(Span<T>) |
Reverses the sequence of the elements in the entire span. |
SequenceCompareTo<T>(ReadOnlySpan<T>, ReadOnlySpan<T>) |
Determines the relative order of two read-only sequences by comparing their elements using IComparable{T}.CompareTo(T). |
SequenceCompareTo<T>(Span<T>, ReadOnlySpan<T>) |
Determines the relative order of a span and a read-only span by comparing the elements using IComparable{T}.CompareTo(T). |
SequenceEqual<T>(ReadOnlySpan<T>, ReadOnlySpan<T>, IEqualityComparer<T>) |
Determines whether two sequences are equal by comparing the elements using an IEqualityComparer<T>. |
SequenceEqual<T>(ReadOnlySpan<T>, ReadOnlySpan<T>) |
Determines whether two read-only sequences are equal by comparing the elements using IEquatable{T}.Equals(T). |
SequenceEqual<T>(Span<T>, ReadOnlySpan<T>, IEqualityComparer<T>) |
Determines whether two sequences are equal by comparing the elements using an IEqualityComparer<T>. |
SequenceEqual<T>(Span<T>, ReadOnlySpan<T>) |
Determines whether a span and a read-only span are equal by comparing the elements using IEquatable{T}.Equals(T). |
Sort<T,TComparer>(Span<T>, TComparer) |
Sorts the elements in the entire Span<T> using the |
Sort<T>(Span<T>, Comparison<T>) |
Sorts the elements in the entire Span<T> using the specified Comparison<T>. |
Sort<T>(Span<T>) |
Sorts the elements in the entire Span<T> using the IComparable<T> implementation of each element of the Span<T>. |
Sort<TKey,TValue,TComparer>(Span<TKey>, Span<TValue>, TComparer) |
Sorts a pair of spans (one containing the keys and the other containing the corresponding items) based on the keys in the first Span<T> using the specified comparer. |
Sort<TKey,TValue>(Span<TKey>, Span<TValue>, Comparison<TKey>) |
Sorts a pair of spans (one containing the keys and the other containing the corresponding items) based on the keys in the first Span<T> using the specified comparison. |
Sort<TKey,TValue>(Span<TKey>, Span<TValue>) |
Sorts a pair of spans (one containing the keys and the other containing the corresponding items) based on the keys in the first Span<T> using the IComparable<T> implementation of each key. |
Split(ReadOnlySpan<Char>, Span<Range>, Char, StringSplitOptions) |
Parses the source ReadOnlySpan<T> for the specified |
Split(ReadOnlySpan<Char>, Span<Range>, ReadOnlySpan<Char>, StringSplitOptions) |
Parses the source ReadOnlySpan<T> for the specified |
Split<T>(ReadOnlySpan<T>, ReadOnlySpan<T>) |
Returns a type that allows for enumeration of each element within a split span using the provided separator span. |
Split<T>(ReadOnlySpan<T>, T) |
Returns a type that allows for enumeration of each element within a split span using the provided separator character. |
SplitAny(ReadOnlySpan<Char>, Span<Range>, ReadOnlySpan<Char>, StringSplitOptions) |
Parses the source ReadOnlySpan<T> for one of the specified |
SplitAny(ReadOnlySpan<Char>, Span<Range>, ReadOnlySpan<String>, StringSplitOptions) |
Parses the source ReadOnlySpan<T> for one of the specified |
SplitAny<T>(ReadOnlySpan<T>, ReadOnlySpan<T>) |
Returns a type that allows for enumeration of each element within a split span using any of the provided elements. |
SplitAny<T>(ReadOnlySpan<T>, SearchValues<T>) |
Returns a type that allows for enumeration of each element within a split span using the provided separator characters. |
StartsWith(ReadOnlySpan<Char>, ReadOnlySpan<Char>, StringComparison) |
Determines whether a read-only character span begins with a specified value when compared using a specified StringComparison value. |
StartsWith<T>(ReadOnlySpan<T>, ReadOnlySpan<T>) |
Determines whether a specified sequence appears at the start of a read-only span. |
StartsWith<T>(ReadOnlySpan<T>, T) |
Determines whether the specified value appears at the start of the span. |
StartsWith<T>(Span<T>, ReadOnlySpan<T>) |
Determines whether a specified sequence appears at the start of a span. |
ToLower(ReadOnlySpan<Char>, Span<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(ReadOnlySpan<Char>, Span<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(ReadOnlySpan<Char>, Span<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(ReadOnlySpan<Char>, Span<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(Memory<Char>) |
Removes all leading and trailing whitespace characters from a character memory region. |
Trim(ReadOnlyMemory<Char>) |
Removes all leading and trailing whitespace characters from a read-only character memory region. |
Trim(ReadOnlySpan<Char>, Char) |
Removes all leading and trailing occurrences of a specified character from a read-only character span. |
Trim(ReadOnlySpan<Char>, ReadOnlySpan<Char>) |
Removes all leading and trailing occurrences of a set of characters specified in a read-only span from a read-only character span. |
Trim(ReadOnlySpan<Char>) |
Removes all leading and trailing whitespace characters from a read-only character span. |
Trim(Span<Char>) |
Removes all leading and trailing whitespace characters from a character span. |
Trim<T>(Memory<T>, ReadOnlySpan<T>) |
Removes all leading and trailing occurrences of a set of elements specified in a read-only span from a memory region. |
Trim<T>(Memory<T>, T) |
Removes all leading and trailing occurrences of a specified element from a memory region. |
Trim<T>(ReadOnlyMemory<T>, ReadOnlySpan<T>) |
Removes all leading and trailing occurrences of a set of elements specified in a read-only span from a read-only memory region. |
Trim<T>(ReadOnlyMemory<T>, T) |
Removes all leading and trailing occurrences of a specified element from a read-only memory region. |
Trim<T>(ReadOnlySpan<T>, ReadOnlySpan<T>) |
Removes all leading and trailing occurrences of a set of elements specified in a read-only span from a read-only span. |
Trim<T>(ReadOnlySpan<T>, T) |
Removes all leading and trailing occurrences of a specified element from a read-only span. |
Trim<T>(Span<T>, ReadOnlySpan<T>) |
Removes all leading and trailing occurrences of a set of elements specified in a read-only span from a span. |
Trim<T>(Span<T>, T) |
Removes all leading and trailing occurrences of a specified element from a span. |
TrimEnd(Memory<Char>) |
Removes all trailing whitespace characters from a character memory region. |
TrimEnd(ReadOnlyMemory<Char>) |
Removes all trailing whitespace characters from a read-only character memory region. |
TrimEnd(ReadOnlySpan<Char>, Char) |
Removes all trailing occurrences of a specified character from a read-only span. |
TrimEnd(ReadOnlySpan<Char>, ReadOnlySpan<Char>) |
Removes all trailing occurrences of a set of characters specified in a read-only span from a read-only character span. |
TrimEnd(ReadOnlySpan<Char>) |
Removes all trailing whitespace characters from a read-only character span. |
TrimEnd(Span<Char>) |
Removes all trailing whitespace characters from a character span. |
TrimEnd<T>(Memory<T>, ReadOnlySpan<T>) |
Removes all trailing occurrences of a set of elements specified in a read-only span from a memory region. |
TrimEnd<T>(Memory<T>, T) |
Removes all trailing occurrences of a specified element from a character memory region. |
TrimEnd<T>(ReadOnlyMemory<T>, ReadOnlySpan<T>) |
Removes all trailing occurrences of a set of elements specified in a read-only span from a read-only memory region. |
TrimEnd<T>(ReadOnlyMemory<T>, T) |
Removes all trailing occurrences of a specified element from a read-only memory region. |
TrimEnd<T>(ReadOnlySpan<T>, ReadOnlySpan<T>) |
Removes all trailing occurrences of a set of elements specified in a read-only span from a read-only span. |
TrimEnd<T>(ReadOnlySpan<T>, T) |
Removes all trailing occurrences of a specified element from a read-only span. |
TrimEnd<T>(Span<T>, ReadOnlySpan<T>) |
Removes all trailing occurrences of a set of elements specified in a read-only span from a span. |
TrimEnd<T>(Span<T>, T) |
Removes all trailing occurrences of a specified element from a span. |
TrimStart(Memory<Char>) |
Removes all leading whitespace characters from a memory region. |
TrimStart(ReadOnlyMemory<Char>) |
Removes all leading whitespace characters from a read-only memory region. |
TrimStart(ReadOnlySpan<Char>, Char) |
Removes all leading occurrences of a specified character from the span. |
TrimStart(ReadOnlySpan<Char>, ReadOnlySpan<Char>) |
Removes all leading occurrences of a set of characters specified in a read-only span from the span. |
TrimStart(ReadOnlySpan<Char>) |
Removes all leading whitespace characters from a read-only span. |
TrimStart(Span<Char>) |
Removes all leading whitespace characters from a span. |
TrimStart<T>(Memory<T>, ReadOnlySpan<T>) |
Removes all leading occurrences of a set of elements specified in a read-only span from a memory region. |
TrimStart<T>(Memory<T>, T) |
Removes all leading occurrences of a specified element from a memory region. |
TrimStart<T>(ReadOnlyMemory<T>, ReadOnlySpan<T>) |
Removes all leading occurrences of a set of elements specified in a read-only span from a memory region. |
TrimStart<T>(ReadOnlyMemory<T>, T) |
Removes all leading occurrences of a specified element from a memory region. |
TrimStart<T>(ReadOnlySpan<T>, ReadOnlySpan<T>) |
Removes all leading occurrences of a set of elements specified in a read-only span from the span. |
TrimStart<T>(ReadOnlySpan<T>, T) |
Removes all leading occurrences of a specified element from the span. |
TrimStart<T>(Span<T>, ReadOnlySpan<T>) |
Removes all leading occurrences of a set of elements specified in a read-only span from the span. |
TrimStart<T>(Span<T>, T) |
Removes all leading occurrences of a specified element from the span. |
TryWrite(Span<Char>, IFormatProvider, CompositeFormat, Int32, Object[]) |
Writes the CompositeFormat string to the character span, substituting the format item or items with the string representation of the corresponding arguments. |
TryWrite(Span<Char>, IFormatProvider, CompositeFormat, Int32, 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(Span<Char>, IFormatProvider, MemoryExtensions+TryWriteInterpolatedStringHandler, Int32) |
Writes the specified interpolated string to the character span. |
TryWrite(Span<Char>, MemoryExtensions+TryWriteInterpolatedStringHandler, Int32) |
Writes the specified interpolated string to the character span. |
TryWrite<TArg0,TArg1,TArg2>(Span<Char>, IFormatProvider, CompositeFormat, Int32, 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. |
TryWrite<TArg0,TArg1>(Span<Char>, IFormatProvider, CompositeFormat, Int32, 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>(Span<Char>, IFormatProvider, CompositeFormat, Int32, TArg0) |
Writes the CompositeFormat string to the character span, substituting the format item or items with the string representation of the corresponding arguments. |