Search Options

Results per page
Sort
Preferred Languages
Advance

Results 41 - 50 of 101 for slash (0.36 sec)

  1. guava/src/com/google/common/net/UrlEscapers.java

       * URLs</a>. (<a href="https://url.spec.whatwg.org/#path-state">If the escaper were to leave these
       * characters unescaped, they would be escaped by the consumer at parse time, anyway.</a>)
       * Additionally, the escaper escapes the slash character ("/"). While slashes are acceptable in
       * URL paths, they are considered by the specification to be separators between "path segments."
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Sat Dec 21 03:10:51 UTC 2024
    - 7.1K bytes
    - Viewed (0)
  2. src/main/java/jcifs/util/PathValidator.java

            String normalized = path.replace('/', '\\');
    
            // Remove duplicate slashes
            normalized = normalized.replaceAll("\\\\+", "\\\\");
    
            // Remove trailing slash unless it's the root
            if (normalized.length() > 1 && normalized.endsWith("\\")) {
                normalized = normalized.substring(0, normalized.length() - 1);
            }
    
            // Handle current directory references
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 30 05:58:03 UTC 2025
    - 14.5K bytes
    - Viewed (0)
  3. src/test/java/jcifs/smb1/smb1/DfsTest.java

            dfs.insert(path, dr);
    
            assertNotNull(dfs.referrals);
            assertFalse(dfs.referrals.map.isEmpty());
            String key = "\\server\\share\\folder"; // Trailing slash should be removed
            assertTrue(dfs.referrals.map.containsKey(key.toLowerCase()));
        }
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 9.6K bytes
    - Viewed (0)
  4. android/guava/src/com/google/common/net/UrlEscapers.java

       * URLs</a>. (<a href="https://url.spec.whatwg.org/#path-state">If the escaper were to leave these
       * characters unescaped, they would be escaped by the consumer at parse time, anyway.</a>)
       * Additionally, the escaper escapes the slash character ("/"). While slashes are acceptable in
       * URL paths, they are considered by the specification to be separators between "path segments."
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Sat Dec 21 03:10:51 UTC 2024
    - 7.1K bytes
    - Viewed (0)
  5. cmd/object-api-utils_test.go

    		{"../../abc", "../../abc"},
    		{"/abc", "/abc"},
    		{"/abc/def", "/abc/def"},
    		{"/", "/"},
    
    		// Remove trailing slash
    		{"abc/", "abc"},
    		{"abc/def/", "abc/def"},
    		{"a/b/c/", "a/b/c"},
    		{"./", "."},
    		{"../", ".."},
    		{"../../", "../.."},
    		{"/abc/", "/abc"},
    
    		// Remove doubled slash
    		{"abc//def//ghi", "abc/def/ghi"},
    		{"//abc", "/abc"},
    		{"///abc", "/abc"},
    		{"//abc//", "/abc"},
    Registered: Sun Sep 07 19:28:11 UTC 2025
    - Last Modified: Fri Aug 29 02:39:48 UTC 2025
    - 24.1K bytes
    - Viewed (0)
  6. cmd/object-api-putobject_test.go

    		// Put an empty object with a trailing slash
    		30: {bucketName: bucket, objName: "emptydir/", inputData: []byte{}, expectedMd5: getMD5Hash([]byte{})},
    		// Put an object inside the empty directory
    		31: {bucketName: bucket, objName: "emptydir/" + object, inputData: data, inputDataSize: int64(len(data)), expectedMd5: getMD5Hash(data)},
    		// Put the empty object with a trailing slash again (refer to Test case 30), this needs to succeed
    Registered: Sun Sep 07 19:28:11 UTC 2025
    - Last Modified: Thu Feb 22 06:26:06 UTC 2024
    - 25.8K bytes
    - Viewed (0)
  7. okhttp/src/jvmTest/kotlin/okhttp3/HttpUrlTest.kt

        assertThat(
          base
            .newBuilder()
            .addPathSegments("d")
            .build()
            .encodedPath,
        ).isEqualTo("/a/b/c/d")
    
        // Add a string with one slash: resulting URL gains one slash.
        assertThat(
          base
            .newBuilder()
            .addPathSegments("/")
            .build()
            .encodedPath,
        ).isEqualTo("/a/b/c//")
        assertThat(
          base
    Registered: Fri Sep 05 11:42:10 UTC 2025
    - Last Modified: Mon Aug 04 07:38:48 UTC 2025
    - 69.9K bytes
    - Viewed (0)
  8. src/main/java/jcifs/util/InputValidator.java

            // Normalize slashes
            path = path.replace('/', '\\');
    
            // Remove redundant slashes
            path = path.replaceAll("\\\\+", "\\\\");
    
            // Remove trailing slash unless it's root
            if (path.length() > 1 && path.endsWith("\\")) {
                path = path.substring(0, path.length() - 1);
            }
    
            return path;
        }
    
        /**
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 30 05:58:03 UTC 2025
    - 13.5K bytes
    - Viewed (0)
  9. cmd/os_unix.go

    				continue
    			}
    
    			typ = fi.Mode() & os.ModeType
    		}
    
    		var nameStr string
    		if typ.IsRegular() {
    			nameStr = string(name)
    		} else if typ.IsDir() {
    			// Use temp buffer to append a slash to avoid string concat.
    			tmp = tmp[:len(name)+1]
    			copy(tmp, name)
    			tmp[len(tmp)-1] = '/' // SlashSeparator
    			nameStr = string(tmp)
    		}
    
    		count--
    		entries = append(entries, nameStr)
    	}
    
    Registered: Sun Sep 07 19:28:11 UTC 2025
    - Last Modified: Tue Feb 18 16:25:55 UTC 2025
    - 9.3K bytes
    - Viewed (0)
  10. cmd/metacache-stream.go

    // 1 Integer, metacacheStreamVersion of the writer.
    // This can be used for managing breaking changes.
    //
    // For each element:
    // 1. Bool. If false at end of stream.
    // 2. String. Name of object. Directories contains a trailing slash.
    // 3. Binary. Blob of metadata. Length 0 on directories.
    // ... Next element.
    //
    // Streams can be assumed to be sorted in ascending order.
    // If the stream ends before a false boolean it can be assumed it was truncated.
    
    Registered: Sun Sep 07 19:28:11 UTC 2025
    - Last Modified: Wed May 07 15:37:12 UTC 2025
    - 19.5K bytes
    - Viewed (0)
Back to top