advanceIf

Advances the position if the given text is next in the stream. Otherwise, the offset is not updated.

Return

True if the given text was found and the offset was advanced; otherwise, false.

Parameters

text

The text to look for at the current offset.