IndexOf
Searches the literal text for the search char. Does not search in nested placeholders.
阅读时间1 分钟最后更新于 1 个月前
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. |