Lines Matching defs:matches
387 * @param matches Pairs of start/end positions.
389 private static void findPhoneNumber(String text, String[] matches) {
394 if (results.length / 2 != matches.length) {
395 fail("Text '" + text + "': expected " + matches.length
396 + " matches, found " + results.length / 2);
401 assertEquals(matches[i], seq);
475 private static void findLinks(String text, URLSpan[] matches, boolean lastDitchGeo) {
478 assertEquals(matches.length, spansFound.length);
480 // Make sure the expected matches list of URLs is the same as that returned by linkify.
481 ArrayList<URLSpan> matchesArrayList = new ArrayList<URLSpan>(Arrays.asList(matches));
499 // As a sanity check, ensure the matches list is empty, as each item should have been