MCPcopy Create free account
hub / github.com/google/re2j / toString

Method toString

java/com/google/re2j/Prog.java:164–178  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

162 // ---
163
164 @Override
165 public String toString() {
166 StringBuilder out = new StringBuilder();
167 for (int pc = 0; pc < instSize; ++pc) {
168 int len = out.length();
169 out.append(pc);
170 if (pc == start) {
171 out.append('*');
172 }
173 // Use spaces not tabs since they're not always preserved in
174 // Google Java source, such as our tests.
175 out.append(" ".substring(out.length() - len)).append(inst[pc]).append('\n');
176 }
177 return out.toString();
178 }
179}

Callers 1

testCompileMethod · 0.95

Calls 3

appendMethod · 0.80
substringMethod · 0.80
lengthMethod · 0.45

Tested by 1

testCompileMethod · 0.76