Tokenize(ReadOnlySpan, Boolean) Method

Definition

Namespace XenoAtom.Ansi
Assembly XenoAtom.Ansi.dll

Tokenizes a chunk and returns a new list of tokens.

public List<AnsiToken> Tokenize(ReadOnlySpan<char> chunk, bool isFinalChunk = true)

Parameters

chunk
ReadOnlySpan<Char>

The input chunk.

isFinalChunk
Boolean

true to flush any unterminated sequence as UnknownEscapeToken; false to keep the internal state for the next chunk.

Returns