Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 17 for newlines (0.04 sec)

  1. src/test/java/org/codelibs/fess/helper/NotificationHelperTest.java

            assertTrue(result.contains("content"));
            assertTrue(result.contains("newlines"));
            assertTrue(result.contains("tabs"));
            // JSON should be properly escaped
            assertTrue(result.contains("Test"));
        }
    
        public void test_toSlackMessage_withWhitespaceContent() {
            MockSMailPostingDiscloser discloser = new MockSMailPostingDiscloser();
    Registered: Thu Sep 04 12:52:25 UTC 2025
    - Last Modified: Thu Jul 10 13:41:04 UTC 2025
    - 19.6K bytes
    - Viewed (0)
  2. okhttp/src/commonJvmAndroid/kotlin/okhttp3/MultipartBody.kt

         * with Chrome's behavior (which also experimentally seems to match what IE does), but if you
         * actually want to have a good chance of things working, please avoid double-quotes, newlines,
         * percent signs, and the like in your field names.
         */
        internal fun StringBuilder.appendQuotedString(key: String) {
          append('"')
          for (i in 0 until key.length) {
    Registered: Fri Sep 05 11:42:10 UTC 2025
    - Last Modified: Wed Mar 19 19:25:20 UTC 2025
    - 10.9K bytes
    - Viewed (0)
  3. src/main/java/org/codelibs/fess/auth/chain/CommandChain.java

                    }
                }
            }
    
            /**
             * Gets the captured output as a single string.
             * @return The captured output with newlines.
             */
            public String getOutput() {
                final StringBuilder buf = new StringBuilder(100);
                for (final String value : list) {
                    buf.append(value).append("\n");
    Registered: Thu Sep 04 12:52:25 UTC 2025
    - Last Modified: Thu Jul 17 08:28:31 UTC 2025
    - 13.1K bytes
    - Viewed (0)
  4. src/test/java/org/codelibs/fess/util/KuromojiCSVUtilTest.java

            assertEquals("\",\"", result);
        }
    
        public void test_quoteEscape_special_characters() {
            String input;
            String result;
    
            // Newlines
            input = "line1\nline2";
            result = KuromojiCSVUtil.quoteEscape(input);
            assertEquals("line1\nline2", result);
    
            // Tabs
            input = "tab\tcharacter";
    Registered: Thu Sep 04 12:52:25 UTC 2025
    - Last Modified: Sat Jul 12 07:34:10 UTC 2025
    - 18.7K bytes
    - Viewed (0)
  5. src/test/java/org/codelibs/fess/timer/MonitorTargetTest.java

            StringBuilder buf = new StringBuilder();
            Supplier<Object> supplier = () -> "test \"quotes\" and \n newline";
    
            monitorTarget.append(buf, "specialKey", supplier);
            assertEquals("\"specialKey\":\"test \\\"quotes\\\" and \\n newline\"", buf.toString());
        }
    
        // Test append method with String containing backslash
        public void test_append_stringWithBackslash() {
    Registered: Thu Sep 04 12:52:25 UTC 2025
    - Last Modified: Tue Aug 19 14:09:36 UTC 2025
    - 11K bytes
    - Viewed (0)
  6. src/test/java/org/codelibs/fess/dict/mapping/CharMappingItemTest.java

            assertSame(inputs, item.getNewInputs());
            assertEquals("result", item.getNewOutput());
        }
    
        public void test_constructor_withNewlineInOutput() {
            // Test newline replacement in output
            String[] inputs = { "input" };
            CharMappingItem item = new CharMappingItem(1L, inputs, "line1\nline2");
    
            assertEquals("line1 line2", item.getOutput());
        }
    
    Registered: Thu Sep 04 12:52:25 UTC 2025
    - Last Modified: Tue Aug 19 14:09:36 UTC 2025
    - 12.2K bytes
    - Viewed (0)
  7. src/test/java/org/codelibs/fess/job/AggregateLogJobTest.java

            };
            ComponentUtil.register(mockSearchLogHelper, "searchLogHelper");
    
            // Execute the job
            String result = aggregateLogJob.execute();
    
            // Verify result ends with newline even with empty message
            assertNotNull(result);
            assertEquals("\n", result);
        }
    
        public void test_execute_withNullMessageException() {
    Registered: Thu Sep 04 12:52:25 UTC 2025
    - Last Modified: Tue Aug 19 14:09:36 UTC 2025
    - 12.1K bytes
    - Viewed (0)
  8. maven-tests/mvnw

    die() {
      printf %s\\n "$1" >&2
      exit 1
    }
    
    trim() {
      # MWRAPPER-139:
      #   Trims trailing and leading whitespace, carriage returns, tabs, and linefeeds.
      #   Needed for removing poorly interpreted newline sequences when running in more
      #   exotic environments such as mingw bash on Windows.
      printf "%s" "${1}" | tr -d '[:space:]'
    }
    
    Registered: Fri Sep 05 11:42:10 UTC 2025
    - Last Modified: Sat Jul 12 12:05:57 UTC 2025
    - 10.4K bytes
    - Viewed (0)
  9. src/test/java/org/codelibs/fess/dict/protwords/ProtwordsFileTest.java

        public void test_unescape() throws Exception {
            // Test with escaped characters (backslash sequences)
            String content = "test\\t1\n" + // escaped tab sequence
                    "test\\n2\n" + // escaped newline sequence
                    "test3\n"; // no escape
    
            // Write content to test file
            writeTestFile(content);
    
            // Reload the file
            protwordsFile.reload(null);
    
    Registered: Thu Sep 04 12:52:25 UTC 2025
    - Last Modified: Tue Aug 19 14:09:36 UTC 2025
    - 20.8K bytes
    - Viewed (0)
  10. okhttp/src/commonJvmAndroid/kotlin/okhttp3/Headers.kt

      override fun hashCode(): Int = commonHashCode()
    
      /**
       * Returns header names and values. The names and values are separated by `: ` and each pair is
       * followed by a newline character `\n`.
       *
       * Since OkHttp 5 this redacts these sensitive headers:
       *
       *  * `Authorization`
       *  * `Cookie`
       *  * `Proxy-Authorization`
       *  * `Set-Cookie`
       */
    Registered: Fri Sep 05 11:42:10 UTC 2025
    - Last Modified: Tue May 27 14:51:25 UTC 2025
    - 11.5K bytes
    - Viewed (0)
Back to top