Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 498 for slashes (0.04 sec)

  1. src/main/java/jcifs/util/PathValidator.java

         * Normalize a path
         */
        private String normalizePath(String path) {
            // Replace forward slashes with backslashes for consistency
            String normalized = path.replace('/', '\\');
    
            // Remove duplicate slashes
            normalized = normalized.replaceAll("\\\\+", "\\\\");
    
            // Remove trailing slash unless it's the root
            if (normalized.length() > 1 && normalized.endsWith("\\")) {
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 30 05:58:03 UTC 2025
    - 14.5K bytes
    - Viewed (0)
  2. android/guava/src/com/google/common/net/UrlEscapers.java

       * 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."
       * This implies that, if you wish for your path to contain slashes, you must escape each segment
       * separately and then join them.
       *
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Sat Dec 21 03:10:51 UTC 2024
    - 7.1K bytes
    - Viewed (0)
  3. guava/src/com/google/common/net/UrlEscapers.java

       * 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."
       * This implies that, if you wish for your path to contain slashes, you must escape each segment
       * separately and then join them.
       *
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Sat Dec 21 03:10:51 UTC 2024
    - 7.1K bytes
    - Viewed (0)
  4. okhttp/src/jvmTest/kotlin/okhttp3/HttpUrlTest.kt

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

         */
        public static String normalizeSmbPath(String path) {
            validateSmbPath(path);
    
            // 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);
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 30 05:58:03 UTC 2025
    - 13.5K bytes
    - Viewed (0)
  6. api/maven-api-core/src/main/java/org/apache/maven/api/services/Source.java

         *   <li>Other sources may not support resolution and return null</li>
         * </ul>
         * <p>
         * The implementation must handle:
         * <ul>
         *   <li>Both forward and back slashes as path separators</li>
         *   <li>Parent directory references (..)</li>
         *   <li>Both file and directory targets</li>
         * </ul>
         *
         * @param relative path to resolve relative to this source
    Registered: Sun Sep 07 03:35:12 UTC 2025
    - Last Modified: Wed Jan 29 09:46:53 UTC 2025
    - 4K bytes
    - Viewed (0)
  7. src/test/java/jcifs/internal/smb1/trans2/Trans2GetDfsReferralTest.java

        void testVariousFilenameFormats() {
            // Test UNC path
            assertDoesNotThrow(() -> new Trans2GetDfsReferral(mockConfig, "\\\\server\\share"));
    
            // Test forward slashes
            assertDoesNotThrow(() -> new Trans2GetDfsReferral(mockConfig, "//server/share"));
    
            // Test with spaces
            assertDoesNotThrow(() -> new Trans2GetDfsReferral(mockConfig, "\\\\server\\my share\\file.txt"));
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 11K bytes
    - Viewed (0)
  8. src/main/java/jcifs/smb1/smb1/Dfs.java

            /* Samba has a tendency to return referral paths and pathConsumed values
             * in such a way that there can be a slash at the end of the path. This
             * causes problems matching keys in resolve() where an extra slash causes
             * a mismatch. This strips trailing slashes from all keys to eliminate
             * this problem.
             */
            int ki = key.length();
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 16 01:32:48 UTC 2025
    - 14.2K bytes
    - Viewed (0)
  9. okhttp/src/commonJvmAndroid/kotlin/okhttp3/HttpUrl.kt

     * Both the unnecessary port specification (`:80`) and the absent trailing slash (`/`) cause URI to
     * bucket the two URLs separately. This harms URI's usefulness in collections. Any application that
     * stores information-per-URL will need to either canonicalize manually, or suffer unnecessary
     * redundancy for such URLs.
     *
     * Because they don't attempt canonical form, these classes are surprisingly difficult to use
    Registered: Fri Sep 05 11:42:10 UTC 2025
    - Last Modified: Mon May 05 16:01:00 UTC 2025
    - 63.5K bytes
    - Viewed (0)
  10. android/guava/src/com/google/common/io/Files.java

       *
       * <ul>
       *   <li>empty string becomes .
       *   <li>. stays as .
       *   <li>fold out ./
       *   <li>fold out ../ when possible
       *   <li>collapse multiple slashes
       *   <li>delete trailing slashes (unless the path is just "/")
       * </ul>
       *
       * <p>These heuristics do not always match the behavior of the filesystem. In particular, consider
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Tue May 13 17:27:14 UTC 2025
    - 32.9K bytes
    - Viewed (0)
Back to top