MCPcopy Create free account
hub / github.com/ReadyTalk/avian / setResult

Method setResult

classpath/java/util/regex/PikeVM.java:200–210  ·  view source on GitHub ↗
(Result result)

Source from the content-addressed store, hash-verified

198 }
199
200 public void setResult(Result result) {
201 // copy offsets
202 int[] offsets = this.offsets[program.length];
203 int[] groupStart = new int[groupCount + 1];
204 int[] groupEnd = new int[groupCount + 1];
205 for (int j = 0; j <= groupCount; ++j) {
206 groupStart[j] = offsets[2 * j] - 1;
207 groupEnd[j] = offsets[2 * j + 1] - 1;
208 }
209 result.set(groupStart, groupEnd);
210 }
211
212 private void mustStartMatchAt(int start) {
213 int previous = -1;

Callers 1

matchesMethod · 0.95

Calls 1

setMethod · 0.65

Tested by

no test coverage detected