TrimEnd()
System::MemoryExtensions::TrimEnd(const ReadOnlySpan<T>&, const T&) function
Trims specified element from the end of a typed span.
template<typename T> ReadOnlySpan<T> System::MemoryExtensions::TrimEnd(const ReadOnlySpan<T> &span, const T &trimElement)
Template parameters
Parameter | Description |
---|---|
T | The type of elements in the span |
Arguments
Parameter | Type | Description |
---|---|---|
span | const ReadOnlySpan<T>& | The span to trim |
trimElement | const T& | The element to trim |
Return Value
A new span with the specified element trimmed from the end
System::MemoryExtensions::TrimEnd(Span<T>&, const T&) function
Trims specified element from the end of a mutable typed span.
template<typename T> Span<T> System::MemoryExtensions::TrimEnd(Span<T> &span, const T &trimElement)
Template parameters
Parameter | Description |
---|---|
T | The type of elements in the span |
Arguments
Parameter | Type | Description |
---|---|---|
span | Span<T>& | The mutable span to trim |
trimElement | const T& | The element to trim |
Return Value
A new span with the specified element trimmed from the end
System::MemoryExtensions::TrimEnd(const ReadOnlySpan<T>&, const ReadOnlySpan<T>&) function
Trims specified elements from the end of a typed span.
template<typename T> ReadOnlySpan<T> System::MemoryExtensions::TrimEnd(const ReadOnlySpan<T> &span, const ReadOnlySpan<T> &trimElements)
Template parameters
Parameter | Description |
---|---|
T | The type of elements in the span |
Arguments
Parameter | Type | Description |
---|---|---|
span | const ReadOnlySpan<T>& | The span to trim |
trimElements | const ReadOnlySpan<T>& | The elements to trim |
Return Value
A new span with the specified elements trimmed from the end
System::MemoryExtensions::TrimEnd(Span<T>&, const ReadOnlySpan<T>&) function
Trims specified elements from the end of a mutable typed span.
template<typename T> Span<T> System::MemoryExtensions::TrimEnd(Span<T> &span, const ReadOnlySpan<T> &trimElements)
Template parameters
Parameter | Description |
---|---|
T | The type of elements in the span |
Arguments
Parameter | Type | Description |
---|---|---|
span | Span<T>& | The mutable span to trim |
trimElements | const ReadOnlySpan<T>& | The elements to trim |
Return Value
A new span with the specified elements trimmed from the end
System::MemoryExtensions::TrimEnd(const ReadOnlySpan<char16_t>&) function
Trims whitespace characters from the end of a character span.
ReadOnlySpan<char16_t> System::MemoryExtensions::TrimEnd(const ReadOnlySpan<char16_t> &span)
Arguments
Parameter | Type | Description |
---|---|---|
span | const ReadOnlySpan<char16_t>& | The character span to trim |
Return Value
A new span with whitespace trimmed from the end
System::MemoryExtensions::TrimEnd(Span<char16_t>&) function
Trims whitespace characters from the end of a mutable character span.
Span<char16_t> System::MemoryExtensions::TrimEnd(Span<char16_t> &span)
Arguments
Parameter | Type | Description |
---|---|---|
span | Span<char16_t>& | The mutable character span to trim |
Return Value
A new span with whitespace trimmed from the end
System::MemoryExtensions::TrimEnd(const ReadOnlySpan<char16_t>&, char16_t) function
Trims specified character from the end of a character span.
ReadOnlySpan<char16_t> System::MemoryExtensions::TrimEnd(const ReadOnlySpan<char16_t> &span, char16_t trimchar)
Arguments
Parameter | Type | Description |
---|---|---|
span | const ReadOnlySpan<char16_t>& | The character span to trim |
trimchar | char16_t | The character to trim |
Return Value
A new span with the specified character trimmed from the end
System::MemoryExtensions::TrimEnd(Span<char16_t>&, char16_t) function
Trims specified character from the end of a mutable character span.
Span<char16_t> System::MemoryExtensions::TrimEnd(Span<char16_t> &span, char16_t trimchar)
Arguments
Parameter | Type | Description |
---|---|---|
span | Span<char16_t>& | The mutable character span to trim |
trimchar | char16_t | The character to trim |
Return Value
A new span with the specified character trimmed from the end
System::MemoryExtensions::TrimEnd(const ReadOnlySpan<char16_t>&, const ReadOnlySpan<char16_t>&) function
Trims specified characters from the end of a character span.
ReadOnlySpan<char16_t> System::MemoryExtensions::TrimEnd(const ReadOnlySpan<char16_t> &span, const ReadOnlySpan<char16_t> &trimChars)
Arguments
Parameter | Type | Description |
---|---|---|
span | const ReadOnlySpan<char16_t>& | The character span to trim |
trimChars | const ReadOnlySpan<char16_t>& | The characters to trim |
Return Value
A new span with the specified characters trimmed from the end
System::MemoryExtensions::TrimEnd(Span<char16_t>&, const ReadOnlySpan<char16_t>&) function
Trims specified characters from the end of a mutable character span.
Span<char16_t> System::MemoryExtensions::TrimEnd(Span<char16_t> &span, const ReadOnlySpan<char16_t> &trimchars)
Arguments
Parameter | Type | Description |
---|---|---|
span | Span<char16_t>& | The mutable character span to trim |
trimchars | const ReadOnlySpan<char16_t>& | The characters to trim |
Return Value
A new span with the specified characters trimmed from the end
See Also
- Class ReadOnlySpan
- Class Span
- Namespace System::MemoryExtensions
- Library Aspose.Slides