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

Method subarray

java/com/google/re2j/Utils.java:108–114  ·  view source on GitHub ↗
(int[] array, int start, int end)

Source from the content-addressed store, hash-verified

106
107 // Returns a new copy of the specified subarray.
108 static int[] subarray(int[] array, int start, int end) {
109 int[] r = new int[end - start];
110 for (int i = start; i < end; ++i) {
111 r[i - start] = array[i];
112 }
113 return r;
114 }
115
116 // Returns a new copy of the specified subarray.
117 static byte[] subarray(byte[] array, int start, int end) {

Callers 7

submatchBytesMethod · 0.95
factorMethod · 0.95
removeLeadingStringMethod · 0.95
findUTF8Method · 0.95
findUTF8IndexMethod · 0.95
findUTF8SubmatchMethod · 0.95
deliverMethod · 0.95

Calls

no outgoing calls

Tested by 1

submatchBytesMethod · 0.76