Product Site

5.4.11.38. startsWith

Returns .true if the characters of the other match the characters at the start of the target buffer. Returns .false if the characters are not a match, or if other is the null string.

The startsWith method is useful for efficient string parsing as it does not require new string objects be extracted from the target buffer.

See also methods caselessStartsWith, endsWith, and match.