public static startsWithAt(text as String, token as String, start as Long) as Boolean
Zero-allocation substring prefix check at start inside text.
| Parameter | Description |
|---|---|
text | Source text to inspect. |
token | Prefix to match. |
start | Zero-based index in text. |
true when text starts with token at start.
import klyn.code
assert CodeTokenizer.startsWithAt("public class", "class", 7)