Lines Matching refs:Rope

39 import org.ahmadsoft.ropes.Rope;

60 private static Rope complexRope=null;
105 stat(System.out, stats2, "ns", "[Rope]");
131 stat(System.out, stats2, "ns", "[Rope]");
158 stat(System.out, stats2, "ns", "[Rope]");
188 stat(System.out, stats2, "ns", "[Rope]");
214 stat(System.out, stats2, "ns", "[Rope]");
236 stat(System.out, stats2, "ns", "[Rope/charAt]");
237 stat(System.out, stats3, "ns", "[Rope/itr]");
260 stat(System.out, stats2, "ns", "[Rope/charAt]");
261 stat(System.out, stats3, "ns", "[Rope/itr]");
282 stat(System.out, stats2, "ns", "[Rope]");
283 stat(System.out, stats3, "ns", "[Rope.matcher]");
302 stat(System.out, stats2, "ns", "[Rope]");
303 stat(System.out, stats3, "ns", "[Rope.matcher]");
323 stat(System.out, stats2, "ns", "[Rope]");
324 stat(System.out, stats3, "ns", "[Reblncd Rope]");
325 stat(System.out, stats4, "ns", "[Rope.matcher]");
344 stat(System.out, stats2, "ns", "[Rope]");
362 stat(System.out, stats2, "ns", "[Rope]");
368 System.out.println("* Illustrates how to write a Rope to a stream efficiently.");
377 stat(System.out, stats1, "ns", "[Rope.write]");
406 Rope b = Rope.BUILDER.build(aChristmasCarol);
410 System.out.printf("[Rope.find] indexOf needle length %d found at index %d in % ,18d ns.\n", toFind.length(), loc, (y-x));
434 private static long ropeFindTest2(Rope aChristmasCarol, String toFind) {
440 System.out.printf("[Rope.find] indexOf needle length %d found at index %d in % ,18d ns.\n", toFind.length(), loc, (y-x));
444 private static long ropeWriteGood(Rope complexRope) {
455 System.out.printf("[Rope.write] Executed write in % ,18d ns.\n", (y-x));
459 private static long ropeWriteBad(Rope complexRope) {
504 Rope result=Rope.BUILDER.build(aChristmasCarol);
512 System.out.printf("[Rope] Executed append plan in % ,18d ns. Result has length: %d. Rope Depth: %d\n", (y-x), result.length(), ((AbstractRope)result).depth());
520 Rope result=Rope.BUILDER.build(aChristmasCarol);
528 System.out.printf("[Rope] Executed delete plan in % ,18d ns. Result has length: %d. Rope Depth: %d\n", (y-x), result.length(), ((AbstractRope)result).depth());
534 Rope result=Rope.BUILDER.build(aChristmasCarol);
545 System.out.printf("[Rope] Executed insert plan in % ,18d ns. Result has length: %d. Rope Depth: %d\n", (y-x), result.length(), ((AbstractRope)result).depth());
572 Rope result=Rope.BUILDER.build(aChristmasCarol);
581 System.out.printf("[Rope] Executed insert plan in % ,18d ns. Result has length: %d. Rope Depth: %d\n", (y-x), result.length(), ((AbstractRope)result).depth());
589 Rope result=Rope.BUILDER.build(aChristmasCarol);
597 System.out.printf("[Rope] Executed prepend plan in % ,18d ns. Result has length: %d. Rope Depth: %d\n", (y-x), result.length(), ((AbstractRope)result).depth());
619 final Rope r=Rope.BUILDER.build(aChristmasCarol);
626 System.out.printf("[Rope/charAt] Executed traversal in % ,18d ns. Result checksum: %d\n", (y-x), result);
632 final Rope r=Rope.BUILDER.build(aChristmasCarol);
639 System.out.printf("[Rope/itr] Executed traversal in % ,18d ns. Result checksum: %d\n", (y-x), result);
643 private static long ropeTraverseTest2_1(Rope aChristmasCarol) {
646 Rope result=aChristmasCarol;
652 System.out.printf("[Rope/charAt] Executed traversal in % ,18d ns. Result checksum: %d\n", (y-x), r);
669 private static long ropeTraverseTest2_2(Rope aChristmasCarol) {
672 Rope result=aChristmasCarol;
678 System.out.printf("[Rope/itr] Executed traversal in % ,18d ns. Result checksum: %d\n", (y-x), r);
949 Rope rope = Rope.BUILDER.build(aChristmasCarol);
958 System.out.printf("[Rope] Executed regexp test in % ,18d ns. Found %d matches.\n", (y-x), result);
964 Rope rope = Rope.BUILDER.build(aChristmasCarol);
973 System.out.printf("[Rope.matcher] Executed regexp test in % ,18d ns. Found %d matches.\n", (y-x), result);
1023 private static long ropeRegexpTest2(final Rope aChristmasCarol, Pattern pattern) {
1033 System.out.printf("[Rope] Executed regexp test in % ,18d ns. Found %d matches.\n", (y-x), result);
1037 private static long ropeRebalancedRegexpTest2(final Rope aChristmasCarol, Pattern pattern) {
1042 CharSequence adaptedRope = aChristmasCarol.rebalance(); //Rope.BUILDER.buildForRegexpSearching(aChristmasCarol);
1048 System.out.printf("[Reblncd Rope] Executed regexp test in % ,18d ns. Found %d matches.\n", (y-x), result);
1052 private static long ropeMatcherRegexpTest2(final Rope aChristmasCarol, Pattern pattern) {
1062 System.out.printf("[Rope.matcher] Executed regexp test in % ,18d ns. Found %d matches.\n", (y-x), result);