public native substring(start as Int, length as Int = -1) as String throws IndexException
Extracts a substring.
| Parameter | Description |
|---|---|
start | Start index (negative values are relative to end). |
length | Number of characters (default: until end). |
Extracted substring.
assert "café".substring(1, 2) == "af"