public class SwtCharBuffer extends GapVector implements java.lang.CharSequence
Modifier and Type | Field and Description |
---|---|
protected FString |
chars |
protected LineOffsets |
lineOffsets |
ATTRIBUTE_VALUE, BOOLEAN_VALUE, CDATA_VALUE, CHAR_VALUE, COMMENT_VALUE, DOCUMENT_VALUE, DOUBLE_VALUE, ELEMENT_VALUE, EOF_VALUE, eofValue, FLOAT_VALUE, INT_S16_VALUE, INT_S32_VALUE, INT_S64_VALUE, INT_S8_VALUE, INT_U16_VALUE, INT_U32_VALUE, INT_U64_VALUE, INT_U8_VALUE, OBJECT_VALUE, PRIM_VALUE, PROCESSING_INSTRUCTION_VALUE, TEXT_BYTE_VALUE
Constructor and Description |
---|
SwtCharBuffer(int initialSize) |
Modifier and Type | Method and Description |
---|---|
char |
charAt(int index) |
void |
delete(int where,
int count) |
protected void |
gapReserve(int where,
int needed)
Adjust gap to 'where', and make sure it is least `needed'
elements long.
|
void |
getChars(int start,
int end,
char[] dest,
int destStart) |
void |
insert(int where,
java.lang.String str) |
int |
length() |
int |
offset2pos(int offset) |
int |
pos2offset(int pos) |
protected static java.lang.String |
printable(java.lang.String s) |
protected void |
shiftGap(int newGapStart) |
protected void |
show() |
java.lang.CharSequence |
subSequence(int start,
int end) |
java.lang.String |
toString() |
add, addPos, consumePosRange, createPos, fill, fillPosRange, gapReserve, get, getNextKind, getSegment, hasNext, isAfterPos, nextIndex, removePosRange, set, size
add, addAll, addAll, clear, compare, compare, compare, consume, consume, consumeNext, contains, containsAll, copyPos, createRelativePos, elements, endPos, equals, equals, fill, firstAttributePos, firstChildPos, firstChildPos, fromEndIndex, get, getAttribute, getAttributeLength, getContainingSequenceSize, getEffectiveIndex, getIndexDifference, getIterator, getIterator, getIteratorAtPos, getLowBound, getNextTypeName, getNextTypeObject, getPosNext, getPosPrevious, getSize, gotoAttributesStart, gotoChildrenStart, gotoParent, hashCode, hasPrevious, indexOf, isEmpty, iterator, lastIndexOf, listIterator, listIterator, nextIndex, nextMatching, nextPos, parentPos, previousPos, rank, releasePos, remove, remove, removeAll, removePos, retainAll, set, setPosNext, setPosPrevious, stableCompare, startPos, subList, subSequence, subSequencePos, toArray, toArray, toString, unsupported, unsupportedException
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
add, addAll, addAll, clear, contains, containsAll, equals, hashCode, indexOf, iterator, lastIndexOf, listIterator, listIterator, remove, remove, removeAll, retainAll, subList, toArray, toArray
consume
protected FString chars
protected LineOffsets lineOffsets
public java.lang.CharSequence subSequence(int start, int end)
subSequence
in interface java.lang.CharSequence
public int pos2offset(int pos)
public int offset2pos(int offset)
protected void gapReserve(int where, int needed)
GapVector
gapReserve
in class GapVector
GapVector.gapReserve(int)
protected void shiftGap(int newGapStart)
shiftGap
in class GapVector
GapVector.shiftGap(int)
public int length()
length
in interface java.lang.CharSequence
CharSequence.length()
public char charAt(int index)
charAt
in interface java.lang.CharSequence
CharSequence.charAt(int)
public void insert(int where, java.lang.String str)
where
- str
- public void delete(int where, int count)
where
- count
- public void getChars(int start, int end, char[] dest, int destStart)
public java.lang.String toString()
toString
in interface java.lang.CharSequence
toString
in class AbstractSequence
protected void show()
protected static java.lang.String printable(java.lang.String s)