44
45
void Insert (int offset, string value);
45
46
void Remove (int offset, int count);
47
void Remove (ISegment segment);
46
49
void Replace (int offset, int count, string value);
48
51
string GetTextAt (int offset, int count);
49
52
string GetTextAt (ISegment segment);
50
53
char GetCharAt (int offset);
53
public abstract class AbstractBuffer : IBuffer
55
public abstract int Length {
60
public abstract string Text {
65
public abstract void Replace (int offset, int count, string value);
66
public abstract string GetTextAt (int offset, int count);
67
public abstract char GetCharAt (int offset);
69
public void Insert (int offset, string text)
71
Replace (offset, 0, text);
74
public void Remove (int offset, int count)
76
Replace (offset, count, null);
79
public string GetTextAt (ISegment segment)
81
return GetTextAt (segment.Offset, segment.Length);
55
IEnumerable<int> SearchForward (string pattern, int startIndex);
56
IEnumerable<int> SearchForwardIgnoreCase (string pattern, int startIndex);
58
IEnumerable<int> SearchBackward (string pattern, int startIndex);
59
IEnumerable<int> SearchBackwardIgnoreCase (string pattern, int startIndex);