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

Method subarray

java/com/google/re2j/Parser.java:1702–1708  ·  view source on GitHub ↗
(Regexp[] array, int start, int end)

Source from the content-addressed store, hash-verified

1700
1701 // Returns a new copy of the specified subarray.
1702 static Regexp[] subarray(Regexp[] array, int start, int end) {
1703 Regexp[] r = new Regexp[end - start];
1704 for (int i = start; i < end; ++i) {
1705 r[i - start] = array[i];
1706 }
1707 return r;
1708 }
1709
1710 private static class Pair<F, S> {
1711 final F first;

Callers 4

simplifyMethod · 0.95
factorMethod · 0.95
removeLeadingStringMethod · 0.95
removeLeadingRegexpMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected