public indexOf(value as Char, start as Long = 0) as Long
Finds the first occurrence of a Unicode character.
| Parameter | Description |
|---|---|
value | Character to find, including supplementary scalars or U+0000. |
start | First scalar index to search; negative values clamp to zero. |
Scalar index of the first occurrence, or -1 if absent.
assert "banana".indexOf('a', 2) == 3