Search Options

Results per page
Sort
Preferred Languages
Advance

Results 11 - 20 of 35 for backslashes (0.05 sec)

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

                }
            }
    
            return false;
        }
    
        /**
         * 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("\\\\+", "\\\\");
    
    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. src/cmd/asm/internal/lex/input.go

    				}
    				args = append(args, arg)
    				acceptArg = false
    			default:
    				in.Error("bad definition for macro:", name)
    			}
    		}
    	}
    	var tokens []Token
    	// Scan to newline. Backslashes escape newlines.
    	for tok != '\n' {
    		if tok == scanner.EOF {
    			in.Error("missing newline in definition for macro:", name)
    		}
    		if tok == '\\' {
    			tok = in.Stack.Next()
    			if tok != '\n' && tok != '\\' {
    Registered: Tue Sep 09 11:13:09 UTC 2025
    - Last Modified: Fri Sep 06 13:17:27 UTC 2024
    - 12.5K bytes
    - Viewed (0)
  3. src/test/java/jcifs/smb/SmbResourceLocatorImplTest.java

            when(dr.getPathConsumed()).thenReturn(2); // consume leading \\ from UNC
    
            String newUnc = l.handleDFSReferral(dr, "\\req\\");
            // dunc is "\\" + path + remaining  - note: path may not have leading backslashes
            assertTrue(newUnc.contains("dfs/path") || newUnc.contains("dfs\\path"));
            assertEquals(dr, l.getDfsReferral());
            assertEquals("dfs-server", l.getServerWithDfs());
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 17.6K bytes
    - Viewed (0)
  4. src/main/java/jcifs/smb/SmbFile.java

         */
    
        public String getPath() {
            return this.fileLocator.getPath();
        }
    
        /**
         * Returns the Windows UNC style path with backslashes instead of forward slashes.
         *
         * @return The UNC path.
         */
        public String getCanonicalUncPath() {
            return this.fileLocator.getCanonicalURL();
        }
    
        /**
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 30 05:58:03 UTC 2025
    - 103.2K bytes
    - Viewed (0)
  5. src/test/java/org/codelibs/fess/helper/NotificationHelperTest.java

            discloser.setSubject("Subject with \\ backslash");
            discloser.setPlainText("Content with \\ backslash");
    
            String result = notificationHelper.toSlackMessage(discloser);
    
            assertNotNull(result);
            assertTrue(result.contains("Subject with"));
            assertTrue(result.contains("Content with"));
            assertTrue(result.contains("backslash"));
        }
    
    Registered: Thu Sep 04 12:52:25 UTC 2025
    - Last Modified: Thu Jul 10 13:41:04 UTC 2025
    - 19.6K bytes
    - Viewed (0)
  6. src/test/java/jcifs/internal/smb1/trans2/Trans2FindFirst2Test.java

            assertEquals("\\test\\path\\", trans2FindFirst2.getPath());
        }
    
        @Test
        @DisplayName("Test constructor with path ending in backslash")
        void testConstructorWithPathEndingInBackslash() {
            // Test path already ending with backslash
            trans2FindFirst2 = new Trans2FindFirst2(mockConfig, "\\test\\path\\", "*.doc", 0x16, 20, 2048);
    
            assertEquals("\\test\\path\\", trans2FindFirst2.getPath());
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 10.8K bytes
    - Viewed (0)
  7. src/main/java/org/codelibs/fess/app/web/admin/design/UploadForm.java

         */
        @Required
        public MultipartFormFile designFile;
    
        /**
         * The name for the design file being uploaded.
         * Must not contain invalid file system characters like backslash, colon, asterisk, etc.
         */
        @Pattern(regexp = "^[^\\\\|/|:|\\*|?|\"|<|>|\\|]+$", message = "{errors.design_file_name_is_invalid}")
        public String designFileName;
    
        /**
    Registered: Thu Sep 04 12:52:25 UTC 2025
    - Last Modified: Thu Jul 17 08:28:31 UTC 2025
    - 1.8K bytes
    - Viewed (0)
  8. src/test/java/org/codelibs/fess/helper/ActivityHelperTest.java

            params.put("quotes", "text with \"quotes\"");
            params.put("backslash", "text\\with\\backslash");
            activityHelper.print("test", OptionalThing.empty(), params);
            String result = localLogMsg.get();
            assertTrue(result.contains("\\\"quotes\\\""));
            assertTrue(result.contains("text\\\\with\\\\backslash"));
        }
    
        static class TestLoginCredential implements LoginCredential {
    Registered: Thu Sep 04 12:52:25 UTC 2025
    - Last Modified: Sat Jul 12 05:35:01 UTC 2025
    - 18.7K bytes
    - Viewed (0)
  9. src/test/java/org/codelibs/fess/util/ResourceUtilTest.java

            assertEquals("${var1value2}", ResourceUtil.resolve(value));
    
            // Test with special characters in replacement
            System.setProperty("special", "value$with\\backslash");
            value = "${special}";
            assertEquals("value$with\\backslash", ResourceUtil.resolve(value));
    
            // Test with numeric property names
            System.setProperty("123", "numeric");
            value = "${123}";
    Registered: Thu Sep 04 12:52:25 UTC 2025
    - Last Modified: Sat Jul 12 07:34:10 UTC 2025
    - 11.5K bytes
    - Viewed (0)
  10. src/test/java/jcifs/smb/DirFileEntryEnumIterator1Test.java

            verify(tree, times(1)).acquire();
            verify(tree, times(1)).release(); // closed after failure
        }
    
        @Test
        @DisplayName("open(): invalid UNC without trailing backslash throws SmbException")
        void invalidUncThrows() throws Exception {
            // Override the default setup for this specific test
            when(locator.getUNCPath()).thenReturn("\\\\SERVER\\Share\\dir"); // missing trailing \\
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 12.7K bytes
    - Viewed (0)
Back to top