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

Method find

java/com/google/re2j/RE2.java:650–656  ·  view source on GitHub ↗
(String s)

Source from the content-addressed store, hash-verified

648 */
649 // This is visible for testing.
650 String find(String s) {
651 int[] a = doExecute(MachineInput.fromUTF16(s), 0, UNANCHORED, 2);
652 if (a == null) {
653 return "";
654 }
655 return s.substring(a[0], a[1]);
656 }
657
658 /**
659 * Returns a two-element array of integers defining the location of the leftmost match in

Callers

nothing calls this directly

Calls 3

doExecuteMethod · 0.95
fromUTF16Method · 0.95
substringMethod · 0.80

Tested by

no test coverage detected