/ropes-1.1.3/src/org/ahmadsoft/ropes/test/ |
H A D | PerformanceTest.java | 77 System.out.println("Read " + aChristmasCarol.length() + " bytes in " + PerformanceTest.time(x,y));
79 System.out.println();
80 System.out.println("**** DELETE PLAN TEST ****");
81 System.out.println();
92 System.out.println("Delete plan length: " + k);
100 stat(System.out, stats0, "ns", "[String]");
101 stat(System.out, stats1, "ns", "[StringBuffer]");
102 stat(System.out, stats2, "ns", "[Rope]");
106 System.out.println();
107 System.out 979 stat(PrintStream out, long[] stats, String unit, String prefix) argument [all...] |
H A D | RopeTest.java | 128 System.out.println(x1.reverse());
385 ByteOutputStream out = new ByteOutputStream();
387 ObjectOutputStream oos = new ObjectOutputStream(out);
390 ByteArrayInputStream in = new ByteArrayInputStream(out.getBytes());
|
/ropes-1.1.3/src/org/ahmadsoft/ropes/impl/ |
H A D | ConcatenationRope.java | 57 throw new IndexOutOfBoundsException("Rope index out of range: " + index);
95 System.out.println("Rope length is: " + rope.length() + " charAt is " + index);
141 throw new IndexOutOfBoundsException("Rope index out of range: " + start);
167 throw new IndexOutOfBoundsException("Rope index out of range: " + start);
192 public void write(final Writer out) throws IOException {
argument 193 this.left.write(out);
194 this.right.write(out);
198 public void write(final Writer out, final int offset, final int length) throws IOException {
argument 200 this.left.write(out, offset, length);
202 this.right.write(out, offse [all...] |
H A D | RopeUtilities.java | 189 * @param out
191 void visualize(final Rope r, final PrintStream out) {
argument 192 this.visualize(r, out, (byte) 0);
195 private void visualize(final Rope r, final PrintStream out, final int depth) {
argument 197 out.print(RopeUtilities.SPACES.substring(0,depth*2));
198 out.println("\"" + r + "\"");
201 out.print(RopeUtilities.SPACES.substring(0,depth*2));
202 out.println("substring");
203 this.visualize(((SubstringRope)r).getRope(), out, depth+1);
206 out [all...] |
H A D | SerializedRope.java | 80 public void writeExternal(final ObjectOutput out) throws IOException {
argument 83 out.writeUTF(this.rope.toString());
|
H A D | ReverseRope.java | 67 throw new IndexOutOfBoundsException("Rope index out of range: " + start);
99 throw new IndexOutOfBoundsException("Rope index out of range: " + start);
127 public void write(final Writer out) throws IOException {
argument 128 this.write(out, 0, this.length());
132 public void write(final Writer out, final int offset, final int length) throws IOException {
argument 134 throw new IndexOutOfBoundsException("Rope index out of bounds:" + (offset < 0 ? offset: offset + length));
136 out.write(this.charAt(j));
|
H A D | FlatCharSequenceRope.java | 62 throw new IndexOutOfBoundsException("Rope index out of range: " + start);
101 throw new IndexOutOfBoundsException("Rope index out of range: " + start);
142 public void write(final Writer out) throws IOException {
argument 143 this.write(out, 0, this.length());
147 public void write(final Writer out, final int offset, final int length) throws IOException {
argument 149 throw new IndexOutOfBoundsException("Rope index out of bounds:" + (offset < 0 ? offset: offset + length));
152 out.write(((String) this.sequence).substring(offset, offset+length));
156 out.write(this.sequence.charAt(j));
|
H A D | SubstringRope.java | 78 throw new IndexOutOfBoundsException("Rope index out of range: " + start);
116 throw new IndexOutOfBoundsException("Rope index out of range: " + start);
152 public void write(final Writer out) throws IOException {
argument 153 this.rope.write(out, this.offset, this.length);
157 public void write(final Writer out, final int offset, final int length) throws IOException {
argument 158 this.rope.write(out, this.offset + offset, this.length + length);
|
H A D | FlatCharArrayRope.java | 93 throw new IndexOutOfBoundsException("Rope index out of range: " + fromIndex);
148 throw new IndexOutOfBoundsException("Rope index out of range: " + start);
181 throw new IndexOutOfBoundsException("Rope index out of range: " + start);
223 public void write(final Writer out) throws IOException {
argument 224 this.write(out, 0, this.length());
228 public void write(final Writer out, final int offset, final int length) throws IOException {
argument 229 out.write(this.sequence, offset, length);
|
H A D | AbstractRope.java | 143 throw new IndexOutOfBoundsException("Rope index out of range: " + fromIndex);
209 throw new IndexOutOfBoundsException(dstOffset + " is out of insert range [" + 0 + ":" + this.length() + "]");
274 final StringWriter out = new StringWriter(this.length());
276 this.write(out);
277 out.close();
281 return out.toString();
|
/ropes-1.1.3/src/org/ahmadsoft/ropes/ |
H A D | Rope.java | 297 * @param out the writer object.
299 public void write(Writer out) throws IOException;
argument 303 * @param out the writer object.
307 public void write(Writer out, int offset, int length) throws IOException;
argument
|