protected int indexFirstOf(final String s,final String delims,int offset){
  if (s == null || s.length() == 0) {
    return -1;
  }
  if (delims == null || delims.length() == 0) {
    return -1;
  }
  if (offset < 0) {
    offset=0;
  }
 else   if (offset > s.length()) {
    return -1;
  }
  int min=s.length();
  final char[] delim=delims.toCharArray();
  for (int i=0; i < delim.length; i++) {
    final int at=s.indexOf(delim[i],offset);
    if (at >= 0 && at < min) {
      min=at;
    }
  }
  return (min == s.length()) ? -1 : min;
}

protected int indexFirstOf ( final String s , final String delims , int offset ) { if ( s == null || s . length ( ) == 0 ) { return - 1 ; } if ( delims == null || delims . length ( ) == 0 ) { return - 1 ; } if ( offset < 0 ) { offset = 0 ; } else if ( offset > s . length ( ) ) { return - 1 ; } int min = s . length ( ) ; final char [ ] delim = delims . toCharArray ( ) ; for ( int i = 0 ; i < delim . length ; i ++ ) { final int at = s . indexOf ( delim [ i ] , offset ) ; if ( at >= 0 && at < min ) { min = at ; } } return ( min == s . length ( ) ) ? - 1 : min ; }
get the earlier index that to be searched for the first occurrance in one of any of the given string .
