Searched refs:lastSlashIndex (Results 1 – 2 of 2) sorted by relevance
339 int lastSlashIndex; in find_extension() local343 lastSlashIndex = str.lastIndexOf(File.pathSeparator); in find_extension()344 if (lastSlashIndex == -1) { in find_extension()345 lastSlashIndex = 0; in find_extension()347 lastSlashIndex++; in find_extension()350 return str.lastIndexOf(".", lastSlashIndex); in find_extension()
61 int lastSlashIndex = defaultPath.lastIndexOf('/'); in getDefaultPath() local62 if (lastSlashIndex >= 0) { in getDefaultPath()63 if (lastSlashIndex == 0) { in getDefaultPath()65 lastSlashIndex = 1; in getDefaultPath()67 defaultPath = defaultPath.substring(0, lastSlashIndex); in getDefaultPath()