Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 41 for escaped (0.34 sec)

  1. src/test/java/org/codelibs/fess/util/KuromojiCSVUtilTest.java

            String[] result;
    
            // Escaped quotes within quoted value - DOES NOT get unquoted because pattern doesn't match
            value = "\"value with \"\"escaped\"\" quotes\"";
            result = KuromojiCSVUtil.parse(value);
            assertEquals(1, result.length);
            assertEquals("\"value with \"\"escaped\"\" quotes\"", result[0]);
    
    Registered: Thu Sep 04 12:52:25 UTC 2025
    - Last Modified: Sat Jul 12 07:34:10 UTC 2025
    - 18.7K bytes
    - Viewed (0)
  2. android/guava/src/com/google/common/xml/XmlEscapers.java

      public static Escaper xmlAttributeEscaper() {
        return XML_ATTRIBUTE_ESCAPER;
      }
    
      private static final Escaper XML_ESCAPER;
      private static final Escaper XML_CONTENT_ESCAPER;
      private static final Escaper XML_ATTRIBUTE_ESCAPER;
    
      static {
        Escapers.Builder builder = Escapers.builder();
        // The char values \uFFFE and \uFFFF are explicitly not allowed in XML
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Fri Jun 20 17:15:33 UTC 2025
    - 6.5K bytes
    - Viewed (0)
  3. src/main/java/org/codelibs/core/text/JsonUtil.java

     *
     */
    public class JsonUtil {
    
        /**
         * Defualt constructor.
         */
        protected JsonUtil() {
        }
    
        /**
         * Escapes a value as Json string.
         *
         * @param value input
         * @return escaped string.
         */
        public static String escape(final String value) {
            if (value == null) {
                return null;
            }
    
            char c;
            final int len = value.length();
    Registered: Fri Sep 05 20:58:11 UTC 2025
    - Last Modified: Thu Jul 24 01:52:43 UTC 2025
    - 1.7K bytes
    - Viewed (0)
  4. src/main/java/org/codelibs/fess/util/QueryStringBuilder.java

        }
    
        /**
         * Escapes specific characters in a query string.
         * Replaces each specified character with its escaped version (prefixed with backslash).
         *
         * @param q the query string to escape
         * @param values the characters to escape
         * @return the escaped query string
         */
        protected String escape(final String q, final String... values) {
            String value = q;
    Registered: Thu Sep 04 12:52:25 UTC 2025
    - Last Modified: Thu Aug 07 03:06:29 UTC 2025
    - 12.3K bytes
    - Viewed (0)
  5. src/test/java/org/codelibs/fess/helper/NotificationHelperTest.java

            assertTrue(result.contains("quotes"));
            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)
  6. src/main/java/org/codelibs/fess/helper/ViewHelper.java

                int pos = escaped.indexOf(escapedHighlightPre);
                while (pos >= 0) {
                    final int c = escaped.codePointAt(pos);
                    if (Character.isISOControl(c) || highlightTerminalCharSet.contains(c)) {
                        break;
                    }
                    pos--;
                }
    
                value = escaped.substring(pos + 1);
            } else {
    Registered: Thu Sep 04 12:52:25 UTC 2025
    - Last Modified: Thu Aug 07 03:06:29 UTC 2025
    - 52.4K bytes
    - Viewed (0)
  7. 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
    Registered: Thu Sep 04 12:52:25 UTC 2025
    - Last Modified: Tue Aug 19 14:09:36 UTC 2025
    - 20.8K bytes
    - Viewed (0)
  8. src/main/java/org/codelibs/fess/api/json/SearchApiManager.java

        }
    
        /**
         * Escapes a callback name.
         * @param callbackName The callback name.
         * @return The escaped callback name.
         */
        protected String escapeCallbackName(final String callbackName) {
            return "/**/" + callbackName.replaceAll("[^0-9a-zA-Z_\\$\\.]", StringUtil.EMPTY);
        }
    
        /**
         * Escapes a JSON object.
         * @param obj The object to escape.
    Registered: Thu Sep 04 12:52:25 UTC 2025
    - Last Modified: Thu Aug 07 03:06:29 UTC 2025
    - 54.6K bytes
    - Viewed (0)
  9. README.md

    });
    ```
    
    ### Text Processing and JSON
    ```java
    import org.codelibs.core.text.*;
    
    // JSON utilities with proper escaping
    String escaped = JsonUtil.escape("Hello \"World\" with special chars");
    String unescaped = JsonUtil.unescape(escaped);
    
    // Text tokenization
    Tokenizer tokenizer = new Tokenizer("field1,field2,field3", ",");
    while (tokenizer.hasMoreTokens()) {
    Registered: Fri Sep 05 20:58:11 UTC 2025
    - Last Modified: Sun Aug 31 02:56:02 UTC 2025
    - 12.7K bytes
    - Viewed (0)
  10. src/test/java/org/codelibs/fess/helper/CrawlerStatsHelperTest.java

        }
    
        public void test_escapeValue() {
            String input = "test\twith\ttabs";
            String escaped = crawlerStatsHelper.escapeValue(input);
            assertEquals("test with tabs", escaped);
            assertFalse(escaped.contains("\t"));
        }
    
        public void test_statsKeyObjectWithoutUrl() {
            StatsKeyObject key = new StatsKeyObject("test_id");
    Registered: Thu Sep 04 12:52:25 UTC 2025
    - Last Modified: Sat Jul 19 23:49:30 UTC 2025
    - 15K bytes
    - Viewed (0)
Back to top