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
Current
Gets the current character.
public char Current { get; }
Property Value
Index
Gets the current index.
public int Index { get; }
Property Value
IsDone
Gets if the content has been fully scanned.
public bool IsDone { get; }
Property Value
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.