| Prev Class | Next Class | Frames | No Frames |
| Summary: Nested | Field | Method | Constr | Detail: Nested | Field | Method | Constr |
java.lang.Objectgnu.lists.AbstractSequencegnu.lists.GapVectorgnu.lists.StableVectorgnu.lists.CharBuffergnu.jemacs.swing.BufferContentField Summary |
Fields inherited from class gnu.lists.StableVector | |
FREE_POSITION, free, positions | |
Fields inherited from interface gnu.lists.Sequence | |
ATTRIBUTE_VALUE, BOOLEAN_VALUE, CDATA_VALUE, CHAR_VALUE, COMMENT_VALUE, DOCUMENT_VALUE, DOUBLE_VALUE, EOF_VALUE, FLOAT_VALUE, GROUP_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, eofValue | |
Constructor Summary | |
| |
Method Summary | |
javax.swing.text.Position |
|
void |
|
protected int |
|
void |
|
String |
|
static int |
|
UndoableEdit |
|
UndoableEdit |
|
static int |
|
UndoableEdit |
|
long |
|
Methods inherited from class gnu.lists.CharBuffer | |
charAt, consume, delete, fill, fill, getArray, getChars, insert, length, setCharAt, subSequence, toString, writeTo, writeTo | |
Methods inherited from class gnu.lists.StableVector | |
addPos, adjustPositions, allocPositionIndex, chainFreelist, consumePosRange, copyPos, createPos, endPos, fillPosRange, gapReserve, hasNext, isAfterPos, nextIndex, nextPos, releasePos, removePosRange, shiftGap, startPos, unchainFreelist | |
Methods inherited from class gnu.lists.GapVector | |
add, addPos, consumePosRange, createPos, fill, fillPosRange, gapReserve, gapReserve, get, getNextKind, hasNext, isAfterPos, nextIndex, removePosRange, set, shiftGap, size | |
public javax.swing.text.Position createPosition(int offset)
throws BadLocationExceptionpublic void dump()
protected int getChars(int where,
int len)
throws BadLocationExceptionpublic void getChars(int where,
int len,
Segment txt)
throws BadLocationExceptionpublic String getString(int where,
int len)
throws BadLocationExceptionpublic static int indexOf(char[] buffer,
int start,
int limit,
char ch)public UndoableEdit insertString(int where,
String str)
throws BadLocationExceptionpublic UndoableEdit insertString(int where,
String str,
boolean beforeMarkers)
throws BadLocationExceptionpublic static int lastIndexOf(char[] buffer,
int start,
int limit,
char ch)Search for the last occurrence of a character in buffer[limit..start].
public UndoableEdit remove(int where,
int nitems)
throws BadLocationExceptionpublic final long scan(char target,
int start,
int end,
int count,
boolean allowQuit)Search in BUF for COUNT instances of the character TARGET between START and END. If COUNT is positive, search forwards; END must be >= START. If COUNT is negative, search backwards for the -COUNTth instance; END must be <= START. If COUNT is zero, do anything you please; run rogue, for all I care. If we find COUNT instances, SHORTAGE is zero, and return the position after the COUNTth match. Note that for reverse motion this is not the same as the usual convention for Emacs motion commands. If we don't find COUNT instances before reaching END, set SHORTAGE to the number of TARGETs left unfound, and return (shortage<<32|END).
- Returns:
- (SHORTAGE<<32|POS)