Lines Matching refs:length

64      * size specified.  If the length is < 1, a size of 1 is used.
78 * Returns the length of the content.
80 * @return the length >= 1
81 * @see AbstractDocument.Content#length
83 public int length() {
90 * @param where the starting position >= 0 && < length()
101 replace(where, 0, chars, 0, chars.length);
103 updateMarksForInsert(where, str.length());
105 return new InsertUndo(where, str.length());
109 * Removes part of the content. where + nitems must be < length().
132 * Retrieves a portion of the content. where + len must be <= length().
135 * @param len the length to retrieve >= 0
148 * Retrieves a portion of the content. where + len must be <= length()
187 * @param length number of characters to remove
193 void replace(int offset, int length,
195 int delta = replLength - length;
196 int src = offset + length;
199 if ((count + delta) >= data.length) {
201 int newLength = Math.max(2*data.length, count + delta);
221 synchronized void updateMarksForInsert(int offset, int length) {
236 mark.offset += length;
241 synchronized void updateMarksForRemove(int offset, int length) {
250 } else if (mark.offset >= (offset + length)) {
251 mark.offset -= length;
261 * <code>offset</code> to <code>offset</code> + <code>length</code>.
270 * @param length the length >= 0
274 int length) {
276 int end = offset + length;
392 protected InsertUndo(int offset, int length) {
395 this.length = length;
404 posRefs = getPositionsInRange(null, offset, length);
405 string = getString(offset, length);
406 remove(offset, length);
433 protected int length;
451 this.length = string.length();
453 posRefs = getPositionsInRange(null, offset, length);
477 string = getString(offset, length);
480 posRefs = getPositionsInRange(null, offset, length);
481 remove(offset, length);
491 protected int length;