IndexOf
Searches the literal text for the search char. Does not search in nested placeholders.
Read time 1 minuteLast updated 12 days ago
Definition
- Type: Method
- Namespace: Unity.SmartStrings.Core.Parsing
- Assembly: UnityEngine.SmartStringsModule
IndexOf(char)
Searches the literal text for the search char. Does not search in nested placeholders.
public int IndexOf(char search)
Parameters
Character to locate.
Returns
Type | Description |
|---|---|
| int | The zero-based index of the first occurrence of the character in the literal text, or -1 if the character is not found. |
IndexOf(char, int)
Searches the literal text for the search char. Does not search in nested placeholders.
public int IndexOf(char search, int start)
Parameters
Returns
Type | Description |
|---|---|
| int | The zero-based index of the first occurrence of the character in the literal text, or -1 if the character is not found. |