/ropes-1.2.5/src/org/ahmadsoft/ropes/impl/ |
H A D | ReverseRope.java | 53 public char charAt(final int index) {
method in class:ReverseRope 54 return this.rope.charAt(this.length() - index - 1);
75 return ReverseRope.this.charAt(this.current++);
107 return ReverseRope.this.charAt(--this.current);
134 out.write(this.charAt(j));
|
H A D | FlatCharSequenceRope.java | 50 public char charAt(final int index) {
method in class:FlatCharSequenceRope 51 return this.sequence.charAt(index);
72 return FlatCharSequenceRope.this.sequence.charAt(this.current++);
111 return FlatCharSequenceRope.this.sequence.charAt(--this.current);
156 out.write(this.sequence.charAt(j));
|
H A D | RepeatedCharacterSequence.java | 44 public char charAt(int index) {
method in class:RepeatedCharacterSequence
|
H A D | ConcatenationRope.java | 55 public char charAt(final int index) {
method in class:ConcatenationRope 59 return (index < this.left.length() ? this.left.charAt(index): this.right.charAt(index - this.left.length()));
85 public char charAt(final int index) {
92 System.out.println("Rope length is: " + rope.length() + " charAt is " + index);
101 return rope.charAt(index);
|
H A D | FlatCharArrayRope.java | 63 public char charAt(final int index) {
method in class:FlatCharArrayRope 74 * indexOf implementation. Calls to charAt have been replaced
87 * indexOf implementation. Calls to charAt have been replaced
102 * indexOf implementation. Calls to charAt have been replaced
115 return this.indexOf(sequence.charAt(0), fromIndex);
122 final char c = sequence.charAt(j);
131 if (sequence.charAt(y) != this.sequence[x]) {
|
H A D | AbstractRope.java | 64 final char y = sequence.charAt(j);
123 this.hashCode = 31 * this.hashCode + this.charAt(this.length() - 1);
154 if (i.next().charValue() != prefix.charAt(x++))
200 return this.indexOf(sequence.charAt(0), fromIndex);
207 final char c = sequence.charAt(j);
216 final char c = me.charAt(x);
217 if (sequence.charAt(y) != c) {
218 j += bcs[(me.charAt(j) & 0xFF)];
|
H A D | SubstringRope.java | 52 public char charAt(final int index) {
method in class:SubstringRope 56 return this.rope.charAt(this.offset + index);
|
H A D | ConcatenationRopeIteratorImpl.java | 34 * <code>charAt</code>.
134 return this.currentRope.charAt(this.currentRopePos);
|
H A D | ConcatenationRopeReverseIteratorImpl.java | 34 * iteration using <code>charAt</code>.
133 return this.currentRope.charAt(this.currentRopePos);
|
/ropes-1.2.5/ |
H A D | ropes.jar | META-INF/ META-INF/MANIFEST.MF org/ org/ahmadsoft/ org/ahmadsoft/ropes/ org/ahmadsoft/ropes/impl/ ... |
/ropes-1.2.5/src/org/ahmadsoft/ropes/test/ |
H A D | RopeTest.java | 491 r2.charAt(31);
522 assertEquals('0', r1.charAt(0));
523 assertEquals('9', r1.charAt(9));
524 assertEquals('0', r2.charAt(0));
525 assertEquals('9', r3.charAt(0));
526 assertEquals('0', r4.charAt(0));
527 assertEquals('9', r4.charAt(9));
528 assertEquals('9', r4.charAt(10));
535 assertEquals(r.charAt(j), c.charAt( [all...] |
H A D | PerformanceTest.java | 222 "* rope performance to be competitive, with the charAt version\n" +
236 stat(System.out, stats2, "ns", "[Rope/charAt]");
246 "* iterator version performing better than the charAt version.");
260 stat(System.out, stats2, "ns", "[Rope/charAt]");
262 stat(System.out, stats4, "ns", "[Text/charAt]");
623 for (int j=0; j<r.length(); ++j) result+=r.charAt(j);
626 System.out.printf("[Rope/charAt] Executed traversal in % ,18d ns. Result checksum: %d\n", (y-x), result);
650 for (int j=0; j<result.length(); ++j) r+=result.charAt(j);
652 System.out.printf("[Rope/charAt] Executed traversal in % ,18d ns. Result checksum: %d\n", (y-x), r);
663 for (int j=0; j<result.length(); ++j) r+=result.charAt( [all...] |