gnu.jemacs.swt

Class SwtCharBuffer

public class SwtCharBuffer extends GapVector implements CharSequence

TODO Explain that this is all about.
Field Summary
protected FStringchars
protected LineOffsetslineOffsets
Constructor Summary
SwtCharBuffer(int initialSize)
Method Summary
charcharAt(int index)
voiddelete(int where, int count)
protected voidgapReserve(int size)
voidgetChars(int start, int end, char[] dest, int destStart)
voidinsert(int where, String str)
intlength()
intoffset2pos(int offset)
intpos2offset(int pos)
protected static Stringprintable(String s)
protected voidshiftGap(int newGapStart)
protected voidshow()
CharSequencesubSequence(int start, int end)
StringtoString()

Field Detail

chars

protected FString chars

lineOffsets

protected LineOffsets lineOffsets

Constructor Detail

SwtCharBuffer

public SwtCharBuffer(int initialSize)

Method Detail

charAt

public char charAt(int index)

See Also: java.lang.CharSequence#charAt(int)

delete

public void delete(int where, int count)

Parameters: where count

gapReserve

protected void gapReserve(int size)

See Also: GapVector

getChars

public void getChars(int start, int end, char[] dest, int destStart)

insert

public void insert(int where, String str)

Parameters: where str

length

public int length()

See Also: java.lang.CharSequence#length()

offset2pos

public int offset2pos(int offset)

pos2offset

public int pos2offset(int pos)

printable

protected static String printable(String s)

shiftGap

protected void shiftGap(int newGapStart)

See Also: GapVector

show

protected void show()

subSequence

public CharSequence subSequence(int start, int end)

toString

public String toString()