IndexOf
Returns the index of the first occurence of another StringView within this one.
Read time 1 minuteLast updated 6 days ago
Definition
- Type: Method
- Namespace: UnityEditor.Search
- Assembly: UnityEditor
IndexOf(StringView, StringComparison)
Returns the index of the first occurence of another StringView within this one.
public int IndexOf(StringView other, StringComparison sc = StringComparison.Ordinal)
Parameters
Returns
Type | Description |
|---|---|
| int | The first index where the StringView is found, otherwise -1. |
IndexOf(string, StringComparison)
Returns the index of the first occurence of another StringView within this one.
public int IndexOf(string other, StringComparison sc = StringComparison.Ordinal)
Parameters
Returns
Type | Description |
|---|---|
| int | The first index where the StringView is found, otherwise -1. |
IndexOf(char, StringComparison)
Returns the index of the first occurence of another StringView within this one.
public int IndexOf(char other, StringComparison sc = StringComparison.Ordinal)
Parameters
Returns
Type | Description |
|---|---|
| int | The first index where the StringView is found, otherwise -1. |