public class SwtCharBuffer extends FString
| Modifier and Type | Field and Description |
|---|---|
protected LineOffsets |
lineOffsets |
data, empty COPY_ON_WRITE, GAP_FLAG, info, MAX_GAP_SIZE, READ_ONLY_FLAG, SHARED_FLAG, SUBRANGE_FLAG, VERY_SIMPLE_FLAG noInts 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)
The index is in terms of code units.
|
void |
delete (int where,
int end) |
protected void |
gapReserve (int where,
int needed) |
void |
getChars (int start,
int end,
char[] dest,
int destStart)
Copy characters into a destination buffer.
|
void |
insert (int where,
java.lang.String str) |
int |
length ()
Get length of string, in code units (not characters).
|
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 () |
addAll, addAllStrings, alloc, append, append, append, append, appendCharacter, characterAt, consumePosRange, copy, createPos, createRelativePos, effectiveIndex, equals, get, getElementKind, getRaw, getTag, indexOf, insert, insert, insertRepeated, lastIndexOf, newInstance, nextIndex, prepend, prepend, prependCharacter, replace, replace, replace, set, setCharacterAt, setCharAt, setCharAtBuffer, setRaw, shift, size, substring, toCharArray, writeTo, writeTo clearBuffer, compareTo, compareTo, compareTo, copyBuffer, ensureBufferLength, equals, getBuffer, getBufferLength, getCharRaw, hashCode, openReader, openReader, setBuffer add, add, addPos, addSpace, asImmutable, checkCanWrite, doCopyOnWrite, fill, forEach, gapReserveGeneric, getGapEnd, getGapSize, getGapStart, getOffsetBits, getRowMajor, getSegment, getSegment, getSegmentReadOnly, getSizeBits, isAfterPos, isGapBuffer, isReadOnly, isSubRange, isVerySimple, readExternal, setGapBounds, setGapBounds, setInfoField, setReadOnly, toDataArray, writeExternal addAll, addAll, badRank, boundedHash, checkRank, clear, compare, compare, compare, consume, consume, consumeNext, contains, containsAll, copyPos, effectiveIndex, effectiveIndex, effectiveIndex, effectiveIndex, elements, endPos, equals, fill, fillPosRange, firstAttributePos, firstChildPos, firstChildPos, fromEndIndex, get, get, get, get, getAttribute, getAttributeLength, getBooleanRaw, getByteRaw, getContainingSequenceSize, getDoubleRaw, getFloatRaw, getIndexDifference, getInt, getInt, getInt, getInt, getInt, getIntRaw, getIterator, getIterator, getIteratorAtPos, getLongRaw, getLowBound, getNextKind, getNextTypeName, getNextTypeObject, getPosNext, getPosPrevious, getShortRaw, getSize, getSize, gotoAttributesStart, gotoChildrenStart, gotoParent, hasNext, hasPrevious, indexOf, isEmpty, iterator, lastIndexOf, listIterator, listIterator, nextIndex, nextMatching, nextPos, parentPos, previousPos, rank, releasePos, remove, remove, removeAll, removePos, removePosRange, retainAll, set, setAt, setPosNext, setPosPrevious, stableCompare, startPos, subList, subSequence, subSequencePos, toArray, toArray, toString, unsupported, unsupportedException clone, finalize, getClass, notify, notifyAll, wait, wait, waitchars, codePointsadd, add, addAll, addAll, clear, contains, containsAll, hashCode, indexOf, iterator, lastIndexOf, listIterator, listIterator, remove, remove, removeAll, replaceAll, retainAll, sort, spliterator, subList, toArray, toArrayparallelStream, removeIf, streamforEachconsume boundedHash effectiveIndex, effectiveIndex, effectiveIndex, effectiveIndex, get, get, get, get, getBooleanRaw, getByteRaw, getDoubleRaw, getFloatRaw, getInt, getInt, getInt, getInt, getInt, getIntRaw, getLongRaw, getLowBound, getShortRaw, getSize, getSize, isEmpty, rank, set protected LineOffsets lineOffsets
public SwtCharBuffer(int initialSize)
public java.lang.CharSequence subSequence(int start, int end)
public int pos2offset(int pos)
public int offset2pos(int offset)
protected void gapReserve(int where, int needed)
gapReserve in class SimpleVector<Char>protected void shiftGap(int newGapStart)
public int length()
CharSeq length in interface CharSeq length in interface java.lang.CharSequencelength in class AbstractCharVector<Char>CharSequence.length()public char charAt(int index)
CharSeq charAt in interface CharSeq charAt in interface java.lang.CharSequencecharAt in class AbstractCharVector<Char>CharSequence.charAt(int)public void insert(int where, java.lang.String str)
where - str - public void delete(int where, int end)
delete in class SimpleVector<Char>public void getChars(int start, int end, char[] dest, int destStart)
AbstractCharVector getChars in interface CharSeq getChars in class AbstractCharVector<Char>start - source start position, in 16-bit code units.end - source end position, in 16-bit code units.dest - destinationdestStart - index (in code units) in dst arraypublic java.lang.String toString()
protected void show()
protected static java.lang.String printable(java.lang.String s)