IndexOf()
Contents
[
Hide
]System::MemoryExtensions::IndexOf(const ReadOnlySpan<char16_t>&, const ReadOnlySpan<char16_t>&, StringComparison) function
Finds the index of a ReadOnlySpan<char16_t> value in a ReadOnlySpan<char16_t> with StringComparison.
int32_t System::MemoryExtensions::IndexOf(const ReadOnlySpan<char16_t> &span, const ReadOnlySpan<char16_t> &value, StringComparison comparisonType)
Arguments
Parameter | Type | Description |
---|---|---|
span | const ReadOnlySpan<char16_t>& | The span to search in |
value | const ReadOnlySpan<char16_t>& | The value to search for |
comparisonType | StringComparison | The string comparison type to use |
Return Value
The zero-based index of the first occurrence, or -1 if not found
System::MemoryExtensions::IndexOf(const ReadOnlySpan<T>&, const ReadOnlySpan<T>&) function
Finds the index of a ReadOnlySpan
template<typename T> int32_t System::MemoryExtensions::IndexOf(const ReadOnlySpan<T> &span, const ReadOnlySpan<T> &value)
Template parameters
Parameter | Description |
---|---|
T | The type of elements in the spans |
Arguments
Parameter | Type | Description |
---|---|---|
span | const ReadOnlySpan<T>& | The span to search in |
value | const ReadOnlySpan<T>& | The span to search for |
Return Value
The zero-based index of the first occurrence, or -1 if not found
System::MemoryExtensions::IndexOf(const ReadOnlySpan<T>&, const T&) function
Finds the index of a single value in a ReadOnlySpan
template<typename T> int32_t System::MemoryExtensions::IndexOf(const ReadOnlySpan<T> &span, const T &value)
Template parameters
Parameter | Description |
---|---|
T | The type of elements in the span |
Arguments
Parameter | Type | Description |
---|---|---|
span | const ReadOnlySpan<T>& | The span to search in |
value | const T& | The value to search for |
Return Value
The zero-based index of the first occurrence, or -1 if not found
System::MemoryExtensions::IndexOf(const Span<T>&, const ReadOnlySpan<T>&) function
Finds the index of a ReadOnlySpan
template<typename T> int32_t System::MemoryExtensions::IndexOf(const Span<T> &span, const ReadOnlySpan<T> &value)
Template parameters
Parameter | Description |
---|---|
T | The type of elements in the spans |
Arguments
Parameter | Type | Description |
---|---|---|
span | const Span<T>& | The span to search in |
value | const ReadOnlySpan<T>& | The span to search for |
Return Value
The zero-based index of the first occurrence, or -1 if not found
System::MemoryExtensions::IndexOf(const Span<T>&, const T&) function
Finds the index of a single value in a Span
template<typename T> int32_t System::MemoryExtensions::IndexOf(const Span<T> &span, const T &value)
Template parameters
Parameter | Description |
---|---|
T | The type of elements in the span |
Arguments
Parameter | Type | Description |
---|---|---|
span | const Span<T>& | The span to search in |
value | const T& | The value to search for |
Return Value
The zero-based index of the first occurrence, or -1 if not found
See Also
- Enum StringComparison
- Class ReadOnlySpan
- Class Span
- Namespace System::MemoryExtensions
- Library Aspose.Slides