boolean (String name) { if (name.isEmpty()) { return true; } int lastIndex = name.length() - 1; int end = name.charAt(lastIndex) == '/' ? lastIndex : name.length(); return filter.mightContain(Xx3UnencodedString.hashUnencodedStringRange(name, end)); }