public GetChar ( int index, |
||
index | int | |
textBuffer | ||
return | char |
public char GetChar(int index, TextBuffer textBuffer)
{
return textBuffer.GetChar(startAt + index);
}
public string GetString(TextBuffer textBuffer)
public bool SameTextContent(WordSpan another, TextBuffer textBuffer) { if (another.len == this.len) { for (int i = another.len - 1; i >= 0; --i) { if (this.GetChar(i, textBuffer) != another.GetChar(i, textBuffer)) { return(false); } } return(true); } return(false); //return this.startAt == another.startAt && this.len == another.len; }