Search Options

Results per page
Sort
Preferred Languages
Advance

Results 21 - 30 of 105 for escaper (0.05 sec)

  1. guava-tests/test/com/google/common/xml/XmlEscapersTest.java

        // Test quotes are escaped.
        assertEquals(""test"", xmlAttributeEscaper.escape("\"test\""));
        assertEquals("'test'", xmlAttributeEscaper.escape("'test'"));
        // Test all escapes
        assertEquals(
            "a&quot;b&lt;c&gt;d&amp;e&quot;f&apos;", xmlAttributeEscaper.escape("a\"b<c>d&e\"f'"));
        // Test '\t', '\n' and '\r' are escaped.
    Registered: Fri Dec 26 12:43:10 UTC 2025
    - Last Modified: Fri Dec 05 22:03:28 UTC 2025
    - 4.8K bytes
    - Viewed (0)
  2. src/test/java/org/codelibs/fess/suggest/util/SuggestUtilTest.java

            String escaped3 = SuggestUtil.escapeWildcardQuery(query3);
            assertEquals("test\\*query\\?end", escaped3);
    
            // Test with no wildcards
            String query4 = "test query";
            String escaped4 = SuggestUtil.escapeWildcardQuery(query4);
            assertEquals("test query", escaped4);
    
            // Test with multiple wildcards
            String query5 = "***???";
    Registered: Sat Dec 20 13:04:59 UTC 2025
    - Last Modified: Mon Nov 24 03:40:05 UTC 2025
    - 26.7K bytes
    - Viewed (0)
  3. android/guava-tests/test/com/google/common/html/HtmlEscapersTest.java

        // Test simple escape of '&'.
        assertEquals("foo&amp;bar", htmlEscaper().escape("foo&bar"));
    
        // If the string contains no escapes, it should return the arg.
        // Note: assert<b>Same</b> for this implementation.
        String s = "blah blah farhvergnugen";
        assertSame(s, htmlEscaper().escape(s));
    
        // Tests escapes at begin and end of string.
        assertEquals("&lt;p&gt;", htmlEscaper().escape("<p>"));
    Registered: Fri Dec 26 12:43:10 UTC 2025
    - Last Modified: Fri Dec 05 22:03:28 UTC 2025
    - 2.3K bytes
    - Viewed (0)
  4. guava-tests/test/com/google/common/html/HtmlEscapersTest.java

        // Test simple escape of '&'.
        assertEquals("foo&amp;bar", htmlEscaper().escape("foo&bar"));
    
        // If the string contains no escapes, it should return the arg.
        // Note: assert<b>Same</b> for this implementation.
        String s = "blah blah farhvergnugen";
        assertSame(s, htmlEscaper().escape(s));
    
        // Tests escapes at begin and end of string.
        assertEquals("&lt;p&gt;", htmlEscaper().escape("<p>"));
    Registered: Fri Dec 26 12:43:10 UTC 2025
    - Last Modified: Fri Dec 05 22:03:28 UTC 2025
    - 2.3K bytes
    - Viewed (0)
  5. 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: Sat Dec 20 09:19:18 UTC 2025
    - Last Modified: Thu Aug 07 03:06:29 UTC 2025
    - 12.3K bytes
    - Viewed (0)
  6. 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: Sat Dec 20 08:55:33 UTC 2025
    - Last Modified: Thu Jul 24 01:52:43 UTC 2025
    - 1.7K bytes
    - Viewed (0)
  7. fess-crawler/src/main/java/org/codelibs/fess/crawler/util/XmlUtil.java

         *   <li>' with &amp;apos;</li>
         * </ul>
         * Additionally, it strips invalid XML characters from the input string.
         *
         * @param value the input string to be escaped
         * @return the escaped XML string with invalid characters removed, or empty string if value is null
         */
        public static String escapeXml(final String value) {
            if (value == null) {
                return StringUtil.EMPTY;
    Registered: Sat Dec 20 11:21:39 UTC 2025
    - Last Modified: Sat Nov 22 13:28:22 UTC 2025
    - 9.5K bytes
    - Viewed (0)
  8. src/main/java/org/codelibs/fess/util/GsaConfigParser.java

                return escape(s) + ".*";
            }
            final StringBuilder buf = new StringBuilder(100);
            return appendFileterPath(buf, escape(s));
        }
    
        /**
         * Escapes special regex characters in a string to create a literal pattern.
    Registered: Sat Dec 20 09:19:18 UTC 2025
    - Last Modified: Fri Nov 28 16:29:12 UTC 2025
    - 21.6K bytes
    - Viewed (0)
  9. 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: Sat Dec 20 09:19:18 UTC 2025
    - Last Modified: Fri Nov 28 16:29:12 UTC 2025
    - 55.4K bytes
    - Viewed (1)
  10. src/main/java/org/codelibs/fess/util/KuromojiCSVUtil.java

                    result = result.replace(ESCAPED_QUOTE, "\"");
                }
            }
    
            return result;
    
        }
    
        /**
         * Quote and escape input value for CSV
         *
         * @param original Original text.
         * @return Escaped text.
         */
        public static String quoteEscape(final String original) {
            String result = original;
    
            if (result.indexOf('\"') >= 0) {
    Registered: Sat Dec 20 09:19:18 UTC 2025
    - Last Modified: Sat Mar 15 06:53:53 UTC 2025
    - 3.9K bytes
    - Viewed (0)
Back to top