public lastIndexOf(value as Char, start as Long = -1) as Long
Finds the last occurrence of a Unicode character.
| Parameter | Description |
|---|---|
value | Character to find, including supplementary scalars or U+0000. |
start | Last scalar index to search; negative values search from the end. |
Scalar index of the last occurrence, or -1 if absent.
assert "banana".lastIndexOf('a') == 5