|
CodePorting.Translator Cs2Cpp
CodePorting.Translator.Cs2Cpp.Framework
|
Provides extension methods for memory operations on spans and arrays. More...
Namespaces | |
| namespace | Details |
Functions | |
| ReadOnlySpan< char16_t > | AsSpan (const String &text, int32_t start=0, int32_t length=-1) |
| Creates a read-only span from a string. More... | |
| template<typename T > | |
| Span< T > | AsSpan (const ArrayPtr< T > &array, int32_t start=0, int32_t length=-1) |
| Creates a span from an array. More... | |
| template<typename T , typename TComparable > | |
| int32_t | BinarySearch (const ReadOnlySpan< T > &span, const TComparable &comparable) |
| Performs binary search on a sorted span. More... | |
| template<typename T , typename TComparer > | |
| int32_t | BinarySearch (const ReadOnlySpan< T > &span, const T &value, const SharedPtr< TComparer > &comparerPtr) |
| Performs binary search on a sorted span using a custom comparer. More... | |
| template<typename T , typename TComparable > | |
| int32_t | BinarySearch (const Span< T > &span, const TComparable &comparable) |
| Performs binary search on a mutable sorted span. More... | |
| template<typename T , typename TComparer > | |
| int32_t | BinarySearch (const Span< T > &span, const T &value, const SharedPtr< TComparer > &comparer) |
| Performs binary search on a mutable sorted span using a custom comparer. More... | |
| template<typename T > | |
| int32_t | CommonPrefixLength (const ReadOnlySpan< T > &span, const ReadOnlySpan< T > &other) |
| Finds the length of the common prefix between two spans. More... | |
| template<typename T > | |
| int32_t | CommonPrefixLength (const Span< T > &span, const ReadOnlySpan< T > &other) |
| Finds the length of the common prefix between a mutable span and a read-only span. More... | |
| template<typename T > | |
| int32_t | CommonPrefixLength (const Span< T > &span, const Span< T > &other) |
| Finds the length of the common prefix between two mutable spans. More... | |
| template<typename T , typename TEqualityComparer > | |
| int32_t | CommonPrefixLength (const ReadOnlySpan< T > &span, const ReadOnlySpan< T > &other, const SharedPtr< TEqualityComparer > &comparer) |
| Finds the length of the common prefix between two spans using a custom equality comparer. More... | |
| template<typename T , typename TEqualityComparer > | |
| int32_t | CommonPrefixLength (const Span< T > &span, const ReadOnlySpan< T > &other, const SharedPtr< TEqualityComparer > &comparer) |
| Finds the length of the common prefix between a mutable span and a read-only span using a custom equality comparer. More... | |
| template<typename T , typename TEqualityComparer > | |
| int32_t | CommonPrefixLength (const Span< T > &span, const Span< T > &other, const SharedPtr< TEqualityComparer > &comparer) |
| Finds the length of the common prefix between two mutable spans using a custom equality comparer. More... | |
| int32_t | CompareTo (const ReadOnlySpan< char16_t > &span, const ReadOnlySpan< char16_t > &other, StringComparison comparisonType) |
| Compares two character spans with specified string comparison rules. More... | |
| bool | Contains (const ReadOnlySpan< char16_t > &span, const ReadOnlySpan< char16_t > &value, StringComparison comparisonType) |
| Checks if a character span contains another character span with specified comparison rules. More... | |
| template<typename T > | |
| bool | Contains (const ReadOnlySpan< T > &span, const T &value) |
| Checks if a read-only span contains a specific value. More... | |
| template<typename T > | |
| bool | Contains (const Span< T > &span, const T &value) |
| Checks if a mutable span contains a specific value. More... | |
| template<typename T > | |
| bool | ContainsAny (const ReadOnlySpan< T > &span, const T &value0, const T &value1) |
| Checks if a read-only span contains any of two values. More... | |
| template<typename T > | |
| bool | ContainsAny (const ReadOnlySpan< T > &span, const T &value0, const T &value1, const T &value2) |
| Checks if a read-only span contains any of three values. More... | |
| template<typename T > | |
| bool | ContainsAny (const Span< T > &span, const T &value0, const T &value1) |
| Checks if a mutable span contains any of two values. More... | |
| template<typename T > | |
| bool | ContainsAny (const Span< T > &span, const T &value0, const T &value1, const T &value2) |
| Checks if a mutable span contains any of three values. More... | |
| template<typename T > | |
| bool | ContainsAny (const ReadOnlySpan< T > &span, const ReadOnlySpan< T > &values) |
| Checks if a read-only span contains any value from another span. More... | |
| template<typename T > | |
| bool | ContainsAny (const Span< T > &span, const ReadOnlySpan< T > &values) |
| Checks if a mutable span contains any value from a read-only span. More... | |
| template<typename T > | |
| bool | ContainsAnyExcept (const ReadOnlySpan< T > &span, const T &value0, const T &value1, const T &value2) |
| Checks if a read-only span contains any element except three specified values. More... | |
| template<typename T > | |
| bool | ContainsAnyExcept (const Span< T > &span, const T &value0, const T &value1, const T &value2) |
| Checks if a mutable span contains any element except three specified values. More... | |
| template<typename T > | |
| bool | ContainsAnyExcept (const ReadOnlySpan< T > &span, const T &value0, const T &value1) |
| Checks if a read-only span contains any element except two specified values. More... | |
| template<typename T > | |
| bool | ContainsAnyExcept (const Span< T > &span, const T &value0, const T &value1) |
| Checks if a mutable span contains any element except two specified values. More... | |
| template<typename T > | |
| bool | ContainsAnyExcept (const ReadOnlySpan< T > &span, const T &value) |
| Checks if a read-only span contains any element except a specified value. More... | |
| template<typename T > | |
| bool | ContainsAnyExcept (const Span< T > &span, const T &value) |
| Checks if a mutable span contains any element except a specified value. More... | |
| template<typename T > | |
| bool | ContainsAnyExcept (const ReadOnlySpan< T > &span, const ReadOnlySpan< T > &values) |
| Checks if a read-only span contains any element except those in another span. More... | |
| template<typename T > | |
| bool | ContainsAnyExcept (const Span< T > &span, const ReadOnlySpan< T > &values) |
| Checks if a mutable span contains any element except those in a read-only span. More... | |
| template<typename T > | |
| bool | ContainsAnyExceptInRange (const ReadOnlySpan< T > &span, const T &lowInclusive, const T &highInclusive) |
| Checks if a read-only span contains any element outside the specified range. More... | |
| template<typename T > | |
| bool | ContainsAnyExceptInRange (const Span< T > &span, const T &lowInclusive, const T &highInclusive) |
| Checks if a mutable span contains any element outside the specified range. More... | |
| template<typename T > | |
| bool | ContainsAnyInRange (const ReadOnlySpan< T > &span, const T &lowInclusive, const T &highInclusive) |
| Checks if a read-only span contains any element within the specified range. More... | |
| template<typename T > | |
| bool | ContainsAnyInRange (const Span< T > &span, const T &lowInclusive, const T &highInclusive) |
| Checks if a mutable span contains any element within the specified range. More... | |
| template<typename T > | |
| void | CopyTo (const ArrayPtr< T > &source, Span< T > &destination) |
| Copies elements from an array to a span. More... | |
| template<typename T > | |
| int32_t | Count (const ReadOnlySpan< T > &span, const T &value) |
| Counts occurrences of a value in a read-only span. More... | |
| template<typename T > | |
| int32_t | Count (const ReadOnlySpan< T > &span, const ReadOnlySpan< T > &value) |
| Counts occurrences of a span within another read-only span. More... | |
| template<typename T > | |
| int32_t | Count (const Span< T > &span, const T &value) |
| Counts occurrences of a single value in a Span<T> More... | |
| template<typename T > | |
| int32_t | Count (const Span< T > &span, const ReadOnlySpan< T > &value) |
| Counts occurrences of a ReadOnlySpan<T> in a Span<T> More... | |
| bool | EndsWith (const ReadOnlySpan< char16_t > &span, const ReadOnlySpan< char16_t > &value, StringComparison comparisonType) |
| Determines if a ReadOnlySpan<char16_t> ends with the specified value using StringComparison. More... | |
| template<typename T > | |
| bool | EndsWith (const ReadOnlySpan< T > &span, const T &value) |
| Determines if a ReadOnlySpan<T> ends with a single value. More... | |
| template<typename T > | |
| bool | EndsWith (const ReadOnlySpan< T > &span, const ReadOnlySpan< T > &value) |
| Determines if a ReadOnlySpan<T> ends with another ReadOnlySpan<T> More... | |
| template<typename T > | |
| bool | EndsWith (const Span< T > &span, const ReadOnlySpan< T > &value) |
| Determines if a Span<T> ends with a ReadOnlySpan<T> More... | |
| template<typename T > | |
| bool | EndsWith (const ReadOnlySpan< T > &span, const Span< T > &value) |
| Determines if a ReadOnlySpan<T> ends with a Span<T> More... | |
| template<typename T > | |
| bool | EndsWith (const Span< T > &span, const Span< T > &value) |
| Determines if a Span<T> ends with another Span<T> More... | |
| bool | Equals (const ReadOnlySpan< char16_t > &span, const ReadOnlySpan< char16_t > &other, StringComparison comparisonType) |
| Compares two ReadOnlySpan<char16_t> for equality using StringComparison. More... | |
| int32_t | IndexOf (const ReadOnlySpan< char16_t > &span, const ReadOnlySpan< char16_t > &value, StringComparison comparisonType) |
| Finds the index of a ReadOnlySpan<char16_t> value in a ReadOnlySpan<char16_t> with StringComparison. More... | |
| template<typename T > | |
| int32_t | IndexOf (const ReadOnlySpan< T > &span, const ReadOnlySpan< T > &value) |
| Finds the index of a ReadOnlySpan<T> value in another ReadOnlySpan<T> More... | |
| template<typename T > | |
| int32_t | IndexOf (const ReadOnlySpan< T > &span, const T &value) |
| Finds the index of a single value in a ReadOnlySpan<T> More... | |
| template<typename T > | |
| int32_t | IndexOf (const Span< T > &span, const ReadOnlySpan< T > &value) |
| Finds the index of a ReadOnlySpan<T> value in a Span<T> More... | |
| template<typename T > | |
| int32_t | IndexOf (const Span< T > &span, const T &value) |
| Finds the index of a single value in a Span<T> More... | |
| template<typename T > | |
| int32_t | IndexOfAny (const ReadOnlySpan< T > &span, const T &value0, const T &value1) |
| Finds the index of the first occurrence of any of two specified values in a ReadOnlySpan<T> More... | |
| template<typename T > | |
| int32_t | IndexOfAny (const ReadOnlySpan< T > &span, const T &value0, const T &value1, const T &value2) |
| Finds the index of the first occurrence of any of three specified values in a ReadOnlySpan<T> More... | |
| template<typename T > | |
| int32_t | IndexOfAny (const Span< T > &span, const T &value0, const T &value1) |
| Finds the index of the first occurrence of any of two specified values in a Span<T> More... | |
| template<typename T > | |
| int32_t | IndexOfAny (const Span< T > &span, const T &value0, const T &value1, const T &value2) |
| Finds the index of the first occurrence of any of three specified values in a Span<T> More... | |
| template<typename T > | |
| int32_t | IndexOfAny (const ReadOnlySpan< T > &span, const ReadOnlySpan< T > &values) |
| Finds the index of the first occurrence of any value from a span in another ReadOnlySpan<T> More... | |
| template<typename T > | |
| int32_t | IndexOfAny (const Span< T > &span, const ReadOnlySpan< T > &values) |
| Finds the index of the first occurrence of any value from a span in a Span<T> More... | |
| template<typename T > | |
| int32_t | IndexOfAnyExcept (const ReadOnlySpan< T > &span, const T &value) |
| Finds the index of the first element that is not equal to the specified value in a ReadOnlySpan<T> More... | |
| template<typename T > | |
| int32_t | IndexOfAnyExcept (const ReadOnlySpan< T > &span, const T &value0, const T &value1) |
| Finds the index of the first element that is not equal to either of two specified values in a ReadOnlySpan<T> More... | |
| template<typename T > | |
| int32_t | IndexOfAnyExcept (const ReadOnlySpan< T > &span, const T &value0, const T &value1, const T &value2) |
| Finds the index of the first element that is not equal to any of three specified values in a ReadOnlySpan<T> More... | |
| template<typename T > | |
| int32_t | IndexOfAnyExcept (const Span< T > &span, const T &value) |
| Finds the index of the first element that is not equal to the specified value in a Span<T> More... | |
| template<typename T > | |
| int32_t | IndexOfAnyExcept (const Span< T > &span, const T &value0, const T &value1) |
| Finds the index of the first element that is not equal to either of two specified values in a Span<T> More... | |
| template<typename T > | |
| int32_t | IndexOfAnyExcept (const Span< T > &span, const T &value0, const T &value1, const T &value2) |
| Finds the index of the first element that is not equal to any of three specified values in a Span<T> More... | |
| template<typename T > | |
| int32_t | IndexOfAnyExcept (const ReadOnlySpan< T > &span, const ReadOnlySpan< T > &values) |
| Finds the index of the first element that is not equal to any value in a span of values. More... | |
| template<typename T > | |
| int32_t | IndexOfAnyExcept (const Span< T > &span, const ReadOnlySpan< T > &values) |
| Finds the index of the first element that is not equal to any value in a span of values in a Span<T> More... | |
| template<typename T > | |
| int32_t | IndexOfAnyExceptInRange (const ReadOnlySpan< T > &span, const T &lowInclusive, const T &highInclusive) |
| Finds the index of the first element that is outside the specified range in a ReadOnlySpan<T> More... | |
| template<typename T > | |
| int32_t | IndexOfAnyExceptInRange (const Span< T > &span, const T &lowInclusive, const T &highInclusive) |
| Finds the index of the first element that is outside the specified range in a Span<T> More... | |
| template<typename T > | |
| int32_t | IndexOfAnyInRange (const ReadOnlySpan< T > &span, const T &lowInclusive, const T &highInclusive) |
| Finds the index of the first element that is within the specified range in a ReadOnlySpan<T> More... | |
| template<typename T > | |
| int32_t | IndexOfAnyInRange (const Span< T > &span, const T &lowInclusive, const T &highInclusive) |
| Finds the index of the first element that is within the specified range in a Span<T> More... | |
| bool | IsWhiteSpace (const ReadOnlySpan< char16_t > &span) |
| Checks if the entire span consists only of whitespace characters. More... | |
| int32_t | LastIndexOf (const ReadOnlySpan< char16_t > &span, const ReadOnlySpan< char16_t > &value, StringComparison comparisonType) |
| Finds the last occurrence of a value within a span using specified string comparison. More... | |
| template<typename T > | |
| int32_t | LastIndexOf (const ReadOnlySpan< T > &span, const ReadOnlySpan< T > &value) |
| Finds the last occurrence of a sequence within a span. More... | |
| template<typename T > | |
| int32_t | LastIndexOf (const ReadOnlySpan< T > &span, const T &value) |
| Finds the last occurrence of a single value within a span. More... | |
| template<typename T > | |
| int32_t | LastIndexOf (const Span< T > &span, const ReadOnlySpan< T > &value) |
| Finds the last occurrence of a sequence within a mutable span. More... | |
| template<typename T > | |
| int32_t | LastIndexOf (const Span< T > &span, const T &value) |
| Finds the last occurrence of a single value within a mutable span. More... | |
| template<typename T > | |
| int32_t | LastIndexOfAny (const ReadOnlySpan< T > &span, const T &value0, const T &value1, const T &value2) |
| Finds the last occurrence of any of three specified values within a span. More... | |
| template<typename T > | |
| int32_t | LastIndexOfAny (const Span< T > &span, const T &value0, const T &value1, const T &value2) |
| Finds the last occurrence of any of three specified values within a mutable span. More... | |
| template<typename T > | |
| int32_t | LastIndexOfAny (const ReadOnlySpan< T > &span, const T &value0, const T &value1) |
| Finds the last occurrence of any of two specified values within a span. More... | |
| template<typename T > | |
| int32_t | LastIndexOfAny (const Span< T > &span, const T &value0, const T &value1) |
| Finds the last occurrence of any of two specified values within a mutable span. More... | |
| template<typename T > | |
| int32_t | LastIndexOfAny (const ReadOnlySpan< T > &span, const ReadOnlySpan< T > &values) |
| Finds the last occurrence of any value from a sequence within a span. More... | |
| template<typename T > | |
| int32_t | LastIndexOfAny (const Span< T > &span, const ReadOnlySpan< T > &values) |
| Finds the last occurrence of any value from a sequence within a mutable span. More... | |
| template<typename T > | |
| int32_t | LastIndexOfAny (const Span< T > &span, const Span< T > &values) |
| Finds the last occurrence of any value from a mutable sequence within a mutable span. More... | |
| template<typename T > | |
| int32_t | LastIndexOfAnyExcept (const ReadOnlySpan< T > &span, const T &value0, const T &value1, const T &value2) |
| Finds the last occurrence of any element except three specified values within a span. More... | |
| template<typename T > | |
| int32_t | LastIndexOfAnyExcept (const Span< T > &span, const T &value0, const T &value1, const T &value2) |
| Finds the last occurrence of any element except three specified values within a mutable span. More... | |
| template<typename T > | |
| int32_t | LastIndexOfAnyExcept (const ReadOnlySpan< T > &span, const T &value0, const T &value1) |
| Finds the last occurrence of any element except two specified values within a span. More... | |
| template<typename T > | |
| int32_t | LastIndexOfAnyExcept (const Span< T > &span, const T &value0, const T &value1) |
| Finds the last occurrence of any element except two specified values within a mutable span. More... | |
| template<typename T > | |
| int32_t | LastIndexOfAnyExcept (const ReadOnlySpan< T > &span, const T &value) |
| Finds the last occurrence of any element except a specified value within a span. More... | |
| template<typename T > | |
| int32_t | LastIndexOfAnyExcept (const Span< T > &span, const T &value) |
| Finds the last occurrence of any element except a specified value within a mutable span. More... | |
| template<typename T > | |
| int32_t | LastIndexOfAnyExcept (const ReadOnlySpan< T > &span, const ReadOnlySpan< T > &values) |
| Finds the last occurrence of any element except values from a sequence within a span. More... | |
| template<typename T > | |
| int32_t | LastIndexOfAnyExcept (const Span< T > &span, const ReadOnlySpan< T > &values) |
| Finds the last occurrence of any element except values from a sequence within a mutable span. More... | |
| template<typename T > | |
| int32_t | LastIndexOfAnyExcept (const Span< T > &span, const Span< T > &values) |
| Finds the last occurrence of any element except values from a mutable sequence within a mutable span. More... | |
| template<typename T > | |
| int32_t | LastIndexOfAnyExceptInRange (const ReadOnlySpan< T > &span, const T &lowInclusive, const T &highInclusive) |
| Finds the last occurrence of any element outside the specified range within a span. More... | |
| template<typename T > | |
| int32_t | LastIndexOfAnyExceptInRange (const Span< T > &span, const T &lowInclusive, const T &highInclusive) |
| Finds the last occurrence of any element outside the specified range within a mutable span. More... | |
| template<typename T > | |
| int32_t | LastIndexOfAnyInRange (const ReadOnlySpan< T > &span, const T &lowInclusive, const T &highInclusive) |
| Finds the last occurrence of any element within the specified range within a span. More... | |
| template<typename T > | |
| int32_t | LastIndexOfAnyInRange (const Span< T > &span, const T &lowInclusive, const T &highInclusive) |
| Finds the last occurrence of any element within the specified range within a mutable span. More... | |
| template<typename T > | |
| bool | Overlaps (const ReadOnlySpan< T > &span, const ReadOnlySpan< T > &other) |
| Determines if two ReadOnlySpans overlap in memory without calculating offset. More... | |
| template<typename T > | |
| bool | Overlaps (const Span< T > &span, const ReadOnlySpan< T > &other) |
| Determines if a Span and ReadOnlySpan overlap in memory without calculating offset. More... | |
| template<typename T > | |
| bool | Overlaps (const ReadOnlySpan< T > &span, const ReadOnlySpan< T > &other, int32_t &elementOffset) |
| Determines if two ReadOnlySpans overlap in memory and calculates the offset. More... | |
| template<typename T > | |
| bool | Overlaps (const Span< T > &span, const ReadOnlySpan< T > &other, int32_t &elementOffset) |
| Determines if a Span and ReadOnlySpan overlap in memory and calculates the offset. More... | |
| template<typename T > | |
| void | Replace (Span< T > &span, const T &oldValue, const T &newValue) |
| Replaces all occurrences of a value with a new value in a Span. More... | |
| template<typename T > | |
| void | Replace (const ReadOnlySpan< T > &source, Span< T > &destination, const T &oldValue, const T &newValue) |
| Copies elements from source to destination, replacing specified values during copy. More... | |
| template<typename T > | |
| void | Reverse (Span< T > &span) |
| Reverses the order of elements in a Span in-place. More... | |
| template<typename T > | |
| int32_t | SequenceCompareTo (const ReadOnlySpan< T > &span, const ReadOnlySpan< T > &other) |
| Compares two ReadOnlySpans lexicographically. More... | |
| template<typename T > | |
| int32_t | SequenceCompareTo (const Span< T > &span, const ReadOnlySpan< T > &other) |
| Compares a Span and ReadOnlySpan lexicographically. More... | |
| template<typename T > | |
| int32_t | SequenceCompareTo (const ReadOnlySpan< T > &span, const Span< T > &other) |
| Compares a ReadOnlySpan and Span lexicographically. More... | |
| template<typename T > | |
| bool | SequenceEqual (const ReadOnlySpan< T > &first, const ReadOnlySpan< T > &second) |
| Determines if two ReadOnlySpans contain identical elements in the same order. More... | |
| template<typename T > | |
| bool | SequenceEqual (const Span< T > &span, const ReadOnlySpan< T > &other) |
| Determines if a Span and ReadOnlySpan contain identical elements in the same order. More... | |
| template<typename T , typename TComparer > | |
| bool | SequenceEqual (const ReadOnlySpan< T > &span, const ReadOnlySpan< T > &other, SharedPtr< TComparer > &comparer) |
| Determines if two ReadOnlySpans contain equal elements using a custom comparer. More... | |
| template<typename T , typename TComparer > | |
| bool | SequenceEqual (const Span< T > &span, const ReadOnlySpan< T > &other, SharedPtr< TComparer > &comparer) |
| Determines if a Span and ReadOnlySpan contain equal elements using a custom comparer. More... | |
| template<typename T , typename TComparer > | |
| void | Sort (const Span< T > &span, const SharedPtr< TComparer > &comparer) |
| Sorts a Span using a custom comparer. More... | |
| template<typename T > | |
| void | Sort (Span< T > &span) |
| Sorts a Span using default comparison. More... | |
| template<typename TKey , typename TValue , typename TComparer > | |
| void | Sort (Span< TKey > &keys, Span< TValue > &values, const SharedPtr< TComparer > &comparer) |
| Sorts key-value pairs using a custom comparer (keys and values sorted together) More... | |
| template<typename TKey , typename TValue > | |
| void | Sort (Span< TKey > &keys, Span< TValue > &values, System::Comparison< TKey > comparer) |
| Sorts key-value pairs using a comparison delegate. More... | |
| template<typename TKey , typename TValue > | |
| void | Sort (Span< TKey > &keys, Span< TValue > &values) |
| Sorts key-value pairs using default comparison. More... | |
| template<typename T > | |
| bool | StartsWith (const ReadOnlySpan< T > &span, const T &value) |
| Checks if the span starts with the specified value. More... | |
| bool | StartsWith (const ReadOnlySpan< String > &span, const char16_t *val) |
| Checks if a string span starts with the specified character array. More... | |
| template<typename T > | |
| bool | StartsWith (const ReadOnlySpan< T > &span, const ReadOnlySpan< T > &value) |
| Checks if the span starts with the specified value span. More... | |
| template<typename T > | |
| bool | StartsWith (const Span< T > &span, const ReadOnlySpan< T > &value) |
| Checks if the mutable span starts with the specified read-only value span. More... | |
| template<typename T > | |
| bool | StartsWith (const ReadOnlySpan< T > &span, const Span< T > &value) |
| Checks if the read-only span starts with the specified mutable value span. More... | |
| bool | StartsWith (const ReadOnlySpan< char16_t > &span, const ReadOnlySpan< char16_t > &value, StringComparison comparisonType) |
| Checks if the character span starts with the specified value span using string comparison. More... | |
| int32_t | ToLower (const ReadOnlySpan< char16_t > &source, Span< char16_t > &destination, const SharedPtr< Globalization::CultureInfo > &culture) |
| Converts characters to lowercase using specified culture. More... | |
| int32_t | ToLowerInvariant (const ReadOnlySpan< char16_t > &source, Span< char16_t > &destination) |
| Converts characters to lowercase using invariant culture. More... | |
| int32_t | ToUpper (const ReadOnlySpan< char16_t > &source, Span< char16_t > &destination, const SharedPtr< Globalization::CultureInfo > &culture) |
| Converts characters to uppercase using specified culture. More... | |
| int32_t | ToUpperInvariant (const ReadOnlySpan< char16_t > &source, Span< char16_t > &destination) |
| Converts characters to uppercase using invariant culture. More... | |
| template<typename T > | |
| ReadOnlySpan< T > | Trim (const ReadOnlySpan< T > &span, T trimElement) |
| Trims specified element from both ends of a typed span. More... | |
| template<typename T > | |
| Span< T > | Trim (Span< T > &span, T trimElement) |
| Trims specified element from both ends of a mutable typed span. More... | |
| template<typename T > | |
| ReadOnlySpan< T > | Trim (const ReadOnlySpan< T > &span, const ReadOnlySpan< T > &trimElements) |
| Trims specified elements from both ends of a typed span. More... | |
| template<typename T > | |
| Span< T > | Trim (Span< T > &span, const ReadOnlySpan< T > &trimElements) |
| Trims specified elements from both ends of a mutable typed span. More... | |
| ReadOnlySpan< char16_t > | Trim (const ReadOnlySpan< char16_t > &span) |
| Trims whitespace characters from both ends of a character span. More... | |
| Span< char16_t > | Trim (Span< char16_t > &span) |
| Trims whitespace characters from both ends of a mutable character span. More... | |
| template<typename T > | |
| ReadOnlySpan< T > | TrimEnd (const ReadOnlySpan< T > &span, const T &trimElement) |
| Trims specified element from the end of a typed span. More... | |
| template<typename T > | |
| Span< T > | TrimEnd (Span< T > &span, const T &trimElement) |
| Trims specified element from the end of a mutable typed span. More... | |
| template<typename T > | |
| ReadOnlySpan< T > | TrimEnd (const ReadOnlySpan< T > &span, const ReadOnlySpan< T > &trimElements) |
| Trims specified elements from the end of a typed span. More... | |
| template<typename T > | |
| Span< T > | TrimEnd (Span< T > &span, const ReadOnlySpan< T > &trimElements) |
| Trims specified elements from the end of a mutable typed span. More... | |
| ReadOnlySpan< char16_t > | TrimEnd (const ReadOnlySpan< char16_t > &span) |
| Trims whitespace characters from the end of a character span. More... | |
| Span< char16_t > | TrimEnd (Span< char16_t > &span) |
| Trims whitespace characters from the end of a mutable character span. More... | |
| ReadOnlySpan< char16_t > | TrimEnd (const ReadOnlySpan< char16_t > &span, char16_t trimchar) |
| Trims specified character from the end of a character span. More... | |
| Span< char16_t > | TrimEnd (Span< char16_t > &span, char16_t trimchar) |
| Trims specified character from the end of a mutable character span. More... | |
| ReadOnlySpan< char16_t > | TrimEnd (const ReadOnlySpan< char16_t > &span, const ReadOnlySpan< char16_t > &trimChars) |
| Trims specified characters from the end of a character span. More... | |
| Span< char16_t > | TrimEnd (Span< char16_t > &span, const ReadOnlySpan< char16_t > &trimchars) |
| Trims specified characters from the end of a mutable character span. More... | |
| template<typename T > | |
| ReadOnlySpan< T > | TrimStart (const ReadOnlySpan< T > &span, const T &trimElement) |
| Trims specified element from the start of a typed span. More... | |
| template<typename T > | |
| Span< T > | TrimStart (Span< T > &span, const T &trimElement) |
| Trims specified element from the start of a mutable typed span. More... | |
| template<typename T > | |
| ReadOnlySpan< T > | TrimStart (const ReadOnlySpan< T > &span, const ReadOnlySpan< T > &trimElements) |
| Trims specified elements from the start of a typed span. More... | |
| template<typename T > | |
| Span< T > | TrimStart (Span< T > &span, const ReadOnlySpan< T > &trimElements) |
| Trims specified elements from the start of a mutable typed span. More... | |
| ReadOnlySpan< char16_t > | TrimStart (const ReadOnlySpan< char16_t > &span) |
| Trims whitespace characters from the start of a character span. More... | |
| Span< char16_t > | TrimStart (Span< char16_t > &span) |
| Trims whitespace characters from the start of a mutable character span. More... | |
| ReadOnlySpan< char16_t > | TrimStart (const ReadOnlySpan< char16_t > &span, char16_t trimchar) |
| Trims specified character from the start of a character span. More... | |
| Span< char16_t > | TrimStart (Span< char16_t > &span, char16_t trimchar) |
| Trims specified character from the start of a mutable character span. More... | |
| ReadOnlySpan< char16_t > | TrimStart (const ReadOnlySpan< char16_t > &span, const ReadOnlySpan< char16_t > &trimchars) |
| Trims specified characters from the start of a character span. More... | |
| Span< char16_t > | TrimStart (Span< char16_t > &span, const ReadOnlySpan< char16_t > &trimchars) |
| Trims specified characters from the start of a mutable character span. More... | |
Provides extension methods for memory operations on spans and arrays.
| Span< T > System::MemoryExtensions::AsSpan | ( | const ArrayPtr< T > & | array, |
| int32_t | start = 0, |
||
| int32_t | length = -1 |
||
| ) |
Creates a span from an array.
| T | The type of elements in the array. |
| array | The source array. |
| start | The starting index in the array. |
| length | The length of the span. |
| ReadOnlySpan< char16_t > System::MemoryExtensions::AsSpan | ( | const String & | text, |
| int32_t | start = 0, |
||
| int32_t | length = -1 |
||
| ) |
Creates a read-only span from a string.
| text | The source string. |
| start | The starting index in the string. |
| length | The length of the span. |
| int32_t System::MemoryExtensions::BinarySearch | ( | const ReadOnlySpan< T > & | span, |
| const T & | value, | ||
| const SharedPtr< TComparer > & | comparerPtr | ||
| ) |
Performs binary search on a sorted span using a custom comparer.
| T | The type of elements in the span |
| TComparer | The type of the comparer |
| span | The sorted span to search |
| value | The value to search for |
| comparerPtr | The comparer to use for comparisons |
| int32_t System::MemoryExtensions::BinarySearch | ( | const ReadOnlySpan< T > & | span, |
| const TComparable & | comparable | ||
| ) |
Performs binary search on a sorted span.
| T | The type of elements in the span |
| TComparable | The type of the comparable value |
| span | The sorted span to search |
| comparable | The value to search for |
| int32_t System::MemoryExtensions::BinarySearch | ( | const Span< T > & | span, |
| const T & | value, | ||
| const SharedPtr< TComparer > & | comparer | ||
| ) |
Performs binary search on a mutable sorted span using a custom comparer.
| T | The type of elements in the span |
| TComparer | The type of the comparer |
| span | The sorted span to search |
| value | The value to search for |
| comparer | The comparer to use for comparisons |
| int32_t System::MemoryExtensions::BinarySearch | ( | const Span< T > & | span, |
| const TComparable & | comparable | ||
| ) |
Performs binary search on a mutable sorted span.
| T | The type of elements in the span |
| TComparable | The type of the comparable value |
| span | The sorted span to search |
| comparable | The value to search for |
| int32_t System::MemoryExtensions::CommonPrefixLength | ( | const ReadOnlySpan< T > & | span, |
| const ReadOnlySpan< T > & | other | ||
| ) |
Finds the length of the common prefix between two spans.
| T | The type of elements in the spans |
| span | The first span |
| other | The second span |
| int32_t System::MemoryExtensions::CommonPrefixLength | ( | const ReadOnlySpan< T > & | span, |
| const ReadOnlySpan< T > & | other, | ||
| const SharedPtr< TEqualityComparer > & | comparer | ||
| ) |
Finds the length of the common prefix between two spans using a custom equality comparer.
| T | The type of elements in the spans |
| TEqualityComparer | The type of the equality comparer |
| span | The first span |
| other | The second span |
| comparer | The equality comparer to use for element comparison |
| int32_t System::MemoryExtensions::CommonPrefixLength | ( | const Span< T > & | span, |
| const ReadOnlySpan< T > & | other | ||
| ) |
Finds the length of the common prefix between a mutable span and a read-only span.
| T | The type of elements in the spans |
| span | The mutable span |
| other | The read-only span |
| int32_t System::MemoryExtensions::CommonPrefixLength | ( | const Span< T > & | span, |
| const ReadOnlySpan< T > & | other, | ||
| const SharedPtr< TEqualityComparer > & | comparer | ||
| ) |
Finds the length of the common prefix between a mutable span and a read-only span using a custom equality comparer.
| T | The type of elements in the spans |
| TEqualityComparer | The type of the equality comparer |
| span | The mutable span |
| other | The read-only span |
| comparer | The equality comparer to use for element comparison |
| int32_t System::MemoryExtensions::CommonPrefixLength | ( | const Span< T > & | span, |
| const Span< T > & | other | ||
| ) |
Finds the length of the common prefix between two mutable spans.
| T | The type of elements in the spans |
| span | The first mutable span |
| other | The second mutable span |
| int32_t System::MemoryExtensions::CommonPrefixLength | ( | const Span< T > & | span, |
| const Span< T > & | other, | ||
| const SharedPtr< TEqualityComparer > & | comparer | ||
| ) |
Finds the length of the common prefix between two mutable spans using a custom equality comparer.
| T | The type of elements in the spans |
| TEqualityComparer | The type of the equality comparer |
| span | The first mutable span |
| other | The second mutable span |
| comparer | The equality comparer to use for element comparison |
| int32_t System::MemoryExtensions::CompareTo | ( | const ReadOnlySpan< char16_t > & | span, |
| const ReadOnlySpan< char16_t > & | other, | ||
| StringComparison | comparisonType | ||
| ) |
Compares two character spans with specified string comparison rules.
| span | The first character span |
| other | The second character span |
| comparisonType | The type of string comparison to perform |
| bool System::MemoryExtensions::Contains | ( | const ReadOnlySpan< char16_t > & | span, |
| const ReadOnlySpan< char16_t > & | value, | ||
| StringComparison | comparisonType | ||
| ) |
Checks if a character span contains another character span with specified comparison rules.
| span | The span to search in |
| value | The span to search for |
| comparisonType | The type of string comparison to perform |
| bool System::MemoryExtensions::Contains | ( | const ReadOnlySpan< T > & | span, |
| const T & | value | ||
| ) |
Checks if a read-only span contains a specific value.
| T | The type of elements in the span |
| span | The span to search in |
| value | The value to search for |
| bool System::MemoryExtensions::Contains | ( | const Span< T > & | span, |
| const T & | value | ||
| ) |
Checks if a mutable span contains a specific value.
| T | The type of elements in the span |
| span | The mutable span to search in |
| value | The value to search for |
| bool System::MemoryExtensions::ContainsAny | ( | const ReadOnlySpan< T > & | span, |
| const ReadOnlySpan< T > & | values | ||
| ) |
Checks if a read-only span contains any value from another span.
| T | The type of elements in the spans |
| span | The span to search in |
| values | The span of values to search for |
| bool System::MemoryExtensions::ContainsAny | ( | const ReadOnlySpan< T > & | span, |
| const T & | value0, | ||
| const T & | value1 | ||
| ) |
Checks if a read-only span contains any of two values.
| T | The type of elements in the span |
| span | The span to search in |
| value0 | The first value to search for |
| value1 | The second value to search for |
| bool System::MemoryExtensions::ContainsAny | ( | const ReadOnlySpan< T > & | span, |
| const T & | value0, | ||
| const T & | value1, | ||
| const T & | value2 | ||
| ) |
Checks if a read-only span contains any of three values.
| T | The type of elements in the span |
| span | The span to search in |
| value0 | The first value to search for |
| value1 | The second value to search for |
| value2 | The third value to search for |
| bool System::MemoryExtensions::ContainsAny | ( | const Span< T > & | span, |
| const ReadOnlySpan< T > & | values | ||
| ) |
Checks if a mutable span contains any value from a read-only span.
| T | The type of elements in the spans |
| span | The mutable span to search in |
| values | The read-only span of values to search for |
| bool System::MemoryExtensions::ContainsAny | ( | const Span< T > & | span, |
| const T & | value0, | ||
| const T & | value1 | ||
| ) |
Checks if a mutable span contains any of two values.
| T | The type of elements in the span |
| span | The mutable span to search in |
| value0 | The first value to search for |
| value1 | The second value to search for |
| bool System::MemoryExtensions::ContainsAny | ( | const Span< T > & | span, |
| const T & | value0, | ||
| const T & | value1, | ||
| const T & | value2 | ||
| ) |
Checks if a mutable span contains any of three values.
| T | The type of elements in the span |
| span | The mutable span to search in |
| value0 | The first value to search for |
| value1 | The second value to search for |
| value2 | The third value to search for |
| bool System::MemoryExtensions::ContainsAnyExcept | ( | const ReadOnlySpan< T > & | span, |
| const ReadOnlySpan< T > & | values | ||
| ) |
Checks if a read-only span contains any element except those in another span.
| T | The type of elements in the spans |
| span | The span to search in |
| values | The span of values to exclude |
| bool System::MemoryExtensions::ContainsAnyExcept | ( | const ReadOnlySpan< T > & | span, |
| const T & | value | ||
| ) |
Checks if a read-only span contains any element except a specified value.
| T | The type of elements in the span |
| span | The span to search in |
| value | The value to exclude |
| bool System::MemoryExtensions::ContainsAnyExcept | ( | const ReadOnlySpan< T > & | span, |
| const T & | value0, | ||
| const T & | value1 | ||
| ) |
Checks if a read-only span contains any element except two specified values.
| T | The type of elements in the span |
| span | The span to search in |
| value0 | The first value to exclude |
| value1 | The second value to exclude |
| bool System::MemoryExtensions::ContainsAnyExcept | ( | const ReadOnlySpan< T > & | span, |
| const T & | value0, | ||
| const T & | value1, | ||
| const T & | value2 | ||
| ) |
Checks if a read-only span contains any element except three specified values.
| T | The type of elements in the span |
| span | The span to search in |
| value0 | The first value to exclude |
| value1 | The second value to exclude |
| value2 | The third value to exclude |
| bool System::MemoryExtensions::ContainsAnyExcept | ( | const Span< T > & | span, |
| const ReadOnlySpan< T > & | values | ||
| ) |
Checks if a mutable span contains any element except those in a read-only span.
| T | The type of elements in the spans |
| span | The mutable span to search in |
| values | The read-only span of values to exclude |
| bool System::MemoryExtensions::ContainsAnyExcept | ( | const Span< T > & | span, |
| const T & | value | ||
| ) |
Checks if a mutable span contains any element except a specified value.
| T | The type of elements in the span |
| span | The mutable span to search in |
| value | The value to exclude |
| bool System::MemoryExtensions::ContainsAnyExcept | ( | const Span< T > & | span, |
| const T & | value0, | ||
| const T & | value1 | ||
| ) |
Checks if a mutable span contains any element except two specified values.
| T | The type of elements in the span |
| span | The mutable span to search in |
| value0 | The first value to exclude |
| value1 | The second value to exclude |
| bool System::MemoryExtensions::ContainsAnyExcept | ( | const Span< T > & | span, |
| const T & | value0, | ||
| const T & | value1, | ||
| const T & | value2 | ||
| ) |
Checks if a mutable span contains any element except three specified values.
| T | The type of elements in the span |
| span | The mutable span to search in |
| value0 | The first value to exclude |
| value1 | The second value to exclude |
| value2 | The third value to exclude |
| bool System::MemoryExtensions::ContainsAnyExceptInRange | ( | const ReadOnlySpan< T > & | span, |
| const T & | lowInclusive, | ||
| const T & | highInclusive | ||
| ) |
Checks if a read-only span contains any element outside the specified range.
| T | The type of elements in the span (must be comparable) |
| span | The span to search in |
| lowInclusive | The lower bound (inclusive) |
| highInclusive | The upper bound (inclusive) |
| bool System::MemoryExtensions::ContainsAnyExceptInRange | ( | const Span< T > & | span, |
| const T & | lowInclusive, | ||
| const T & | highInclusive | ||
| ) |
Checks if a mutable span contains any element outside the specified range.
| T | The type of elements in the span (must be comparable) |
| span | The mutable span to search in |
| lowInclusive | The lower bound (inclusive) |
| highInclusive | The upper bound (inclusive) |
| bool System::MemoryExtensions::ContainsAnyInRange | ( | const ReadOnlySpan< T > & | span, |
| const T & | lowInclusive, | ||
| const T & | highInclusive | ||
| ) |
Checks if a read-only span contains any element within the specified range.
| T | The type of elements in the span (must be comparable) |
| span | The span to search in |
| lowInclusive | The lower bound (inclusive) |
| highInclusive | The upper bound (inclusive) |
| bool System::MemoryExtensions::ContainsAnyInRange | ( | const Span< T > & | span, |
| const T & | lowInclusive, | ||
| const T & | highInclusive | ||
| ) |
Checks if a mutable span contains any element within the specified range.
| T | The type of elements in the span (must be comparable) |
| span | The mutable span to search in |
| lowInclusive | The lower bound (inclusive) |
| highInclusive | The upper bound (inclusive) |
| void System::MemoryExtensions::CopyTo | ( | const ArrayPtr< T > & | source, |
| Span< T > & | destination | ||
| ) |
Copies elements from an array to a span.
| T | The type of elements in the array and span |
| source | The source array |
| destination | The destination span |
| int32_t System::MemoryExtensions::Count | ( | const ReadOnlySpan< T > & | span, |
| const ReadOnlySpan< T > & | value | ||
| ) |
Counts occurrences of a span within another read-only span.
| T | The type of elements in the spans |
| span | The span to search in |
| value | The span to count occurrences of |
| int32_t System::MemoryExtensions::Count | ( | const ReadOnlySpan< T > & | span, |
| const T & | value | ||
| ) |
Counts occurrences of a value in a read-only span.
| T | The type of elements in the span |
| span | The span to search in |
| value | The value to count |
| int32_t System::MemoryExtensions::Count | ( | const Span< T > & | span, |
| const ReadOnlySpan< T > & | value | ||
| ) |
Counts occurrences of a ReadOnlySpan<T> in a Span<T>
| T | The type of elements in the spans |
| span | The span to search in |
| value | The span containing values to count occurrences of |
| int32_t System::MemoryExtensions::Count | ( | const Span< T > & | span, |
| const T & | value | ||
| ) |
Counts occurrences of a single value in a Span<T>
| T | The type of elements in the span |
| span | The span to search in |
| value | The value to count occurrences of |
| bool System::MemoryExtensions::EndsWith | ( | const ReadOnlySpan< char16_t > & | span, |
| const ReadOnlySpan< char16_t > & | value, | ||
| StringComparison | comparisonType | ||
| ) |
Determines if a ReadOnlySpan<char16_t> ends with the specified value using StringComparison.
| span | The span to check |
| value | The value to check for at the end of the span |
| comparisonType | The string comparison type to use |
| bool System::MemoryExtensions::EndsWith | ( | const ReadOnlySpan< T > & | span, |
| const ReadOnlySpan< T > & | value | ||
| ) |
Determines if a ReadOnlySpan<T> ends with another ReadOnlySpan<T>
| T | The type of elements in the spans |
| span | The span to check |
| value | The span to check for at the end of the target span |
| bool System::MemoryExtensions::EndsWith | ( | const ReadOnlySpan< T > & | span, |
| const Span< T > & | value | ||
| ) |
Determines if a ReadOnlySpan<T> ends with a Span<T>
| T | The type of elements in the spans |
| span | The span to check |
| value | The span to check for at the end of the target span |
| bool System::MemoryExtensions::EndsWith | ( | const ReadOnlySpan< T > & | span, |
| const T & | value | ||
| ) |
Determines if a ReadOnlySpan<T> ends with a single value.
| T | The type of elements in the span |
| span | The span to check |
| value | The value to check for at the end of the span |
| bool System::MemoryExtensions::EndsWith | ( | const Span< T > & | span, |
| const ReadOnlySpan< T > & | value | ||
| ) |
Determines if a Span<T> ends with a ReadOnlySpan<T>
| T | The type of elements in the spans |
| span | The span to check |
| value | The span to check for at the end of the target span |
| bool System::MemoryExtensions::EndsWith | ( | const Span< T > & | span, |
| const Span< T > & | value | ||
| ) |
Determines if a Span<T> ends with another Span<T>
| T | The type of elements in the spans |
| span | The span to check |
| value | The span to check for at the end of the target span |
| bool System::MemoryExtensions::Equals | ( | const ReadOnlySpan< char16_t > & | span, |
| const ReadOnlySpan< char16_t > & | other, | ||
| StringComparison | comparisonType | ||
| ) |
Compares two ReadOnlySpan<char16_t> for equality using StringComparison.
| span | The first span to compare |
| other | The second span to compare |
| comparisonType | The string comparison type to use |
| int32_t System::MemoryExtensions::IndexOf | ( | const ReadOnlySpan< char16_t > & | span, |
| const ReadOnlySpan< char16_t > & | value, | ||
| StringComparison | comparisonType | ||
| ) |
Finds the index of a ReadOnlySpan<char16_t> value in a ReadOnlySpan<char16_t> with StringComparison.
| span | The span to search in |
| value | The value to search for |
| comparisonType | The string comparison type to use |
| int32_t System::MemoryExtensions::IndexOf | ( | const ReadOnlySpan< T > & | span, |
| const ReadOnlySpan< T > & | value | ||
| ) |
Finds the index of a ReadOnlySpan<T> value in another ReadOnlySpan<T>
| T | The type of elements in the spans |
| span | The span to search in |
| value | The span to search for |
| int32_t System::MemoryExtensions::IndexOf | ( | const ReadOnlySpan< T > & | span, |
| const T & | value | ||
| ) |
Finds the index of a single value in a ReadOnlySpan<T>
| T | The type of elements in the span |
| span | The span to search in |
| value | The value to search for |
| int32_t System::MemoryExtensions::IndexOf | ( | const Span< T > & | span, |
| const ReadOnlySpan< T > & | value | ||
| ) |
Finds the index of a ReadOnlySpan<T> value in a Span<T>
| T | The type of elements in the spans |
| span | The span to search in |
| value | The span to search for |
| int32_t System::MemoryExtensions::IndexOf | ( | const Span< T > & | span, |
| const T & | value | ||
| ) |
Finds the index of a single value in a Span<T>
| T | The type of elements in the span |
| span | The span to search in |
| value | The value to search for |
| int32_t System::MemoryExtensions::IndexOfAny | ( | const ReadOnlySpan< T > & | span, |
| const ReadOnlySpan< T > & | values | ||
| ) |
Finds the index of the first occurrence of any value from a span in another ReadOnlySpan<T>
| T | The type of elements in the spans |
| span | The span to search in |
| values | The span containing values to search for |
| int32_t System::MemoryExtensions::IndexOfAny | ( | const ReadOnlySpan< T > & | span, |
| const T & | value0, | ||
| const T & | value1 | ||
| ) |
Finds the index of the first occurrence of any of two specified values in a ReadOnlySpan<T>
| T | The type of elements in the span |
| span | The span to search in |
| value0 | The first value to search for |
| value1 | The second value to search for |
| int32_t System::MemoryExtensions::IndexOfAny | ( | const ReadOnlySpan< T > & | span, |
| const T & | value0, | ||
| const T & | value1, | ||
| const T & | value2 | ||
| ) |
Finds the index of the first occurrence of any of three specified values in a ReadOnlySpan<T>
| T | The type of elements in the span |
| span | The span to search in |
| value0 | The first value to search for |
| value1 | The second value to search for |
| value2 | The third value to search for |
| int32_t System::MemoryExtensions::IndexOfAny | ( | const Span< T > & | span, |
| const ReadOnlySpan< T > & | values | ||
| ) |
Finds the index of the first occurrence of any value from a span in a Span<T>
| T | The type of elements in the spans |
| span | The span to search in |
| values | The span containing values to search for |
| int32_t System::MemoryExtensions::IndexOfAny | ( | const Span< T > & | span, |
| const T & | value0, | ||
| const T & | value1 | ||
| ) |
Finds the index of the first occurrence of any of two specified values in a Span<T>
| T | The type of elements in the span |
| span | The span to search in |
| value0 | The first value to search for |
| value1 | The second value to search for |
| int32_t System::MemoryExtensions::IndexOfAny | ( | const Span< T > & | span, |
| const T & | value0, | ||
| const T & | value1, | ||
| const T & | value2 | ||
| ) |
Finds the index of the first occurrence of any of three specified values in a Span<T>
| T | The type of elements in the span |
| span | The span to search in |
| value0 | The first value to search for |
| value1 | The second value to search for |
| value2 | The third value to search for |
| int32_t System::MemoryExtensions::IndexOfAnyExcept | ( | const ReadOnlySpan< T > & | span, |
| const ReadOnlySpan< T > & | values | ||
| ) |
Finds the index of the first element that is not equal to any value in a span of values.
| T | The type of elements in the spans |
| span | The span to search in |
| values | The span containing values to exclude from the search |
| int32_t System::MemoryExtensions::IndexOfAnyExcept | ( | const ReadOnlySpan< T > & | span, |
| const T & | value | ||
| ) |
Finds the index of the first element that is not equal to the specified value in a ReadOnlySpan<T>
| T | The type of elements in the span |
| span | The span to search in |
| value | The value to exclude from the search |
| int32_t System::MemoryExtensions::IndexOfAnyExcept | ( | const ReadOnlySpan< T > & | span, |
| const T & | value0, | ||
| const T & | value1 | ||
| ) |
Finds the index of the first element that is not equal to either of two specified values in a ReadOnlySpan<T>
| T | The type of elements in the span |
| span | The span to search in |
| value0 | The first value to exclude from the search |
| value1 | The second value to exclude from the search |
| int32_t System::MemoryExtensions::IndexOfAnyExcept | ( | const ReadOnlySpan< T > & | span, |
| const T & | value0, | ||
| const T & | value1, | ||
| const T & | value2 | ||
| ) |
Finds the index of the first element that is not equal to any of three specified values in a ReadOnlySpan<T>
| T | The type of elements in the span |
| span | The span to search in |
| value0 | The first value to exclude from the search |
| value1 | The second value to exclude from the search |
| value2 | The third value to exclude from the search |
| int32_t System::MemoryExtensions::IndexOfAnyExcept | ( | const Span< T > & | span, |
| const ReadOnlySpan< T > & | values | ||
| ) |
Finds the index of the first element that is not equal to any value in a span of values in a Span<T>
| T | The type of elements in the spans |
| span | The span to search in |
| values | The span containing values to exclude from the search |
| int32_t System::MemoryExtensions::IndexOfAnyExcept | ( | const Span< T > & | span, |
| const T & | value | ||
| ) |
Finds the index of the first element that is not equal to the specified value in a Span<T>
| T | The type of elements in the span |
| span | The span to search in |
| value | The value to exclude from the search |
| int32_t System::MemoryExtensions::IndexOfAnyExcept | ( | const Span< T > & | span, |
| const T & | value0, | ||
| const T & | value1 | ||
| ) |
Finds the index of the first element that is not equal to either of two specified values in a Span<T>
| T | The type of elements in the span |
| span | The span to search in |
| value0 | The first value to exclude from the search |
| value1 | The second value to exclude from the search |
| int32_t System::MemoryExtensions::IndexOfAnyExcept | ( | const Span< T > & | span, |
| const T & | value0, | ||
| const T & | value1, | ||
| const T & | value2 | ||
| ) |
Finds the index of the first element that is not equal to any of three specified values in a Span<T>
| T | The type of elements in the span |
| span | The span to search in |
| value0 | The first value to exclude from the search |
| value1 | The second value to exclude from the search |
| value2 | The third value to exclude from the search |
| int32_t System::MemoryExtensions::IndexOfAnyExceptInRange | ( | const ReadOnlySpan< T > & | span, |
| const T & | lowInclusive, | ||
| const T & | highInclusive | ||
| ) |
Finds the index of the first element that is outside the specified range in a ReadOnlySpan<T>
| T | The type of elements in the span |
| span | The span to search in |
| lowInclusive | The lower bound of the range (inclusive) |
| highInclusive | The upper bound of the range (inclusive) |
| int32_t System::MemoryExtensions::IndexOfAnyExceptInRange | ( | const Span< T > & | span, |
| const T & | lowInclusive, | ||
| const T & | highInclusive | ||
| ) |
Finds the index of the first element that is outside the specified range in a Span<T>
| T | The type of elements in the span |
| span | The span to search in |
| lowInclusive | The lower bound of the range (inclusive) |
| highInclusive | The upper bound of the range (inclusive) |
| int32_t System::MemoryExtensions::IndexOfAnyInRange | ( | const ReadOnlySpan< T > & | span, |
| const T & | lowInclusive, | ||
| const T & | highInclusive | ||
| ) |
Finds the index of the first element that is within the specified range in a ReadOnlySpan<T>
| T | The type of elements in the span |
| span | The span to search in |
| lowInclusive | The lower bound of the range (inclusive) |
| highInclusive | The upper bound of the range (inclusive) |
| int32_t System::MemoryExtensions::IndexOfAnyInRange | ( | const Span< T > & | span, |
| const T & | lowInclusive, | ||
| const T & | highInclusive | ||
| ) |
Finds the index of the first element that is within the specified range in a Span<T>
| T | The type of elements in the span |
| span | The span to search in |
| lowInclusive | The lower bound of the range (inclusive) |
| highInclusive | The upper bound of the range (inclusive) |
| bool System::MemoryExtensions::IsWhiteSpace | ( | const ReadOnlySpan< char16_t > & | span | ) |
Checks if the entire span consists only of whitespace characters.
| span | The span to check for whitespace |
| int32_t System::MemoryExtensions::LastIndexOf | ( | const ReadOnlySpan< char16_t > & | span, |
| const ReadOnlySpan< char16_t > & | value, | ||
| StringComparison | comparisonType | ||
| ) |
Finds the last occurrence of a value within a span using specified string comparison.
| span | The span to search within |
| value | The value to search for |
| comparisonType | The type of string comparison to perform |
| int32_t System::MemoryExtensions::LastIndexOf | ( | const ReadOnlySpan< T > & | span, |
| const ReadOnlySpan< T > & | value | ||
| ) |
Finds the last occurrence of a sequence within a span.
| T | The type of elements in the span |
| span | The span to search within |
| value | The sequence to search for |
| int32_t System::MemoryExtensions::LastIndexOf | ( | const ReadOnlySpan< T > & | span, |
| const T & | value | ||
| ) |
Finds the last occurrence of a single value within a span.
| T | The type of elements in the span |
| span | The span to search within |
| value | The value to search for |
| int32_t System::MemoryExtensions::LastIndexOf | ( | const Span< T > & | span, |
| const ReadOnlySpan< T > & | value | ||
| ) |
Finds the last occurrence of a sequence within a mutable span.
| T | The type of elements in the span |
| span | The span to search within |
| value | The sequence to search for |
| int32_t System::MemoryExtensions::LastIndexOf | ( | const Span< T > & | span, |
| const T & | value | ||
| ) |
Finds the last occurrence of a single value within a mutable span.
| T | The type of elements in the span |
| span | The span to search within |
| value | The value to search for |
| int32_t System::MemoryExtensions::LastIndexOfAny | ( | const ReadOnlySpan< T > & | span, |
| const ReadOnlySpan< T > & | values | ||
| ) |
Finds the last occurrence of any value from a sequence within a span.
| T | The type of elements in the span |
| span | The span to search within |
| values | The sequence of values to search for |
| int32_t System::MemoryExtensions::LastIndexOfAny | ( | const ReadOnlySpan< T > & | span, |
| const T & | value0, | ||
| const T & | value1 | ||
| ) |
Finds the last occurrence of any of two specified values within a span.
| T | The type of elements in the span |
| span | The span to search within |
| value0 | The first value to search for |
| value1 | The second value to search for |
| int32_t System::MemoryExtensions::LastIndexOfAny | ( | const ReadOnlySpan< T > & | span, |
| const T & | value0, | ||
| const T & | value1, | ||
| const T & | value2 | ||
| ) |
Finds the last occurrence of any of three specified values within a span.
| T | The type of elements in the span |
| span | The span to search within |
| value0 | The first value to search for |
| value1 | The second value to search for |
| value2 | The third value to search for |
| int32_t System::MemoryExtensions::LastIndexOfAny | ( | const Span< T > & | span, |
| const ReadOnlySpan< T > & | values | ||
| ) |
Finds the last occurrence of any value from a sequence within a mutable span.
| T | The type of elements in the span |
| span | The span to search within |
| values | The sequence of values to search for |
| int32_t System::MemoryExtensions::LastIndexOfAny | ( | const Span< T > & | span, |
| const Span< T > & | values | ||
| ) |
Finds the last occurrence of any value from a mutable sequence within a mutable span.
| T | The type of elements in the span |
| span | The span to search within |
| values | The sequence of values to search for |
| int32_t System::MemoryExtensions::LastIndexOfAny | ( | const Span< T > & | span, |
| const T & | value0, | ||
| const T & | value1 | ||
| ) |
Finds the last occurrence of any of two specified values within a mutable span.
| T | The type of elements in the span |
| span | The span to search within |
| value0 | The first value to search for |
| value1 | The second value to search for |
| int32_t System::MemoryExtensions::LastIndexOfAny | ( | const Span< T > & | span, |
| const T & | value0, | ||
| const T & | value1, | ||
| const T & | value2 | ||
| ) |
Finds the last occurrence of any of three specified values within a mutable span.
| T | The type of elements in the span |
| span | The span to search within |
| value0 | The first value to search for |
| value1 | The second value to search for |
| value2 | The third value to search for |
| int32_t System::MemoryExtensions::LastIndexOfAnyExcept | ( | const ReadOnlySpan< T > & | span, |
| const ReadOnlySpan< T > & | values | ||
| ) |
Finds the last occurrence of any element except values from a sequence within a span.
| T | The type of elements in the span |
| span | The span to search within |
| values | The sequence of values to exclude |
| int32_t System::MemoryExtensions::LastIndexOfAnyExcept | ( | const ReadOnlySpan< T > & | span, |
| const T & | value | ||
| ) |
Finds the last occurrence of any element except a specified value within a span.
| T | The type of elements in the span |
| span | The span to search within |
| value | The value to exclude |
| int32_t System::MemoryExtensions::LastIndexOfAnyExcept | ( | const ReadOnlySpan< T > & | span, |
| const T & | value0, | ||
| const T & | value1 | ||
| ) |
Finds the last occurrence of any element except two specified values within a span.
| T | The type of elements in the span |
| span | The span to search within |
| value0 | The first value to exclude |
| value1 | The second value to exclude |
| int32_t System::MemoryExtensions::LastIndexOfAnyExcept | ( | const ReadOnlySpan< T > & | span, |
| const T & | value0, | ||
| const T & | value1, | ||
| const T & | value2 | ||
| ) |
Finds the last occurrence of any element except three specified values within a span.
| T | The type of elements in the span |
| span | The span to search within |
| value0 | The first value to exclude |
| value1 | The second value to exclude |
| value2 | The third value to exclude |
| int32_t System::MemoryExtensions::LastIndexOfAnyExcept | ( | const Span< T > & | span, |
| const ReadOnlySpan< T > & | values | ||
| ) |
Finds the last occurrence of any element except values from a sequence within a mutable span.
| T | The type of elements in the span |
| span | The span to search within |
| values | The sequence of values to exclude |
| int32_t System::MemoryExtensions::LastIndexOfAnyExcept | ( | const Span< T > & | span, |
| const Span< T > & | values | ||
| ) |
Finds the last occurrence of any element except values from a mutable sequence within a mutable span.
| T | The type of elements in the span |
| span | The span to search within |
| values | The sequence of values to exclude |
| int32_t System::MemoryExtensions::LastIndexOfAnyExcept | ( | const Span< T > & | span, |
| const T & | value | ||
| ) |
Finds the last occurrence of any element except a specified value within a mutable span.
| T | The type of elements in the span |
| span | The span to search within |
| value | The value to exclude |
| int32_t System::MemoryExtensions::LastIndexOfAnyExcept | ( | const Span< T > & | span, |
| const T & | value0, | ||
| const T & | value1 | ||
| ) |
Finds the last occurrence of any element except two specified values within a mutable span.
| T | The type of elements in the span |
| span | The span to search within |
| value0 | The first value to exclude |
| value1 | The second value to exclude |
| int32_t System::MemoryExtensions::LastIndexOfAnyExcept | ( | const Span< T > & | span, |
| const T & | value0, | ||
| const T & | value1, | ||
| const T & | value2 | ||
| ) |
Finds the last occurrence of any element except three specified values within a mutable span.
| T | The type of elements in the span |
| span | The span to search within |
| value0 | The first value to exclude |
| value1 | The second value to exclude |
| value2 | The third value to exclude |
| int32_t System::MemoryExtensions::LastIndexOfAnyExceptInRange | ( | const ReadOnlySpan< T > & | span, |
| const T & | lowInclusive, | ||
| const T & | highInclusive | ||
| ) |
Finds the last occurrence of any element outside the specified range within a span.
| T | The type of elements in the span |
| span | The span to search within |
| lowInclusive | The lower bound of the range (inclusive) |
| highInclusive | The upper bound of the range (inclusive) |
| int32_t System::MemoryExtensions::LastIndexOfAnyExceptInRange | ( | const Span< T > & | span, |
| const T & | lowInclusive, | ||
| const T & | highInclusive | ||
| ) |
Finds the last occurrence of any element outside the specified range within a mutable span.
| T | The type of elements in the span |
| span | The span to search within |
| lowInclusive | The lower bound of the range (inclusive) |
| highInclusive | The upper bound of the range (inclusive) |
| int32_t System::MemoryExtensions::LastIndexOfAnyInRange | ( | const ReadOnlySpan< T > & | span, |
| const T & | lowInclusive, | ||
| const T & | highInclusive | ||
| ) |
Finds the last occurrence of any element within the specified range within a span.
| T | The type of elements in the span |
| span | The span to search within |
| lowInclusive | The lower bound of the range (inclusive) |
| highInclusive | The upper bound of the range (inclusive) |
| int32_t System::MemoryExtensions::LastIndexOfAnyInRange | ( | const Span< T > & | span, |
| const T & | lowInclusive, | ||
| const T & | highInclusive | ||
| ) |
Finds the last occurrence of any element within the specified range within a mutable span.
| T | The type of elements in the span |
| span | The span to search within |
| lowInclusive | The lower bound of the range (inclusive) |
| highInclusive | The upper bound of the range (inclusive) |
| bool System::MemoryExtensions::Overlaps | ( | const ReadOnlySpan< T > & | span, |
| const ReadOnlySpan< T > & | other | ||
| ) |
Determines if two ReadOnlySpans overlap in memory without calculating offset.
| T | The type of elements in the spans |
| span | The first span to check for overlap |
| other | The second span to check for overlap |
| bool System::MemoryExtensions::Overlaps | ( | const ReadOnlySpan< T > & | span, |
| const ReadOnlySpan< T > & | other, | ||
| int32_t & | elementOffset | ||
| ) |
Determines if two ReadOnlySpans overlap in memory and calculates the offset.
| T | The type of elements in the spans |
| span | The first span to check for overlap |
| other | The second span to check for overlap |
| elementOffset | Output parameter that receives the offset between spans if they overlap |
| bool System::MemoryExtensions::Overlaps | ( | const Span< T > & | span, |
| const ReadOnlySpan< T > & | other | ||
| ) |
Determines if a Span and ReadOnlySpan overlap in memory without calculating offset.
| T | The type of elements in the spans |
| span | The Span to check for overlap |
| other | The ReadOnlySpan to check for overlap |
| bool System::MemoryExtensions::Overlaps | ( | const Span< T > & | span, |
| const ReadOnlySpan< T > & | other, | ||
| int32_t & | elementOffset | ||
| ) |
Determines if a Span and ReadOnlySpan overlap in memory and calculates the offset.
| T | The type of elements in the spans |
| span | The Span to check for overlap |
| other | The ReadOnlySpan to check for overlap |
| elementOffset | Output parameter that receives the offset between spans if they overlap |
| void System::MemoryExtensions::Replace | ( | const ReadOnlySpan< T > & | source, |
| Span< T > & | destination, | ||
| const T & | oldValue, | ||
| const T & | newValue | ||
| ) |
Copies elements from source to destination, replacing specified values during copy.
| T | The type of elements in the spans |
| source | The source ReadOnlySpan to copy from |
| destination | The destination Span to copy to |
| oldValue | The value to search for and replace during copying |
| newValue | The new value to replace oldValue with |
| ArgumentException | if destination is smaller than source |
| void System::MemoryExtensions::Replace | ( | Span< T > & | span, |
| const T & | oldValue, | ||
| const T & | newValue | ||
| ) |
Replaces all occurrences of a value with a new value in a Span.
| T | The type of elements in the span |
| span | The span to modify in-place |
| oldValue | The value to search for and replace |
| newValue | The new value to replace oldValue with |
| void System::MemoryExtensions::Reverse | ( | Span< T > & | span | ) |
Reverses the order of elements in a Span in-place.
| T | The type of elements in the span |
| span | The span to reverse |
| int32_t System::MemoryExtensions::SequenceCompareTo | ( | const ReadOnlySpan< T > & | span, |
| const ReadOnlySpan< T > & | other | ||
| ) |
Compares two ReadOnlySpans lexicographically.
| T | The type of elements in the spans |
| span | The first span to compare |
| other | The second span to compare |
| int32_t System::MemoryExtensions::SequenceCompareTo | ( | const ReadOnlySpan< T > & | span, |
| const Span< T > & | other | ||
| ) |
Compares a ReadOnlySpan and Span lexicographically.
| T | The type of elements in the spans |
| span | The ReadOnlySpan to compare |
| other | The Span to compare |
| int32_t System::MemoryExtensions::SequenceCompareTo | ( | const Span< T > & | span, |
| const ReadOnlySpan< T > & | other | ||
| ) |
Compares a Span and ReadOnlySpan lexicographically.
| T | The type of elements in the spans |
| span | The Span to compare |
| other | The ReadOnlySpan to compare |
| bool System::MemoryExtensions::SequenceEqual | ( | const ReadOnlySpan< T > & | first, |
| const ReadOnlySpan< T > & | second | ||
| ) |
Determines if two ReadOnlySpans contain identical elements in the same order.
| T | The type of elements in the spans |
| first | The first span to compare |
| second | The second span to compare |
| bool System::MemoryExtensions::SequenceEqual | ( | const ReadOnlySpan< T > & | span, |
| const ReadOnlySpan< T > & | other, | ||
| SharedPtr< TComparer > & | comparer | ||
| ) |
Determines if two ReadOnlySpans contain equal elements using a custom comparer.
| T | The type of elements in the spans |
| TComparer | The type of the comparer object |
| span | The first span to compare |
| other | The second span to compare |
| comparer | Smart pointer to comparer object for element comparison |
| bool System::MemoryExtensions::SequenceEqual | ( | const Span< T > & | span, |
| const ReadOnlySpan< T > & | other | ||
| ) |
Determines if a Span and ReadOnlySpan contain identical elements in the same order.
| T | The type of elements in the spans |
| span | The Span to compare |
| other | The ReadOnlySpan to compare |
| bool System::MemoryExtensions::SequenceEqual | ( | const Span< T > & | span, |
| const ReadOnlySpan< T > & | other, | ||
| SharedPtr< TComparer > & | comparer | ||
| ) |
Determines if a Span and ReadOnlySpan contain equal elements using a custom comparer.
| T | The type of elements in the spans |
| TComparer | The type of the comparer object |
| span | The Span to compare |
| other | The ReadOnlySpan to compare |
| comparer | Smart pointer to comparer object for element comparison |
| void System::MemoryExtensions::Sort | ( | const Span< T > & | span, |
| const SharedPtr< TComparer > & | comparer | ||
| ) |
Sorts a Span using a custom comparer.
| T | The type of elements in the span |
| TComparer | The type of the comparer object |
| span | The span to sort |
| comparer | Smart pointer to comparer object for element comparison |
| void System::MemoryExtensions::Sort | ( | Span< T > & | span | ) |
Sorts a Span using default comparison.
| T | The type of elements in the span |
| span | The span to sort |
| void System::MemoryExtensions::Sort | ( | Span< TKey > & | keys, |
| Span< TValue > & | values | ||
| ) |
Sorts key-value pairs using default comparison.
| TKey | The type of keys |
| TValue | The type of values |
| keys | The span of keys to sort |
| values | The span of values to sort |
| ArgumentException | if keys and values have different lengths |
| void System::MemoryExtensions::Sort | ( | Span< TKey > & | keys, |
| Span< TValue > & | values, | ||
| const SharedPtr< TComparer > & | comparer | ||
| ) |
Sorts key-value pairs using a custom comparer (keys and values sorted together)
| TKey | The type of keys |
| TValue | The type of values |
| TComparer | The type of the comparer object |
| keys | The span of keys to sort |
| values | The span of values to sort (maintaining correspondence with keys) |
| comparer | Smart pointer to comparer object for key comparison |
| ArgumentException | if keys and values have different lengths |
| void System::MemoryExtensions::Sort | ( | Span< TKey > & | keys, |
| Span< TValue > & | values, | ||
| System::Comparison< TKey > | comparer | ||
| ) |
Sorts key-value pairs using a comparison delegate.
| TKey | The type of keys |
| TValue | The type of values |
| keys | The span of keys to sort |
| values | The span of values to sort |
| comparer | Comparison delegate for key comparison |
| ArgumentException | if keys and values have different lengths |
| bool System::MemoryExtensions::StartsWith | ( | const ReadOnlySpan< char16_t > & | span, |
| const ReadOnlySpan< char16_t > & | value, | ||
| StringComparison | comparisonType | ||
| ) |
Checks if the character span starts with the specified value span using string comparison.
| span | The character span to check |
| value | The character span containing values to check for |
| comparisonType | The type of string comparison to perform |
|
inline |
Checks if a string span starts with the specified character array.
| span | The string span to check |
| val | The character array to check for at the beginning |
| bool System::MemoryExtensions::StartsWith | ( | const ReadOnlySpan< T > & | span, |
| const ReadOnlySpan< T > & | value | ||
| ) |
Checks if the span starts with the specified value span.
| T | The type of elements in the spans |
| span | The span to check |
| value | The span containing values to check for at the beginning |
| bool System::MemoryExtensions::StartsWith | ( | const ReadOnlySpan< T > & | span, |
| const Span< T > & | value | ||
| ) |
Checks if the read-only span starts with the specified mutable value span.
| T | The type of elements in the spans |
| span | The read-only span to check |
| value | The mutable span containing values to check for |
| bool System::MemoryExtensions::StartsWith | ( | const ReadOnlySpan< T > & | span, |
| const T & | value | ||
| ) |
Checks if the span starts with the specified value.
| T | The type of elements in the span |
| span | The span to check |
| value | The value to check for at the beginning of the span |
| bool System::MemoryExtensions::StartsWith | ( | const Span< T > & | span, |
| const ReadOnlySpan< T > & | value | ||
| ) |
Checks if the mutable span starts with the specified read-only value span.
| T | The type of elements in the spans |
| span | The mutable span to check |
| value | The read-only span containing values to check for |
| int32_t System::MemoryExtensions::ToLower | ( | const ReadOnlySpan< char16_t > & | source, |
| Span< char16_t > & | destination, | ||
| const SharedPtr< Globalization::CultureInfo > & | culture | ||
| ) |
Converts characters to lowercase using specified culture.
| source | The source character span to convert |
| destination | The destination span to store converted characters |
| culture | The culture to use for conversion (nullptr for current culture) |
| int32_t System::MemoryExtensions::ToLowerInvariant | ( | const ReadOnlySpan< char16_t > & | source, |
| Span< char16_t > & | destination | ||
| ) |
Converts characters to lowercase using invariant culture.
| source | The source character span to convert |
| destination | The destination span to store converted characters |
| int32_t System::MemoryExtensions::ToUpper | ( | const ReadOnlySpan< char16_t > & | source, |
| Span< char16_t > & | destination, | ||
| const SharedPtr< Globalization::CultureInfo > & | culture | ||
| ) |
Converts characters to uppercase using specified culture.
| source | The source character span to convert |
| destination | The destination span to store converted characters |
| culture | The culture to use for conversion (nullptr for current culture) |
| int32_t System::MemoryExtensions::ToUpperInvariant | ( | const ReadOnlySpan< char16_t > & | source, |
| Span< char16_t > & | destination | ||
| ) |
Converts characters to uppercase using invariant culture.
| source | The source character span to convert |
| destination | The destination span to store converted characters |
|
inline |
Trims whitespace characters from both ends of a character span.
| span | The character span to trim |
| ReadOnlySpan< T > System::MemoryExtensions::Trim | ( | const ReadOnlySpan< T > & | span, |
| const ReadOnlySpan< T > & | trimElements | ||
| ) |
Trims specified elements from both ends of a typed span.
| T | The type of elements in the span |
| span | The span to trim |
| trimElements | The elements to trim |
| ReadOnlySpan< T > System::MemoryExtensions::Trim | ( | const ReadOnlySpan< T > & | span, |
| T | trimElement | ||
| ) |
Trims specified element from both ends of a typed span.
| T | The type of elements in the span |
| span | The span to trim |
| trimElement | The element to trim |
Trims whitespace characters from both ends of a mutable character span.
| span | The mutable character span to trim |
| Span< T > System::MemoryExtensions::Trim | ( | Span< T > & | span, |
| const ReadOnlySpan< T > & | trimElements | ||
| ) |
Trims specified elements from both ends of a mutable typed span.
| T | The type of elements in the span |
| span | The mutable span to trim |
| trimElements | The elements to trim |
Trims specified element from both ends of a mutable typed span.
| T | The type of elements in the span |
| span | The mutable span to trim |
| trimElement | The element to trim |
|
inline |
Trims whitespace characters from the end of a character span.
| span | The character span to trim |
|
inline |
Trims specified character from the end of a character span.
| span | The character span to trim |
| trimchar | The character to trim |
|
inline |
Trims specified characters from the end of a character span.
| span | The character span to trim |
| trimChars | The characters to trim |
| ReadOnlySpan< T > System::MemoryExtensions::TrimEnd | ( | const ReadOnlySpan< T > & | span, |
| const ReadOnlySpan< T > & | trimElements | ||
| ) |
Trims specified elements from the end of a typed span.
| T | The type of elements in the span |
| span | The span to trim |
| trimElements | The elements to trim |
| ReadOnlySpan< T > System::MemoryExtensions::TrimEnd | ( | const ReadOnlySpan< T > & | span, |
| const T & | trimElement | ||
| ) |
Trims specified element from the end of a typed span.
| T | The type of elements in the span |
| span | The span to trim |
| trimElement | The element to trim |
Trims whitespace characters from the end of a mutable character span.
| span | The mutable character span to trim |
|
inline |
Trims specified character from the end of a mutable character span.
| span | The mutable character span to trim |
| trimchar | The character to trim |
|
inline |
Trims specified characters from the end of a mutable character span.
| span | The mutable character span to trim |
| trimchars | The characters to trim |
| Span< T > System::MemoryExtensions::TrimEnd | ( | Span< T > & | span, |
| const ReadOnlySpan< T > & | trimElements | ||
| ) |
Trims specified elements from the end of a mutable typed span.
| T | The type of elements in the span |
| span | The mutable span to trim |
| trimElements | The elements to trim |
| Span< T > System::MemoryExtensions::TrimEnd | ( | Span< T > & | span, |
| const T & | trimElement | ||
| ) |
Trims specified element from the end of a mutable typed span.
| T | The type of elements in the span |
| span | The mutable span to trim |
| trimElement | The element to trim |
|
inline |
Trims whitespace characters from the start of a character span.
| span | The character span to trim |
|
inline |
Trims specified character from the start of a character span.
| span | The character span to trim |
| trimchar | The character to trim |
|
inline |
Trims specified characters from the start of a character span.
| span | The character span to trim |
| trimchars | The characters to trim |
| ReadOnlySpan< T > System::MemoryExtensions::TrimStart | ( | const ReadOnlySpan< T > & | span, |
| const ReadOnlySpan< T > & | trimElements | ||
| ) |
Trims specified elements from the start of a typed span.
| T | The type of elements in the span |
| span | The span to trim |
| trimElements | The elements to trim |
| ReadOnlySpan< T > System::MemoryExtensions::TrimStart | ( | const ReadOnlySpan< T > & | span, |
| const T & | trimElement | ||
| ) |
Trims specified element from the start of a typed span.
| T | The type of elements in the span |
| span | The span to trim |
| trimElement | The element to trim |
Trims whitespace characters from the start of a mutable character span.
| span | The mutable character span to trim |
|
inline |
Trims specified character from the start of a mutable character span.
| span | The mutable character span to trim |
| trimchar | The character to trim |
|
inline |
Trims specified characters from the start of a mutable character span.
| span | The mutable character span to trim |
| trimchars | The characters to trim |
| Span< T > System::MemoryExtensions::TrimStart | ( | Span< T > & | span, |
| const ReadOnlySpan< T > & | trimElements | ||
| ) |
Trims specified elements from the start of a mutable typed span.
| T | The type of elements in the span |
| span | The mutable span to trim |
| trimElements | The elements to trim |
| Span< T > System::MemoryExtensions::TrimStart | ( | Span< T > & | span, |
| const T & | trimElement | ||
| ) |
Trims specified element from the start of a mutable typed span.
| T | The type of elements in the span |
| span | The mutable span to trim |
| trimElement | The element to trim |