int (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 == p || toUpperAscii(c) == pUpper || toLowerAscii(c) == pLower) { return i; } } return -1; } return Strings.indexOfIgnoreCase(name, p, fromIndex); }