C# Class AvalonStudio.TextEditor.Utils.RopeTextReader

TextReader implementation that reads text from a rope.
Inheritance: System.IO.TextReader
Show file Open project: VitalElement/AvalonStudio

Public Methods

Method Description
Peek ( ) : int
Read ( ) : int
Read ( char buffer, int index, int count ) : int
RopeTextReader ( Rope rope ) : System

Creates a new RopeTextReader. Internally, this method creates a Clone of the rope; so the text reader will always read through the old version of the rope if it is modified. Rope{T}.Clone()

Private Methods

Method Description
GoToLeftMostLeaf ( ) : void
GoToNextNode ( ) : void

Method Details

Peek() public method

public Peek ( ) : int
return int

Read() public method

public Read ( ) : int
return int

Read() public method

public Read ( char buffer, int index, int count ) : int
buffer char
index int
count int
return int

RopeTextReader() public method

Creates a new RopeTextReader. Internally, this method creates a Clone of the rope; so the text reader will always read through the old version of the rope if it is modified. Rope{T}.Clone()
public RopeTextReader ( Rope rope ) : System
rope Rope
return System