XmlIncrementalLexer.startsWithAt

bool startsWithAt(string needle, size_t fromReadPos) const @safe pure nothrow

Returns true if at least needle.length unread bytes starting at the given offset match needle.

Parameters

needleString to match against.
fromReadPosOffset relative to the current read position (0 = current byte).

Returns

true if needle matches at the specified position and enough data is available.