public class CharBuffer extends StableVector implements CharSeq, java.io.Serializable
free, FREE_POSITION, positions
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
Modifier | Constructor and Description |
---|---|
protected |
CharBuffer() |
|
CharBuffer(FString str) |
|
CharBuffer(int initialSize) |
Modifier and Type | Method and Description |
---|---|
char |
charAt(int index) |
void |
consume(int start,
int count,
Consumer dest) |
void |
delete(int where,
int count) |
void |
dump() |
void |
fill(char value)
Set all the elements to a given character.
|
void |
fill(int fromIndex,
int toIndex,
char value) |
char[] |
getArray() |
void |
getChars(int srcBegin,
int srcEnd,
char[] dst,
int dstBegin)
Copy characters into a destination buffer.
|
int |
indexOf(int ch,
int fromChar) |
void |
insert(int where,
java.lang.String str,
boolean beforeMarkers) |
int |
lastIndexOf(int ch,
int fromChar) |
int |
length()
Get length of string, in characters.
|
void |
setCharAt(int index,
char value) |
java.lang.CharSequence |
subSequence(int start,
int end) |
java.lang.String |
substring(int start,
int end) |
java.lang.String |
toString() |
void |
writeTo(java.lang.Appendable dest) |
void |
writeTo(int start,
int count,
java.lang.Appendable dest)
Append a specified subsequence to an
Appendable . |
void |
writeTo(int start,
int count,
java.io.Writer dest) |
void |
writeTo(java.io.Writer dest) |
addPos, adjustPositions, allocPositionIndex, chainFreelist, consumePosRange, copyPos, createPos, endPos, fillPosRange, gapReserve, hasNext, isAfterPos, nextIndex, nextPos, releasePos, removePosRange, shiftGap, startPos, unchainFreelist
add, fill, gapReserve, get, getNextKind, getSegment, set, size
add, addAll, addAll, clear, compare, compare, compare, consume, consumeNext, contains, containsAll, createRelativePos, elements, 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, parentPos, previousPos, rank, remove, remove, removeAll, removePos, retainAll, set, setPosNext, setPosPrevious, stableCompare, subList, subSequence, subSequencePos, toArray, toArray, toString, unsupported, unsupportedException
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
add, add, addAll, addAll, clear, contains, containsAll, equals, hashCode, indexOf, iterator, lastIndexOf, listIterator, listIterator, remove, remove, removeAll, replaceAll, retainAll, sort, spliterator, subList, toArray, toArray
consume
public CharBuffer(FString str)
public CharBuffer(int initialSize)
protected CharBuffer()
public int length()
CharSeq
public char charAt(int index)
public int indexOf(int ch, int fromChar)
public int lastIndexOf(int ch, int fromChar)
public void getChars(int srcBegin, int srcEnd, char[] dst, int dstBegin)
public java.lang.String substring(int start, int end)
public java.lang.CharSequence subSequence(int start, int end)
subSequence
in interface CharSeq
subSequence
in interface java.lang.CharSequence
public void fill(int fromIndex, int toIndex, char value)
public final void fill(char value)
public char[] getArray()
public void delete(int where, int count)
public void insert(int where, java.lang.String str, boolean beforeMarkers)
public void consume(int start, int count, Consumer dest)
public java.lang.String toString()
toString
in interface CharSeq
toString
in interface java.lang.CharSequence
toString
in class AbstractSequence
public void writeTo(int start, int count, java.lang.Appendable dest) throws java.io.IOException
CharSeq
Appendable
.
An allowable implementation is:
dest.append(this, start, start+count)
.
Hence implementors of Appendable
should avoid calling
writeTo
- though they can call getChars
.public void writeTo(java.lang.Appendable dest) throws java.io.IOException
public void writeTo(int start, int count, java.io.Writer dest) throws java.io.IOException
java.io.IOException
public void writeTo(java.io.Writer dest) throws java.io.IOException
java.io.IOException
public void dump()