Lines Matching refs:buffer
26 public final StringBuilder buffer = new StringBuilder();
32 that.buffer.append (this.toString());
46 return buffer.length();
50 if (cursor == buffer.length()) {
53 return buffer.charAt(cursor);
62 return buffer.charAt(cursor - 1);
66 * Write the specific character into the buffer, setting the cursor position
73 buffer.insert(cursor++, c);
74 if (isOverTyping() && cursor < buffer.length()) {
75 buffer.deleteCharAt(cursor);
80 * Insert the specified chars into the buffer, setting the cursor to the end of the insertion point.
85 if (buffer.length() == 0) {
86 buffer.append(str);
89 buffer.insert(cursor, str);
94 if (isOverTyping() && cursor < buffer.length()) {
95 buffer.delete(cursor, (cursor + str.length()));
100 if (buffer.length() == 0) {
104 buffer.delete(0, buffer.length());
114 return buffer.substring(0, cursor);
119 return buffer.toString();