Table of Contents

Class StringSource

Namespace
AngleSharp.Text
Assembly
AngleSharp.dll

A string abstraction for micro parsers.

public sealed class StringSource
Inheritance
StringSource
Inherited Members
Extension Methods

Constructors

StringSource(string)

Creates a new string source from the given content.

public StringSource(string content)

Parameters

content string

Properties

Content

Gets the underlying content.

public string Content { get; }

Property Value

string

Current

Gets the current character.

public char Current { get; }

Property Value

char

Index

Gets the current index.

public int Index { get; }

Property Value

int

IsDone

Gets if the content has been fully scanned.

public bool IsDone { get; }

Property Value

bool

Methods

Back()

Goes back by one character and returns the character.

public char Back()

Returns

char

The previous character.

Next()

Advances by one character and returns the character.

public char Next()

Returns

char

The next character.