Scanner

constructor(source: CharSequence, limit: Int = source.length, index: Int = 0)

Parameters

source

the text to scan

limit

index just past the last character the scanner may read

index

index of the character the scanner points at