Here you can find the source of matchesIgnoreCase(String str, String query, int startingAt)
private static boolean matchesIgnoreCase(String str, String query, int startingAt)
//package com.java2s; public class Main { private static boolean matchesIgnoreCase(String str, String query, int startingAt) { int len = query.length(); for (int i = 0; i < len; i++) { if (Character.toUpperCase(query.charAt(i)) != Character .toUpperCase(str.charAt(startingAt + i))) { return false; }//from w w w. ja va 2 s .c om } return true; } }