Lines Matching refs:url

63         public final String transformUrl(final Matcher match, String url) {
306 String url = "name@gmail.com";
307 assertAddLinksWithWebUrlFails("Should not recognize email address as URL", url);
311 String url = "https://android.com/path?ll=37.4221,-122.0836&z=17&pll=37.4221,-122.0836";
312 assertAddLinksWithWebUrlSucceeds("Should accept commas", url);
317 String url = "http://android/#notld///a/n/d/r/o/i/d&p1=1&p2=2";
319 " have TLD", url);
324 String url = "hTtP://android.com";
325 assertAddLinksWithWebUrlSucceeds("Protocol matching should be case insensitive", url);
330 String url = "http://www.android.com";
331 assertAddLinksWithWebUrlSucceeds("Should match valid URL with scheme and hostname", url);
336 String url = "http://www.android.me";
338 url);
343 String url = "android.camera";
344 assertAddLinksWithWebUrlSucceeds("Should match valid URL with hostname and new TLD", url);
349 String url = "http://xn--fsqu00a.xn--unup4y";
350 assertAddLinksWithWebUrlSucceeds("Should match Punycode URL", url);
355 String url = "xn--fsqu00a.xn--unup4y";
356 assertAddLinksWithWebUrlSucceeds("Should match Punycode URL without protocol", url);
361 String url = "xn--fsqu00a.-xn--unup4y";
362 assertAddLinksWithWebUrlFails("Should not match Punycode TLD that starts with dash", url);
367 String url = "http://xn--fsqu00a.xn--unup4y-";
369 "with dash", "http://xn--fsqu00a.xn--unup4y", url);
374 String url = "http://\uD604\uAE08\uC601\uC218\uC99D.kr";
375 assertAddLinksWithWebUrlSucceeds("Should match URL with Unicode domain name", url);
380 String url = "\uD604\uAE08\uC601\uC218\uC99D.kr";
382 "domain name", url);
387 String url = "\uB3C4\uBA54\uC778.\uD55C\uAD6D";
388 assertAddLinksWithWebUrlSucceeds("Should match URL with Unicode domain name and TLD", url);
393 String url = "http://android.com/\u2019/a";
394 assertAddLinksWithWebUrlSucceeds("Should match URL with Unicode path", url);
399 String url = "http://www.example.com:8080";
400 assertAddLinksWithWebUrlSucceeds("Should match URL with port", url);
405 String url = "http://www.example.com:8080/?foo=bar";
406 assertAddLinksWithWebUrlSucceeds("Should match URL with port and query", url);
411 String url = "http://www.example.com:8080/~user/?foo=bar";
412 assertAddLinksWithWebUrlSucceeds("Should match URL with tilde", url);
417 String url = "http://android/#notld///a/n/d/r/o/i/d&p1=1&p2=2";
419 url);
424 String url = "thank.you";
426 "and does not contain a known TLD", url);
431 String url = "Thank\u263A.com";
432 assertAddLinksWithWebUrlSucceeds("Should match URL with emoji", url);
438 String url = "Thank\u263A.you";
440 "TLD", url);
445 String url = "android\uD83C\uDF38.com";
447 url);
452 String url = "http://android.\uD83C\uDF38com";
453 assertAddLinksWithWebUrlSucceeds("Should match TLD with Unicode surrogate pairs", url);
458 String url = "android\uD83F\uDFFE.com";
460 " pair", url);
465 String url = "http://android.com/path-with-\uD83C\uDF38?v=\uD83C\uDF38f";
467 url);
494 String url = part1 + emptySpace + part2;
496 emptySpace.codePointAt(0), part1, url);
502 String url = "http://a-nd.r-oid.com";
503 assertAddLinksWithWebUrlSucceeds("Should match domain name with '-'", url);
505 url = "a-nd.r-oid.com";
506 assertAddLinksWithWebUrlSucceeds("Should match domain name with '-'", url);
511 String url = "http://a_nd.r_oid.com";
512 assertAddLinksWithWebUrlSucceeds("Should match domain name with '_'", url);
514 url = "a_nd.r_oid.com";
515 assertAddLinksWithWebUrlSucceeds("Should match domain name with '_'", url);
520 String url = "http://android.com/path$?v=$val";
521 assertAddLinksWithWebUrlSucceeds("Should match path and query with '$'", url);
523 url = "android.com/path$?v=$val";
524 assertAddLinksWithWebUrlSucceeds("Should match path and query with '$'", url);
529 String url = "http://android.com?q=v";
530 assertAddLinksWithWebUrlSucceeds("Should match empty path with query params", url);
532 url = "android.com?q=v";
533 assertAddLinksWithWebUrlSucceeds("Should match empty path with query params", url);
535 url = "http://android.com/?q=v";
536 assertAddLinksWithWebUrlSucceeds("Should match empty path with query params", url);
538 url = "android.com/?q=v";
539 assertAddLinksWithWebUrlSucceeds("Should match empty path with query params", url);
774 private static void assertAddLinksWithWebUrlSucceeds(String msg, String url) {
775 assertAddLinksSucceeds(msg, url, Linkify.WEB_URLS);
778 private static void assertAddLinksWithWebUrlFails(String msg, String url) {
779 assertAddLinksFails(msg, url, Linkify.WEB_URLS);
783 String url) {
784 assertAddLinksPartiallyMatches(msg, expected, url, Linkify.WEB_URLS);
787 private static void assertAddLinksWithEmailSucceeds(String msg, String url) {
788 assertAddLinksSucceeds(msg, url, Linkify.EMAIL_ADDRESSES);
791 private static void assertAddLinksWithEmailFails(String msg, String url) {
792 assertAddLinksFails(msg, url, Linkify.EMAIL_ADDRESSES);
796 String url) {
797 assertAddLinksPartiallyMatches(msg, expected, url, Linkify.EMAIL_ADDRESSES);