public static int indexOfIgnoreCase(final String src, char c, int startIndex, int endIndex) {
    """
	Finds the first occurrence of a character in the given source but within limited range (start, end].
    """
		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(final 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 ( final 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].
Finds the first occurrence of a character in the given source but within limited range ( start end ] .