Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 9 of 9 for getNameWithoutExtension (0.2 sec)

  1. guava-tests/test/com/google/common/io/MoreFilesTest.java

        assertEquals("", MoreFiles.getNameWithoutExtension(root()));
        assertEquals("", MoreFiles.getNameWithoutExtension(FS.getPath(".")));
        assertEquals(".", MoreFiles.getNameWithoutExtension(FS.getPath("..")));
        assertEquals("..", MoreFiles.getNameWithoutExtension(FS.getPath("...")));
        assertEquals("blah", MoreFiles.getNameWithoutExtension(FS.getPath("blah")));
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Thu Oct 17 02:42:09 UTC 2024
    - 27.4K bytes
    - Viewed (0)
  2. android/guava-tests/test/com/google/common/io/MoreFilesTest.java

        assertEquals("", MoreFiles.getNameWithoutExtension(root()));
        assertEquals("", MoreFiles.getNameWithoutExtension(FS.getPath(".")));
        assertEquals(".", MoreFiles.getNameWithoutExtension(FS.getPath("..")));
        assertEquals("..", MoreFiles.getNameWithoutExtension(FS.getPath("...")));
        assertEquals("blah", MoreFiles.getNameWithoutExtension(FS.getPath("blah")));
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Thu Oct 31 16:07:00 UTC 2024
    - 26.5K bytes
    - Viewed (0)
  3. android/guava-tests/test/com/google/common/io/FilesTest.java

        assertEquals("", Files.getNameWithoutExtension("/"));
        assertEquals("", Files.getNameWithoutExtension("."));
        assertEquals(".", Files.getNameWithoutExtension(".."));
        assertEquals("..", Files.getNameWithoutExtension("..."));
        assertEquals("blah", Files.getNameWithoutExtension("blah"));
        assertEquals("blah", Files.getNameWithoutExtension("blah."));
        assertEquals(".blah", Files.getNameWithoutExtension(".blah."));
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Tue Jul 23 14:22:54 UTC 2024
    - 22.1K bytes
    - Viewed (0)
  4. guava-tests/test/com/google/common/io/FilesTest.java

        assertEquals("", Files.getNameWithoutExtension("/"));
        assertEquals("", Files.getNameWithoutExtension("."));
        assertEquals(".", Files.getNameWithoutExtension(".."));
        assertEquals("..", Files.getNameWithoutExtension("..."));
        assertEquals("blah", Files.getNameWithoutExtension("blah"));
        assertEquals("blah", Files.getNameWithoutExtension("blah."));
        assertEquals(".blah", Files.getNameWithoutExtension(".blah."));
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Tue Jul 23 14:22:54 UTC 2024
    - 22.1K bytes
    - Viewed (0)
  5. build-logic-commons/basics/src/main/kotlin/gradlebuild/basics/transforms/Minify.kt

            for (entry in parameters.keepClassesByArtifact) {
                val fileName = artifact.get().asFile.name
                if (fileName.startsWith(entry.key)) {
                    val nameWithoutExtension = Files.getNameWithoutExtension(fileName)
                    minify(artifact.get().asFile, entry.value, outputs.file("$nameWithoutExtension-min.jar"))
                    return
                }
            }
            outputs.file(artifact)
        }
    
    Registered: Wed Nov 06 11:36:14 UTC 2024
    - Last Modified: Sat Sep 30 16:17:28 UTC 2023
    - 4.4K bytes
    - Viewed (0)
  6. guava/src/com/google/common/io/Files.java

       *     qualified file name (including a path) or just a file name.
       * @return The file name without its path or extension.
       * @since 14.0
       */
      public static String getNameWithoutExtension(String file) {
        checkNotNull(file);
        String fileName = new File(file).getName();
        int dotIndex = fileName.lastIndexOf('.');
        return (dotIndex == -1) ? fileName : fileName.substring(0, dotIndex);
      }
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Mon Jul 22 19:03:12 UTC 2024
    - 33.1K bytes
    - Viewed (0)
  7. android/guava/src/com/google/common/io/Files.java

       *     qualified file name (including a path) or just a file name.
       * @return The file name without its path or extension.
       * @since 14.0
       */
      public static String getNameWithoutExtension(String file) {
        checkNotNull(file);
        String fileName = new File(file).getName();
        int dotIndex = fileName.lastIndexOf('.');
        return (dotIndex == -1) ? fileName : fileName.substring(0, dotIndex);
      }
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Mon Jul 22 19:03:12 UTC 2024
    - 33.1K bytes
    - Viewed (0)
  8. android/guava/src/com/google/common/io/MoreFiles.java

       * href="http://en.wikipedia.org/wiki/Filename_extension">file extension</a> or path. This is
       * similar to the {@code basename} unix command. The result does not include the '{@code .}'.
       */
      public static String getNameWithoutExtension(Path path) {
        Path name = path.getFileName();
    
        // null for empty paths and root-only paths
        if (name == null) {
          return "";
        }
    
        String fileName = name.toString();
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Thu Oct 31 16:07:00 UTC 2024
    - 35K bytes
    - Viewed (0)
  9. guava/src/com/google/common/io/MoreFiles.java

       * href="http://en.wikipedia.org/wiki/Filename_extension">file extension</a> or path. This is
       * similar to the {@code basename} unix command. The result does not include the '{@code .}'.
       */
      public static String getNameWithoutExtension(Path path) {
        Path name = path.getFileName();
    
        // null for empty paths and root-only paths
        if (name == null) {
          return "";
        }
    
        String fileName = name.toString();
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Thu Oct 31 16:07:00 UTC 2024
    - 34.5K bytes
    - Viewed (0)
Back to top