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

Method cmp

java/com/google/re2j/CharClass.java:292–295  ·  view source on GitHub ↗
(int[] array, int i, int pivotFrom, int pivotTo)

Source from the content-addressed store, hash-verified

290 // (pivotFrom, pivotTo), where the first component of the pair (lo) is
291 // ordered naturally and the second component (hi) is in reverse order.
292 private static int cmp(int[] array, int i, int pivotFrom, int pivotTo) {
293 int cmp = array[i] - pivotFrom;
294 return cmp != 0 ? cmp : pivotTo - array[i + 1];
295 }
296
297 // qsortIntPair() quicksorts pairs of ints in |array| according to lt().
298 // Precondition: |left|, |right|, |this.len| must all be even; |this.len > 1|.

Callers 1

qsortIntPairMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected