TrimStart()
System::MemoryExtensions::TrimStart(const ReadOnlySpan<T>&, const T&) function
Trims specified element from the start of a typed span.
template<typename T> ReadOnlySpan<T> System::MemoryExtensions::TrimStart(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 start
System::MemoryExtensions::TrimStart(Span<T>&, const T&) function
Trims specified element from the start of a mutable typed span.
template<typename T> Span<T> System::MemoryExtensions::TrimStart(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 start
System::MemoryExtensions::TrimStart(const ReadOnlySpan<T>&, const ReadOnlySpan<T>&) function
Trims specified elements from the start of a typed span.
template<typename T> ReadOnlySpan<T> System::MemoryExtensions::TrimStart(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 start
System::MemoryExtensions::TrimStart(Span<T>&, const ReadOnlySpan<T>&) function
Trims specified elements from the start of a mutable typed span.
template<typename T> Span<T> System::MemoryExtensions::TrimStart(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 start
System::MemoryExtensions::TrimStart(const ReadOnlySpan<char16_t>&) function
Trims whitespace characters from the start of a character span.
ReadOnlySpan<char16_t> System::MemoryExtensions::TrimStart(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 start
System::MemoryExtensions::TrimStart(Span<char16_t>&) function
Trims whitespace characters from the start of a mutable character span.
Span<char16_t> System::MemoryExtensions::TrimStart(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 start
System::MemoryExtensions::TrimStart(const ReadOnlySpan<char16_t>&, char16_t) function
Trims specified character from the start of a character span.
ReadOnlySpan<char16_t> System::MemoryExtensions::TrimStart(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 start
System::MemoryExtensions::TrimStart(Span<char16_t>&, char16_t) function
Trims specified character from the start of a mutable character span.
Span<char16_t> System::MemoryExtensions::TrimStart(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 start
System::MemoryExtensions::TrimStart(const ReadOnlySpan<char16_t>&, const ReadOnlySpan<char16_t>&) function
Trims specified characters from the start of a character span.
ReadOnlySpan<char16_t> System::MemoryExtensions::TrimStart(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 start
System::MemoryExtensions::TrimStart(Span<char16_t>&, const ReadOnlySpan<char16_t>&) function
Trims specified characters from the start of a mutable character span.
Span<char16_t> System::MemoryExtensions::TrimStart(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 start
See Also
- Class ReadOnlySpan
- Class Span
- Namespace System::MemoryExtensions
- Library Aspose.Slides