klyn.code.CodeTokenizer.startsWithIgnoreCaseAt
method
public static startsWithIgnoreCaseAt(text as String, token as String, start as Long) as Boolean
Description

Zero-allocation ASCII case-insensitive prefix check at start inside text.

Parameters
ParameterDescription
textSource text to inspect.
tokenPrefix to match case-insensitively.
startZero-based index in text.
Returns

true when text matches token at start ignoring ASCII case.

Example
import klyn.code

assert CodeTokenizer.startsWithIgnoreCaseAt("REM comment", "rem", 0)