private boolean partOfURL(int index){
  if (inURL != null)   return inURL[index];
  inURL=new boolean[text.length()];
  Matcher m=pURLs.matcher(text);
  while (m.find())   for (int i=m.start(); i < m.end(); ++i)   inURL[i]=true;
  return inURL[index];
}

private boolean partOfURL ( int index ) { if ( inURL != null ) return inURL [ index ] ; inURL = new boolean [ text . length ( ) ] ; Matcher m = pURLs . matcher ( text ) ; while ( m . find ( ) ) for ( int i = m . start ( ) ; i < m . end ( ) ; ++ i ) inURL [ i ] = true ; return inURL [ index ] ; }
does a simple check to determine if the symbol at the specified index in the specified string is likely to be part of a url . if the specified text contains any of the following strings before the specified symbol , and there is no whitespace in between the two , the specified symbol is deemed likely to be part of a url .
