Search Options

Results per page
Sort
Preferred Languages
Advance

Results 51 - 60 of 78 for WHITESPACE (0.06 sec)

  1. src/test/java/org/codelibs/fess/suggest/analysis/SuggestAnalyzerTest.java

            assertNotNull(tokens);
            assertTrue(tokens.isEmpty());
        }
    
        @Test
        public void testAnalyzeWithWhitespaceOnly() {
            // Test analyze with whitespace only
            String text = "   ";
            String field = "content";
            String lang = "en";
    
            List<AnalyzeToken> tokens = analyzer.analyze(text, field, lang);
    
            assertNotNull(tokens);
    Registered: Fri Sep 19 09:08:11 UTC 2025
    - Last Modified: Mon Sep 01 13:33:03 UTC 2025
    - 15.7K bytes
    - Viewed (0)
  2. src/test/java/org/codelibs/fess/dict/mapping/CharMappingFileTest.java

            CharMappingItem item = result.get(0);
            assertEquals(5, item.getInputs().length);
            assertEquals("output", item.getOutput());
        }
    
        // Test reload with whitespace handling
        public void test_reload_whitespaceHandling() throws Exception {
            writeTestFile("  a , b  =>  c  \n");
    
            PagingList<CharMappingItem> result = charMappingFile.selectList(0, 10);
    Registered: Thu Sep 04 12:52:25 UTC 2025
    - Last Modified: Tue Aug 19 14:09:36 UTC 2025
    - 18.5K bytes
    - Viewed (0)
  3. guava-tests/test/com/google/common/io/FilesSimplifyPathTest.java

         */
        doExtensiveTest("testdata/simplifypathnoprefixtests.txt");
      }
    
      private void doExtensiveTest(String resourceName) throws IOException {
        Splitter splitter = Splitter.on(CharMatcher.whitespace());
        URL url = getClass().getResource(resourceName);
        for (String line : Resources.readLines(url, UTF_8)) {
          Iterator<String> iterator = splitter.split(line).iterator();
          String input = iterator.next();
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Thu Dec 19 18:03:30 UTC 2024
    - 11K bytes
    - Viewed (0)
  4. src/test/java/org/codelibs/fess/query/MatchAllQueryCommandTest.java

            assertNotNull(result);
            assertTrue(result instanceof MatchAllQueryBuilder);
        }
    
        public void test_execute_withWhitespaceContext() {
            // Test execute with whitespace query string context
            QueryContext context = new QueryContext("   ", false);
            MatchAllDocsQuery query = new MatchAllDocsQuery();
            float boost = 1.0f;
    
    Registered: Thu Sep 04 12:52:25 UTC 2025
    - Last Modified: Tue Aug 19 14:09:36 UTC 2025
    - 16.7K bytes
    - Viewed (0)
  5. android/guava/src/com/google/common/io/Files.java

          }
        }
      }
    
      /**
       * Reads the first line from a file. The line does not include line-termination characters, but
       * does include other leading and trailing whitespace.
       *
       * @param file the file to read from
       * @param charset the charset used to decode the input stream; see {@link StandardCharsets} for
       *     helpful predefined constants
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Tue May 13 17:27:14 UTC 2025
    - 32.9K bytes
    - Viewed (0)
  6. src/test/java/jcifs/netbios/LmhostsTest.java

            assertNotNull(lmhosts.getByName("HOST4", mockContext));
        }
    
        @Test
        void testPopulateWithWhitespace() throws Exception {
            // Create a temporary lmhosts file with various whitespace
            File lmhostsFile = tempDir.resolve("lmhosts_whitespace").toFile();
            try (FileWriter writer = new FileWriter(lmhostsFile)) {
                writer.write("192.168.1.100    HOST1    \n");
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 18.2K bytes
    - Viewed (0)
  7. fess-crawler/src/test/java/org/codelibs/fess/crawler/transformer/TransformerTest.java

            ContentTransformer transformer = new ContentTransformer("workflowTransformer");
            transformer.addTransformationRule("<[^>]+>", ""); // Remove HTML tags
            transformer.addTransformationRule("\\s+", " "); // Normalize whitespace
    
            // Simulate crawling response
            ResponseData responseData = new ResponseData();
            responseData.setUrl("http://example.com/page.html");
            responseData.setParentUrl("http://example.com/");
    Registered: Sun Sep 21 03:50:09 UTC 2025
    - Last Modified: Sat Sep 06 04:15:37 UTC 2025
    - 28K bytes
    - Viewed (0)
  8. fess-crawler/src/test/java/org/codelibs/fess/crawler/rule/impl/AbstractRuleTest.java

            assertEquals("rule-id_with.special@chars#123", testRule.getRuleId());
    
            // Unicode characters
            testRule.setRuleId("ルール日本語");
            assertEquals("ルール日本語", testRule.getRuleId());
    
            // Whitespace
            testRule.setRuleId("  rule with spaces  ");
            assertEquals("  rule with spaces  ", testRule.getRuleId());
        }
    
        /**
         * Test multiple registrations of same rule
         */
    Registered: Sun Sep 21 03:50:09 UTC 2025
    - Last Modified: Wed Sep 03 14:42:53 UTC 2025
    - 21.9K bytes
    - Viewed (0)
  9. cmd/generic-handlers.go

    		i++
    	}
    
    	for i < n {
    		// Find the next segment
    		start := i
    		for i < n && path[i] != SlashSeparatorChar && path[i] != '\\' {
    			i++
    		}
    
    		// Trim whitespace of segment
    		segmentStart, segmentEnd := start, i
    		for segmentStart < segmentEnd && unicode.IsSpace(rune(path[segmentStart])) {
    			segmentStart++
    		}
    Registered: Sun Sep 07 19:28:11 UTC 2025
    - Last Modified: Fri Aug 29 02:39:48 UTC 2025
    - 20.7K bytes
    - Viewed (1)
  10. guava/src/com/google/common/io/Files.java

          }
        }
      }
    
      /**
       * Reads the first line from a file. The line does not include line-termination characters, but
       * does include other leading and trailing whitespace.
       *
       * @param file the file to read from
       * @param charset the charset used to decode the input stream; see {@link StandardCharsets} for
       *     helpful predefined constants
    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