public static int indexOfIgnoreCase(String src,char c,int startIndex,int endIndex){
  if (startIndex < 0) {
    startIndex=0;
  }
  int srclen=src.length();
  if (endIndex > srclen) {
    endIndex=srclen;
  }
  c=Character.toLowerCase(c);
  for (int i=startIndex; i < endIndex; i++) {
    if (Character.toLowerCase(src.charAt(i)) == c) {
      return i;
    }
  }
  return -1;
}

public static int indexOfIgnoreCase ( String src , char c , int startIndex , int endIndex ) { if ( startIndex < 0 ) { startIndex = 0 ; } int srclen = src . length ( ) ; if ( endIndex > srclen ) { endIndex = srclen ; } c = Character . toLowerCase ( c ) ; for ( int i = startIndex ; i < endIndex ; i ++ ) { if ( Character . toLowerCase ( src . charAt ( i ) ) == c ) { return i ; } } return - 1 ; }
finds the first occurrence of a character in the given source but within limited range ( start , end ] .
