AngleSharp by Florian Rappl

<PackageReference Include="AngleSharp" Version="0.8.3" />

 BaseTokenizer

abstract class BaseTokenizer : IDisposable
Common methods and variables of all tokenizers.
protected readonly IEventAggregator _events

protected readonly StringBuilder _stringBuffer

protected readonly StringBuilder _textBuffer

public ushort Column { get; }

Gets the current column within the source code.

protected char Current { get; }

Gets the current character.

public int InsertionPoint { get; set; }

Gets or sets the insertion point.

public bool IsEnded { get; }

Gets the status of reading the source code, are we beyond the stream?

public ushort Line { get; }

Gets the current line within the source code.

public int Position { get; }

Gets the current position within the source code.

public BaseTokenizer(TextSource source, IEventAggregator events)

protected void Advance()

Advances one character in the source code.

protected void Advance(int n)

Advances n characters in the source code.

protected void Back()

Moves back one character in the source code.

protected void Back(int n)

Moves back n characters in the source code.

protected bool ContinuesWith(string s, bool ignoreCase = true)

Looks if the current character / next characters match a certain string.

public void Dispose()

Disposes all disposable objects.

Gets the current position.

protected char GetNext()

Gets the next character (by advancing and returning the current character).

protected char GetPrevious()

Gets the previous character (by rewinding and returning the current character).

public void ResetInsertionPoint()

Resets the insertion point to the end of the buffer.

protected char SkipSpaces()

Advances to the next non-space character.