Android String Case Convert matchesIgnoreCase(String str, String query, int startingAt)

Here you can find the source of matchesIgnoreCase(String str, String query, int startingAt)

Description

matches Ignore Case

Declaration

private static boolean matchesIgnoreCase(String str, String query,
            int startingAt) 

Method Source Code

//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;
    }
}

Related

  1. lowercaseKeys(Map map)
  2. startsWithIgnoreCase(String str, String prefix)
  3. toLowerCase(String src)
  4. toUpperCase(String src)
  5. flipCase(final String s)
  6. lowerCase(String str)
  7. upperCase(String str)
  8. endsWithIgnoreCase(String source, String suffix)
  9. endsWithIgnoreCase(final String target1, final String target2)