private int indexOfIgnoreCase(String name, int fromIndex, char p, int patternIndex, boolean isAsciiName) {
    if (isAsciiName && Strings.isAscii(p)) {
      char pUpper = toUpperCase[patternIndex];
      char pLower = toLowerCase[patternIndex];
      for (int i = fromIndex; i < name.length(); i++) {
        char c = name.charAt(i);
        if (c == pUpper || c == pLower) {
          return i;
        }
      }
      return -1;
    }
    return Strings.indexOfIgnoreCase(name, p, fromIndex);
  }
private int indexOfIgnoreCase(String name, int fromIndex, char p, int patternIndex, boolean isAsciiName)