Lines Matching refs:length
46 this(sequence, 0, sequence.length);
53 * @param length the length of the array.
55 public FlatCharArrayRope(final char[] sequence, final int offset, final int length) {
56 if (length > sequence.length)
57 throw new IllegalArgumentException("Length must be less than " + sequence.length);
58 this.sequence = new char[length];
59 System.arraycopy(sequence, offset, this.sequence, 0, length);
79 for (int j=0; j<this.sequence.length; ++j)
92 if (fromIndex < 0 || fromIndex >= this.length())
94 for (int j=fromIndex; j<this.sequence.length; ++j)
111 final int length = sequence.length();
112 if (length == 0)
114 if (length == 1)
118 Arrays.fill(bcs, length);
121 for (int j=0; j<length-1; ++j) {
124 bcs[l] = Math.min(length - j - 1, bcs[l]);
128 for (int j=fromIndex+length-1; j<this.length();) {
129 int x=j, y=length-1;
147 if (start < 0 || start > this.length())
153 return this.current < FlatCharArrayRope.this.length();
169 public int length() {
170 return this.sequence.length;
180 if (start < 0 || start > this.length())
183 int current = FlatCharArrayRope.this.length() - start;
203 if (start == 0 && end == this.length())
218 public String toString(final int offset, final int length) {
219 return new String(this.sequence, offset, length);
224 this.write(out, 0, this.length());
228 public void write(final Writer out, final int offset, final int length) throws IOException {
229 out.write(this.sequence, offset, length);