Determines if a prefix of a string (represented as a char[]) matches a given pattern, starting from a given offset into the string. If a prefix of the string matches the pattern, a MatchResult instance representing the match is made accesible via {@link #getMatch()}.
This method is useful for certain common token identification tasks that are made more difficult without this functionality.
@param input The char[] to test for a prefix match.
@param pattern The Pattern to be matched.
@param offset The offset at which to start searching for the prefix.
@return True if input matches pattern, false otherwise.