A token matcher is an object that can determine whether a string at a given offset matches some pattern. The matcher then returns a corresponding token or null if no match is found.
This function determines whether the string s, starting at the index startAt (inclusive), matches some pattern. The exact pattern is dependent on the implementation.