Home | History | Annotate | Download | only in util

Lines Matching defs:links

53  *  regex matches in the text into clickable links.  This is particularly
214 * of the link types indicated in the mask into clickable links.
219 * @param text Spannable whose text is to be marked-up with links
220 * @param mask Mask to define which kinds of links will be searched.
235 ArrayList<LinkSpec> links = new ArrayList<LinkSpec>();
238 gatherLinks(links, text, Patterns.AUTOLINK_WEB_URL,
244 gatherLinks(links, text, Patterns.AUTOLINK_EMAIL_ADDRESS,
250 gatherTelLinks(links, text);
254 gatherMapLinks(links, text);
257 pruneOverlaps(links);
259 if (links.size() == 0) {
263 for (LinkSpec link: links) {
272 * the link types indicated in the mask into clickable links. If matches
276 * @param text TextView whose text is to be marked-up with links
277 * @param mask Mask to define which kinds of links will be searched.
321 * links. If links are found then UrlSpans are applied to the link
325 * @param text TextView whose text is to be marked-up with links
326 * @param pattern Regex pattern to be used for finding links
328 * prepended to the links that do not start with this scheme.
337 * links. If links are found then UrlSpans are applied to the link
341 * @param text TextView whose text is to be marked-up with links
342 * @param pattern Regex pattern to be used for finding links
344 * prepended to the links that do not start with this scheme.
347 * to be converted into links.
357 * links. If links are found then UrlSpans are applied to the link
361 * @param text TextView whose text is to be marked-up with links.
362 * @param pattern Regex pattern to be used for finding links.
363 * @param defaultScheme The default scheme to be prepended to links if the link does not
367 * to all links.
369 * over which pattern matches are to be converted into links.
387 * links.
389 * @param text Spannable whose text is to be marked-up with links
390 * @param pattern Regex pattern to be used for finding links
392 * prepended to the links that do not start with this scheme.
401 * links.
403 * @param spannable Spannable whose text is to be marked-up with links
404 * @param pattern Regex pattern to be used for finding links
406 * prepended to the links that do not start with this scheme.
409 * to be converted into links.
422 * Applies a regex to a Spannable turning the matches into links.
424 * @param spannable Spannable whose text is to be marked-up with links.
425 * @param pattern Regex pattern to be used for finding links.
426 * @param defaultScheme The default scheme to be prepended to links if the link does not
430 * to all links.
432 * over which pattern matches are to be converted into links.
510 private static final void gatherLinks(ArrayList<LinkSpec> links,
527 links.add(spec);
532 private static final void gatherTelLinks(ArrayList<LinkSpec> links, Spannable s) {
541 links.add(spec);
545 private static final void gatherMapLinks(ArrayList<LinkSpec> links, Spannable s) {
576 links.add(spec);
580 // In this case, we will not append anything to the links variable: it would have died
586 private static final void pruneOverlaps(ArrayList<LinkSpec> links) {
609 Collections.sort(links, c);
611 int len = links.size();
615 LinkSpec a = links.get(i);
616 LinkSpec b = links.get(i + 1);
629 links.remove(remove);