(byte[] b)
| 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 |