Class SourceTextReader

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

objectSourceTextReader

Implements

IDisposable

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

int

Source

Get rhe source.

public SourceText Source { get; }

Property Value

SourceText

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

SourceTextReader

The SourceTextReader.

GetLineReader(bool)

Get the SourceTextReader

public SourceTextReader GetLineReader(bool autoSync)

Parameters

autoSync bool

The autosync.

Returns

SourceTextReader

The SourceTextReader.

Next()

Get the next character and advance position.

public char Next()

Returns

char

The character value.

Peek()

Get the character on position or Character.Null

public char Peek()

Returns

char

the character on position or Character.Null

Peek(int)

Get the char.

public char Peek(int delta)

Parameters

delta int

The delta.

Returns

char

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.