MCPcopy Create free account
hub / github.com/antlr/codebuff / sequence

Method sequence

src/org/antlr/codebuff/Tool.java:488–492  ·  view source on GitHub ↗
(int n, String s)

Source from the content-addressed store, hash-verified

486 }
487
488 public static String sequence(int n, String s) {
489 StringBuilder buf = new StringBuilder();
490 for (int sp=1; sp<=n; sp++) buf.append(s);
491 return buf.toString();
492 }
493
494 public static int count(String s, char x) {
495 int n = 0;

Callers 5

_toStringMethod · 0.95
_toFileInfoStringMethod · 0.95
featureNameHeaderMethod · 0.95
spacesMethod · 0.95
newlinesMethod · 0.95

Calls 2

toStringMethod · 0.65
appendMethod · 0.45

Tested by

no test coverage detected