Class SourceTextReader
Namespace: Aspose.Html.Toolkit.Markdown.Syntax.Text
Assembly: Aspose.HTML.dll (25.2.0)
Represents the SourceTextReader.
[ComVisible(true)]
public class SourceTextReader : IDisposable
Inheritance
Implements
Inherited Members
object.GetType(), object.MemberwiseClone(), object.ToString(), object.Equals(object?), object.Equals(object?, object?), object.ReferenceEquals(object?, object?), object.GetHashCode()
Constructors
SourceTextReader(SourceText)
Create the SourceTextReader
public SourceTextReader(SourceText source)
Parameters
source
SourceText
The source.
Properties
Position
Get the position.
public int Position { get; }
Property Value
Source
Get rhe source.
public SourceText Source { get; }
Property Value
Methods
Advance()
Increment the position.
public virtual void Advance()
Advance(int)
The increment position on N
public virtual void Advance(int n)
Parameters
n
int
The number.
Back()
The decrement position.
public virtual void Back()
Dispose()
Defines the Dispose interface.
public void Dispose()
GetLineReader()
Get the SourceTextReader
public SourceTextReader GetLineReader()
Returns
The SourceTextReader.
GetLineReader(bool)
Get the SourceTextReader
public SourceTextReader GetLineReader(bool autoSync)
Parameters
autoSync
bool
The autosync.
Returns
The SourceTextReader.
Next()
Get the next character and advance position.
public char Next()
Returns
The character value.
Peek()
Get the character on position or Character.Null
public char Peek()
Returns
the character on position or Character.Null
Peek(int)
Get the char.
public char Peek(int delta)
Parameters
delta
int
The delta.
Returns
The char at the positon + delta or Character.Null
Reset(int)
Reset position to index
public virtual void Reset(int index)
Parameters
index
int
The index.