Search Options

Display Count
Sort
Preferred Language
Advanced Search

Results 31 - 40 of 132 for escapeFn (0.16 seconds)

  1. 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;
    Created: Sat Dec 20 09:19:18 GMT 2025
    - Last Modified: Thu Aug 07 03:06:29 GMT 2025
    - 12.3K bytes
    - Click Count (0)
  2. 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.
    Created: Sat Dec 20 09:19:18 GMT 2025
    - Last Modified: Fri Nov 28 16:29:12 GMT 2025
    - 55.4K bytes
    - Click Count (1)
  3. guava-gwt/src/com/google/common/escape/Escape.gwt.xml

    cpovirk <******@****.***> 1721404771 -0700
    Created: Fri Dec 26 12:43:10 GMT 2025
    - Last Modified: Fri Jul 19 16:02:36 GMT 2024
    - 1.5K bytes
    - Click Count (0)
  4. 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) {
    Created: Sat Dec 20 09:19:18 GMT 2025
    - Last Modified: Sat Mar 15 06:53:53 GMT 2025
    - 3.9K bytes
    - Click Count (0)
  5. okhttp/src/commonJvmAndroid/kotlin/okhttp3/internal/http/HttpHeaders.kt

          result.write(this, i)
          // Consume '"'.
          readByte()
          return result.readUtf8()
        }
    
        if (size == i + 1L) return null // Dangling escape.
        result.write(this, i)
        // Consume '\'.
        readByte()
        result.write(this, 1L) // The escaped character.
      }
    }
    
    /**
     * Consumes and returns a non-empty token, terminating at special characters in
    Created: Fri Dec 26 11:42:13 GMT 2025
    - Last Modified: Mon May 05 16:01:00 GMT 2025
    - 7.2K bytes
    - Click Count (0)
  6. src/main/java/org/codelibs/fess/suggest/util/SuggestUtil.java

            }
        }
    
        /**
         * Escapes wildcard characters in the given query string.
         *
         * This method replaces all occurrences of '*' with '\*' and
         * all occurrences of '?' with '\?' to ensure that these characters
         * are treated as literals rather than wildcard characters in queries.
         *
         * @param query the query string to escape
         * @return the escaped query string
         */
    Created: Sat Dec 20 13:04:59 GMT 2025
    - Last Modified: Sun Nov 23 11:21:40 GMT 2025
    - 17.5K bytes
    - Click Count (1)
  7. 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()) {
    Created: Sat Dec 20 08:55:33 GMT 2025
    - Last Modified: Sun Aug 31 02:56:02 GMT 2025
    - 12.7K bytes
    - Click Count (0)
  8. guava-tests/test/com/google/common/escape/CharEscaperBuilderTest.java

      public void testAddEscapes() {
        char[] cs = {'a', 'b', 'c'};
        CharEscaperBuilder builder = new CharEscaperBuilder().addEscapes(cs, "Z");
        Escaper escaper = builder.toEscaper();
        assertThat(escaper.escape("abcdef")).isEqualTo("ZZZdef");
      }
    Created: Fri Dec 26 12:43:10 GMT 2025
    - Last Modified: Tue Feb 18 15:41:04 GMT 2025
    - 1.1K bytes
    - Click Count (0)
  9. logger/sql.go

    			case reflect.String:
    				vars[idx] = escaper + strings.ReplaceAll(fmt.Sprintf("%v", v), escaper, escaper+escaper) + escaper
    			default:
    				if v != nil && reflectValue.IsValid() && ((reflectValue.Kind() == reflect.Ptr && !reflectValue.IsNil()) || reflectValue.Kind() != reflect.Ptr) {
    					vars[idx] = escaper + strings.ReplaceAll(fmt.Sprintf("%v", v), escaper, escaper+escaper) + escaper
    				} else {
    					vars[idx] = nullStr
    				}
    			}
    Created: Sun Dec 28 09:35:17 GMT 2025
    - Last Modified: Thu Mar 21 08:00:02 GMT 2024
    - 5K bytes
    - Click Count (0)
  10. src/main/java/org/codelibs/fess/helper/ViewHelper.java

            return StringUtil.EMPTY;
        }
    
        /**
         * Escapes HTML and applies highlighting to text.
         * Handles boundary position detection if enabled.
         *
         * @param text the text to process
         * @return the escaped and highlighted text
         */
        protected String escapeHighlight(final String text) {
            final String escaped = LaFunctions.h(text);
            final String value;
    Created: Sat Dec 20 09:19:18 GMT 2025
    - Last Modified: Fri Nov 28 16:29:12 GMT 2025
    - 52.6K bytes
    - Click Count (0)
Back to Top