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

Method findUTF8

java/com/google/re2j/RE2.java:616–622  ·  view source on GitHub ↗
(byte[] b)

Source from the content-addressed store, hash-verified

614 */
615 // This is visible for testing.
616 byte[] findUTF8(byte[] b) {
617 int[] a = doExecute(MachineInput.fromUTF8(b), 0, UNANCHORED, 2);
618 if (a == null) {
619 return null;
620 }
621 return Utils.subarray(b, a[0], a[1]);
622 }
623
624 /**
625 * Returns a two-element array of integers defining the location of the leftmost match in

Callers 1

testFindUTF8Method · 0.95

Calls 3

doExecuteMethod · 0.95
fromUTF8Method · 0.95
subarrayMethod · 0.95

Tested by 1

testFindUTF8Method · 0.76