Searched refs:charAt (Results 1 - 10 of 10) sorted by relevance
/ropes-1.1.3/src/org/ahmadsoft/ropes/impl/ |
H A D | ReverseRope.java | 55 public char charAt(final int index) {
method in class:ReverseRope 56 return this.rope.charAt(this.length() - index - 1);
77 return ReverseRope.this.charAt(this.current++);
109 return ReverseRope.this.charAt(--this.current);
136 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 | ConcatenationRope.java | 55 public char charAt(final int index) {
method in class:ConcatenationRope 60 return this.left.charAt(index);
62 return this.right.charAt(index - this.left.length());
88 public char charAt(final int index) {
95 System.out.println("Rope length is: " + rope.length() + " charAt is " + index);
104 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);
170 return this.indexOf(sequence.charAt(0), fromIndex);
177 final char c = sequence.charAt(j);
186 final char c = me.charAt(x);
187 if (sequence.charAt(y) != c) {
|
H A D | SubstringRope.java | 54 public char charAt(final int index) {
method in class:SubstringRope 55 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.1.3/src/org/ahmadsoft/ropes/test/ |
H A D | RopeTest.java | 417 assertEquals('0', r1.charAt(0));
418 assertEquals('9', r1.charAt(9));
419 assertEquals('0', r2.charAt(0));
420 assertEquals('9', r3.charAt(0));
421 assertEquals('0', r4.charAt(0));
422 assertEquals('9', r4.charAt(9));
423 assertEquals('9', r4.charAt(10));
430 assertEquals(r.charAt(j), c.charAt(j));
436 assertEquals("Index: " + i, r.charAt( [all...] |
H A D | PerformanceTest.java | 215 "* rope performance to be competitive, with the charAt version\n" +
229 stat(System.out, stats2, "ns", "[Rope/charAt]");
239 "* iterator version performing better than the charAt version.");
252 stat(System.out, stats2, "ns", "[Rope/charAt]");
576 for (int j=0; j<r.length(); ++j) result+=r.charAt(j);
579 System.out.printf("[Rope/charAt] Executed traversal in % ,18d ns. Result checksum: %d\n", (y-x), result);
603 for (int j=0; j<result.length(); ++j) r+=result.charAt(j);
605 System.out.printf("[Rope/charAt] Executed traversal in % ,18d ns. Result checksum: %d\n", (y-x), r);
727 for (int j=0; j<b.length(); ++j) result+=b.charAt(j);
742 for (int j=0; j<result.length(); ++j) r+=result.charAt( [all...] |
Completed in 5 milliseconds